Limitation or wrong ?

 

I tried to use the tester and I get good data using Bid and Ask functions but when I want to get some data using MarketInfo functions I get only 0 instead of the right values.

Have I done something wrong or is it a limitation in the aplication posibilities ?

Thanks.

 

Post u're code

hi if u post some code someone may be able to help. MarketInfo usually works fine.

Stay well

 
cardio:
hi if u post some code someone may be able to help. MarketInfo usually works fine. Stay well

double USDJPY_bid=MarketInfo("USDJPY",MODE_BID);

double EURJPY_bid=Bid;

Comment(USDJPY_bid);

Comment(EURJPY_bid);

So, no big deal ! The Expert is attached to the EUR/JPY chart. For the first Comment ( for USD/JPY) the result is "0" and for the second Comment (EUR/JPY) the result is OK (141.34 for ex.).

But only in Tester mode. In real mode it works ok.

So ?

 

MarketInfo() doesn't work offline nor in tester for MT3

 
Michel:
MarketInfo() doesn't work offline nor in tester for MT3

Thank you Michel ! So, it is a limitation. Any ideas to get data in tester mode for other pair not only for the pair atached to the chart ?

Thanks !

 

MT4 or MT3 ?

I think MODE_BID works on MT4's tester if you have M1 history (for the periode you are testing) of the concerned symbol loaded, but you must try...

Reason: