• Getting started
    • Steps to get started
    • Subscribe to a paid plan
    • Instructions
    • Pricing
    • Discounted Pro
  • Features (Trade logic)
    • List of all Trading features
    • Entry logic: Entry by Premium
    • Entry logic: ATM %
    • Entry logic: Straddle Width
    • Entry logic: Straddle Premium
    • Move Stoploss to Cost
    • Positional trades
    • Premium Matching functionality
    • Re-Entry / Re-Execute
    • Wait & Trade
    • Underlying based Entries & Exits
    • Range Breakout
  • Advanced Settings
    • List of all Advanced Settings
    • Entry order delay & Exit order delay
    • Calculate entry & exit using Average price or LTP
    • Re-entry method
    • Re-entry timing settings
    • SL order placement delay
    • Re-entry max count Type
    • Re-execute order delay
  • Order types
    • Order type: SL-Limit
    • Limit / SL-Limit EXIT orders
    • Limit / SL-Limit ENTRY Orders
  • Other features
    • Square off individual legs
    • Clientwise Stoploss & Target
    • Auto exit on margin error
    • Retry button for individual orders
    • Telegram Notifications
    • Advance placement of Re-Entry orders
    • Multiplier
  • Important topics
    • Limit Price Protection (LPP) mechanism
    • BSE Sensex, Bankex & NSE Midcpnifty
  • Broker Setup
    • Zerodha
    • Upstox
    • IIFL
    • Bigul by Bonanza
    • Tradejini
    • 5Paisa
    • AC Agarwal
    • Jainam Duck
    • Flattrade
    • Kotak Securities (Kotak Neo)
    • Fyers
    • Motilal Oswal

Re-execute order delay


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.


PROBABLE USE CASES:

1. When a target or a stoploss hit, sometimes it takes time for the exit order to get filled and get fully executed OR sometimes when the broker's system is slow, it takes a few extra seconds for the margin to get freed up after an exit of an open position. Since re-execute orders do not wait for the exit to complete, sometimes a margin error can come up while placing the new re-execute order. If you are not trading with extra margin to account for the above scenarios, then this custom delay can add additional time before firing the re-execute order and help avoid a margin error coming for the new re-execute orders.

2. Some backtesting tools allow this custom delay to be added between exits & re-execute orders

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:

  1. This functionality works in both cases where Re-entry/Re-execute method setting is either LTP or Candle Close.
  2. 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.
  3. This delay functionality works only for individual leg re-execute type entries and NOT for MTM Re-entries.