Thank you so much Rosh, I really appreciate it.
God Bless
Something I've found with "Point" is that it appears to assume that the symbol is not quoted in fractional pip format. Has anyone else found this?
For example:
SpreadInPips = ((MarketInfo(Symbol(), MODE_ASK) - MarketInfo(Symbol(), MODE_BID)) / (Point));
If I do the following on a symbol such as the EUR/USD which is quoted by the Broker to the fourth decimal place, e.g. 0.0001 then the calculation for the spreadInPips works fine.
However, if I apply the same code to a chart from a Broker quoting to the fifth decimal place, e.g. 0.00001 then the pip calculation is wrong.
I'm guessing this is an MT4 low level thing and doesn't account for fractional pips, or is it?
Its easy to code round, just untidy.
4of7.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Greetings,
I have a question regarding MQ4 language, can I calculate chart price and get the result in pips?
For example,
High – Low = 30 (pips)
I don’t want to get the result in quote-like number.
Appreciate your help.
God Bless