I want to convert points into pips.
-
I'm really confused about it.
I want to place pending buy orders in grid with a distance of 0.5*ATR. But 0.5 ATR would be in points and the pending grid block uses pips. So, how do I go about this?What really makes this confusing is the point format rules set by the fxdreema platform. I would have just used a custom mql4 block that stores this 0.5ATR/MarketInfo(Symbol(),MODE_POINT) if it were a 4digit broker and 0.5ATR/(10*MarketInfo(Symbol(),MODE_POINT)) if it were a 5digit broker.
But having seen the point format rules confuses me. Someone englighten me.
-
try this: toPips(0.5*ATR) .. it works with 4 and 5 digits automatically (depends on rule you set in fxdreema settings)
note, that toPips is not function from mql but from fxdreema and when something in future changes and change this function (after updates), you need also change this function in your custom code
-
@miro1360 hello bro, where can I read about this function? How did you know this function bro? I wanna learn all of fxdreema functions to improve my ea. thanks
-
miro hasn't been on these forums for years, he likely got this function from the .mq code you can get from project screen, then red and searched. There is no file/place containing this information, that I am aware of.
-
Thanks for information
-
Forex automation is tricky, especially when you mix points and pips, and thatās exactly what a user in the FXDreema forum thread āI want to convert points into pipsā is wrestling with. They explain how their brokerās definition of a point isnāt what they expected, and theyāre trying to normalize their strategy so everything scales correctly inside their EA setup.
-
If you delete all pip rules, (pic 3) then the EA will use only points, so as you will see in this EA, the terminal crosshair will show you the exact size to use in the blocks: https://fxdreema.com/shared/FDFUrGh2c


