Comment(MarketInfo("USDJPY", MODE_POINT));0.001
0.001
I just tried to add the Comment in the init() part of my EA, and it makes no difference. In fact, it makes no difference where I put it, I still get a "0" no matter what smbol I'm using?
Do you know why this is? Thanks.
I just tried to add the Comment in the init() part of my EA, and it makes no difference. In fact, it makes no difference where I put it, I still get a "0" no matter what smbol I'm using?
Do you know why this is? Thanks.
Two related possibilities spring to mind: (a) you are using an IBFX Mini account where the correct symbol name is USDJPYm rather than USDJPY, or (b) USDJPY is not in the Market Watch.
(If this were on a symbol quoted to 5DP rather than 3DP, then you could also be encountering the issue that the Comment() and Print() functions only output double values to 4DP, and you have to use DoubleToStr() if you want more than this.)
to find out, but it returned 0 in all cases.
Comment( PriceToStr(Point) ); : string PriceToStr(double p){ return( DoubleToStr(p, Digits) ); }

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Just had a noob question that I'm sure has been asked a hundred times over. Nevertheless, I am asking it again hoping someone can just answer.
I'm using the
MarketInfo("USDJPY", MODE_POINT);
function, and my broker, IBFX, is a 3/5 decimal broker. I tried to use a
to find out, but it returned 0 in all cases.
So hopefully someone knowledgeable can answer this simple question:
Should "MODE_POINT" in this application return .001 or .01 ?