Converting decimal points to whole points
-
Is there a way to convert decimal points to whole points with a block?
I'm trying to adjust the EA to close trades if (50SMA-Candle Close)<200.
50SMA=1.32831 and Candle Close=1.32731
50SMA-Candle Close=0.01000 and I want to convert this result to a whole number which would be 100.
So 100<200 --> Close Trade
Thanks

-
Oh, this issue again. Tell me, how do you imagine this thing to happen in the builder? Now it's not impossible to do such things, but only with some custom functions that I don't recommend to be used.
Anyway, you can always multiply some value by let's say 1000. The problem with this is that the EA then will work correctly only for certain symbols. But maybe you don't mind. Look at the description of "Condition" to see more about the "Adjust" field and you can also use "Formula" block for small calculations.
-
Thanks again and again

However I think that is possible and I saw it in a few browser based ea builders...
Let's say that 50EMA is working for most of the price action and I want EA to open position only if candle close is 500 pips above/below moving average.
It would be a nice addition to fxdreema

-
That conversion - to pips - is easily possible in this "Adjust" field. Just write something like +500pips, whete "pips" is a keyword and is then replaced by a function that converts 500 to the correct value, depending on the symbol