Stop Loss Calculation Not Returning Correct Value
-
Hi All,
I've been working on the below implementing a trailing stop loss based on the previous candle and an ATR Multiplication.
Cell 7 stores the previous SL and saves it to SL_2 variable. Cell 9 reruns the stop loss calculation and saves to SL_1 variable. Cell 10 checks if SL_1 is a higher value than SL_2, and then updates stop loss to SL_1 in cell 11 if SL_1 is now higher than SL_2.
Link to report: link
It looks like it initially runs correctly, then updates to the incorrect figure shortly after. Image below is for my vps running against NSQ, 13940 SL is correct, 1.2 is not.

Could someone please direct me to what i'm doing wrong here? I've seen mention in previous threads that i should use pips instead of price level, but backtesting seemed to be returning a different returns, and the fact its initially returning the correct value makes me think it's something else.
Thanks
-
Hi All,
Please disregard, i'm fairly confident the issue is ATR being a price fraction rather than a price level, and ive been using price level to do my calculations
-
@moonkay I recommend to use a 'For each trade' block on top of the second block tree. Pink blocks work better when connected below one of them.