Variable not working for chart price
-
The comment box shows the the proper value. (Buy ATR/Sell ATR)
I believe the problems come from the value having too many digits to the right of the decimal point. (ie. 000.00000000) as it works fine when using a variable with value given with the right chart format (000.000 usd/jpy)
Can anyone confirm this?
and if so, is there a way to convert this to the right format.I'm using PRICE - ATR*3 which is giving me the excessive digits
-
@pipologist Check the block IDs! The Custom MQL Code block (ID 2) is running before you modify the ATR variable! However, that might just be a side affect.
-
Check my post in https://fxdreema.com/forum/topic/7938/atr-strategy-i-m-confused-help-me-please/2
There I show how to transform ATR value into pip value (independent from digits) and can easily be added / reduced from any price.