Hello. Any way to set a static stop that is the low of a specific number of candles back from when the order was executed? Can’t seem to get this to work. Thank you!
Trying to code a Conditional Order for a static stop loss based on the low of X number of candles ago. All the code I have found and tried is dynamic/trailing and moves as the current candle moves in time - I have not been able to make it static based on the time of order execution. Here's some of the code I have tried but it doesn't quite do what I'm trying to achieve because it is not based on the time the buy order executed... def stoploss = low < lowest(low[1], 8);
Trying to code a Conditional Order for a static stop loss based on the low of X number of candles ago. All the code I have found and tried is dynamic/trailing and moves as the current candle moves in time - I have not been able to make it static based on the time of order execution. Here's some of the code I have tried but it doesn't quite do what I'm trying to achieve because it is not based on the time the buy order executed... def stoploss = low < lowest(low[1], 8);
Last edited by a moderator: