Thank you for the amazing knowledge that you bring here.
help that I am looking for is with an indicator whenever there is a Buy or Sell signal, once the trade is taken I want to exit once I have 5 rs profit with every signal
9:25 AM Buy signal takes the trade for 1 lot of 25 @200 rs exit once it reaches 205 at 9:27
9:30 AM Sell Signal takes the trade for 1 lot of 25 @200 rs exit once it reaches 205 at 9:35
hoping for help
Tradetron TeamTradetron team
Use a per-leg target that compares the traded leg’s live price with its own entry price. It works the same way for every signal.
Exit condition (Set Exit of each set)
Buy set (bought at 200, exit at 205): LTP(Traded Instrument Name(Entry, 1, 1, 1)) >= Traded Instrument(Entry, 'price', <underlying>, 1, 1, 1) + Number(5)
Sell set (sold at 200, exit at 195): LTP(Traded Instrument Name(Entry, 1, 1, 1)) <= Traded Instrument(Entry, 'price', <underlying>, 1, 1, 1) - Number(5)
Traded Instrument with field price returns the fill price of that set’s condition 1, leg 1, so the target follows each new entry automatically.
Simpler option
Add a Repair Once with the Leg Exit keyword and type Target Points = 5 for the leg.
Re-entry on the next signal
After the exit, the set goes back to checking its Entry, so the next Supertrend signal can enter again. If you want to cap trades per day, add a runtime-variable counter to the entry.