Trying to calculate the distance in pips between Candle Open and MA
-
Hi, I have scoured the discussion board and tried a few options but I am still nor able to make this work.
Goal calculate the distance from candle open to an indicator buffer. (e.g. ma) Then use this number in pips for the SL and TP.
Here is what I have tried so far... https://fxdreema.com/shared/dQw7u0JCc
Can anyone help me fix it? Thank you!
-
Why do you need to convert the distance into pips? The SL selection supports many other number types too, a price level for example.
-
Hi Roar, thank you for responding. I am trying to calculate a variable to use for the SL and TP. The distance in pips for each trade (candle open and indicator buffer level) is going to be different and I want the program to calculate it automatically. It seems like it should have worked for the "modify variable" block, but it doesn't (?)
-
The variable unit can then be set for SL=1 times, TP1=1 times, TP2= 2 times, etc. or different risk to reward strategies.