Candle Close Implementation on AlgoTest
Candle Close on Re-entries​
Now you have the feature to INITIATE conditions on . They shall work as follows:
Re-ASAP on SL/Tgt​
Let's assume the SL/Tgt for a leg is hit at 10:02:25. Under the Candle Close feature, the Algo will wait till 10:02:59 to initiate your condition.
At 10:02:59, it shall determine the strike based on your criteria and take the new trade.
Re-Momentum on SL/Tgt​
Let's assume the SL/Tgt for a leg is hit at 10:02:25. Under the Candle Close feature, the Algo will wait till 10:02:59 to initiate your condition.
At 10:02:59, it shall determine the strike based on your Strike selection criteria and the Reference Price based on your condition.
You can find this option under Advance Execution Settings.
Implemented Features in Detail​
Candle close time (HH:mm:59) will be decided after trade reporting to backend.
That means it will be based on Report Time of Leg Exit (not trigger time).
Stoploss Based on Premium % and Points:​
-
LTP: The stoploss is triggered in real-time, and the trade is executed immediately.
-
Candle Close: Stoploss based on premium points or percentage does not work on a candle-close basis. However, if candle-close is selected, the execution behaves the same as LTP-based stoploss.
Update​
In backtest if a candle includes both stop loss and target, then we chall consider it as follows :
-
If the open price is closer to the high then high is given the priority.
-
If the open price is closer to the low, then low is given the priority.