HI,
I have created a strategy using conditions in set entry, repair once and exit condition.
Repair condition is as follows fixing target at 6% and SL at 3%.
The strategy is taking position based on entry condition but after that, it doesn’t square off based target or SL conditions given in Repair once even though SL conditions are satisfied.
Notification log shows as follows.
VWAP ( Traded Instrument Name ( ‘7958848’, ‘1’, ‘Entry’, ‘instrument’, ‘NIFTY BANK’, ‘1’, ‘1’, ‘1’ ) , ‘LTP’ ) : 196.8
VWAP ( Traded Instrument Name ( ‘7958848’, ‘1’, ‘Entry’, ‘instrument’, ‘NIFTY BANK’, ‘1’, ‘1’, ‘1’ ) , ‘LTP’ ) : 196.8
Traded Instrument Name ( ‘7958848’, ‘1’, ‘Entry’, ‘instrument’, ‘NIFTY BANK’, ‘1’, ‘1’, ‘1’ ) : OPTIDX_BANKNIFTY_20JUL2023_PE_45100
Traded Instrument Name ( ‘7958848’, ‘1’, ‘Entry’, ‘price’, ‘NIFTY BANK’, ‘1’, ‘1’, ‘1’ ) : 227.3000030517578
Number ( ‘1.03’ ) : 1.03
Traded Instrument Name ( ‘7958848’, ‘1’, ‘Entry’, ‘instrument’, ‘NIFTY BANK’, ‘1’, ‘1’, ‘1’ ) : OPTIDX_BANKNIFTY_20JUL2023_PE_45100
Traded Instrument Name ( ‘7958848’, ‘1’, ‘Entry’, ‘price’, ‘NIFTY BANK’, ‘1’, ‘1’, ‘1’ ) : 227.3000030517578
Number ( ‘0.94’ ) : 0.94
As it can be seen, LTP is below the 6% target (‘below’ because it’s Short position) set in Repair once condition. However position is still carried on.