Data Spread and Point Size mq4
-
https://fxdreema.com/shared/pfqJ9Zxyb
Hi, on mq5 the data is processed correctly even in decimals while with the same blocks on mq4 it is not, in the attached scree you can view the result, I have also attached an example file
-
@duepips Try this, won't work on mt5 though.
-
@jstap said in Data Spread and Point Size mq4:
@duepips Try this, won't work on mt5 though.
this what?
-
@duepipshttps forgot to add https://fxdreema.com/shared/cELfui0xb
-
@jstap said in Data Spread and Point Size mq4:
@duepipshttps forgot to add https://fxdreema.com/shared/cELfui0xb
result 0.00 on spread e 0.00 on point size
-
@duepips Not when I back test:

-
-
@duepips To me everything that works on back test works on real/demo.
-
@jstap said in Data Spread and Point Size mq4:
To me everything that works on back test works on real/demo.
yes it should be, but as you can see it gives me 0.00 as a result
-
@jstap said in Data Spread and Point Size mq4:
@duepips To me everything that works on back test works on real/demo.
update, have you tried forex? this solution not work on all markets
-
@duepips This on on live account, by the looks of it FX spread would be to add *10 to used formula.

-
@jstap said in Data Spread and Point Size mq4:
This on on live account, by the looks of it FX spread would be to add *10 to used formula.
I understand, but I need a solution that works on every market, the result must be based on the points size with the appropriate decimals for the spread, on mt5 work perfect on all market
-
@duepips I imaging it does, this is though only way I know of to get this.
-
@jstap said in Data Spread and Point Size mq4:
@duepips I imaging it does, this is though only way I know of to get this.
I have to work out a formula to get the spread and the points size from the bid, I think it's the only way to get the correct data in mt4 on each market, thanks
-
@jstap said in Data Spread and Point Size mq4:
@duepips I imaging it does, this is though only way I know of to get this.
you need to add the digits count to your formula, example: DoubleToString((ask-bid),digits_count));
-
@duepips Interesting
-
@jstap said in Data Spread and Point Size mq4:
Interesting
yes, but I still haven't figured out how to load the digits count data into the DoubleToString
-
@duepips Do you mean Digits()?
-
@jstap said in Data Spread and Point Size mq4:
Do you mean Digits()
yes, here I found the correct code:
for spread > DoubleToString((ask-bid), Digits)
for points size > DoubleToString(Point(), Digits)i tested on mt4, it works and updates correctly on every market
-
@duepips That's good.
