I am trying to write a ATM strategy that involves conditional stoploss.
How can I, upon an entry of a long position, immediately set a stoploss when the following conditions are met:
1. set a stoploss to exit at the price of the "previous 2 bar low". (e.g when I go Long on a 1hr bar timeframe, my stoploss is placed at the low of the bar that was 2hr ago)
2. set a stoploss to exit at "1 ATR away" from the entry price (e.g when Average True Range indicator is at 20 ticks, the ATM strategy will automatically set the stop loss at 20 ticks)
Can this be done in the "condition builder" as I am not an expert with programming?
Many Thanks!

Comment