with ibfx, the market info for spread returns 0, so one needs to edit the code to assign values to each pair for spread, for example...
if(tradesymbol()==eurusd) spread=2;
if(tradesymbol()==gbpusd) spread=4;
if(tradesymbol()==gbpjpy) spread=8;
and so on...
the alert is no longer useful with ibfx, so needs to be relegated to a comment, ie /*...*/
Quote:
|
Originally Posted by cardio
Hi
I am getting the alert 'No data for pair ...'
I am using IBFx and have the TSD_MT4_MR_Trade_0_34 as posted, but modified for Hourly trades. Will it continue working even with the alert?
I see where it is coming from in the code - I see Mode_spread is the 'spread value in points' - any help would be appreciated.
if ( MarketInfo (TradeSymbol, MODE_SPREAD) < 1 ) {
if ( ! Alerted ) Alert ("No data for the pair: ", TradeSymbol, ". Please review and fix pairs variable.");
Alerted = true;
return(0);
}
on the yahoo forum, somebody tried to post a general text of just what the TSD EA is trying to do. I ask the user to send me this document - but never managed to get hold of it - if someone did - pls post it up.
Thanks
Cardio
|