You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm experiencing difficulty with setting up SL (Stop Loss). I set the price for SL as follows: for LONG positions, it's the low price of the previous candle, and for SHORT positions, it's the high price of the previous candle. However, in the majority of cases, the SL works correctly, but for 35% of the trades with SL, the value is incorrect, and it's skewing the performance metrics of the strategy. Could you please advise on what might be the issue?
my code: self.buy(sl=self.data.Low[-1]) self.sell(sl=self.data.High[-1])
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm experiencing difficulty with setting up SL (Stop Loss). I set the price for SL as follows: for LONG positions, it's the low price of the previous candle, and for SHORT positions, it's the high price of the previous candle. However, in the majority of cases, the SL works correctly, but for 35% of the trades with SL, the value is incorrect, and it's skewing the performance metrics of the strategy. Could you please advise on what might be the issue?
my code:
self.buy(sl=self.data.Low[-1]) self.sell(sl=self.data.High[-1])
Beta Was this translation helpful? Give feedback.
All reactions