I provided my code for the strategy, my goal is to make the my profit target and stop loss based on the indicator values at the time it entered into a position and not move anymore. For stop loss
I use double previouslowerline = myindi.Lowerline[0]; but when I look sometimes on the backtested charts the bars where it finally ends in a stop loss are waaay far gone from the original value of the indicator. So I'm assuming my stop loss is dynamicly moving with the current bar?
So I was wondering if you could help me out and Thank you in advance

Comment