This functionality allows you to add a custom delay between the Target hit / Stoploss hit event and the upcoming Re-execute order.
You can find this setting under Advanced Settings and is visible only when Re-entry/Re-execute functionality is selected for the algo.
The delay is counted from the time the Target/Stoploss hit event has occurred ie. from the time the target or stoploss condition was met plus a default delay of 3 seconds, and NOT from the time the exit order is executed. The delay counter doesn't wait for the confirmation of the exit order execution.
EXAMPLES:
Example 1:
Re-execute order delay (seconds) setting: 10 secs
Re-entry method: LTP
Stoploss hit time: 12:20:55
Stoploss exit order executed at: 12:20:57
Re-execute order will be fired at: Stoploss hit time + default 3 seconds delay + Re-execute order delay
= 12:20:55 + 3 secs + 10 secs
Hence, Re-execute order will be fired at = 12:21:08
(Note in this above example the execution time of the stoploss exit order has no relevance)
Example 2:
Re-execute order delay (seconds) setting: 10 secs
Re-entry method: Candle Close
Stoploss hit time: 12:20:25
Stoploss exit order executed at: 12:20:29
Re-execute order will be fired at: Stoploss hit time + default 3 seconds delay + Re-execute order delay + Candle Close (wait till the end of the minute in which the Stoploss was hit)
= 12:20:25 + 3 secs + 10 secs + wait till the end of the minute in which the stoploss was hit
Hence, Re-execute order will be fired at = 12:21:00
(Note in this above example the execution time of the stoploss exit order has no relevance)
Example 3:
Re-execute order delay (seconds) setting: 180 secs
Re-entry method: Candle Close
Stoploss hit time: 12:20:25
Stoploss exit order executed at: 12:20:29
Re-execute order will be fired at: Stoploss hit time + default 3 seconds delay + Re-execute order delay + Candle Close (wait till the end of the minute in which the Stoploss was hit)
= 12:20:25 + 3 secs + 180 secs + wait till the end of the minute in which the stoploss was hit
Hence, Re-execute order will be fired at = 12:23:28
(Note in this above example the execution time of the stoploss exit order has no relevance)
Important points:
- This functionality works in both cases where Re-entry/Re-execute method setting is either LTP or Candle Close.
- Re-execute order delay setting get applied to both target based and stoploss based re-execute orders, and is a common setting between the two.
- This delay functionality works only for individual leg re-execute type entries and NOT for MTM Re-entries.