I am trying a new Streak intraday strategy. I want to enter in stock only if the market is green. Is there any way to buy a stock only if the sensex is green?
If the strategy is taking a Long position then you would have kept the Order Type parameter as ‘LONG’ for the added Dynamic Contract.
We would like to inform you that the Order Type setting will always supersede the Strategy Position. Hence even though you have selected ‘Sell’ as the strategy position, BUY entry is triggered on the basis of the Order Type parameter of the Dynamic contract. You can change the order type to Short and rerun the backtest and it should be fine. Please refer to the below image:
In the below backtest result, the open price of the 9:15 am candle is shown as the exit price. But according to the backtest assumptions it should be the open price of the next candle i.e. 10:15 candle open price. Can you explain this?
In CNC/NRML strategies, whenever the target profit is breached due to a gap up or gap down, the open price of that candle is considered the exit price as an exception.
In your case, Autobees, the entry on 24th May was at ₹242.50, with a 5% target profit set at ₹254.625. On 10th June, the open price of ₹261.4 breached this target. Consequently, the backtest reflects an exit at ₹261.4.
It should be noted that there is no time difference in Entry/Exit when it comes to backtesting and deployment (except if you are using the Multi Timeframe function). Streak generates triggers only after the closing of the candle. In the backtest, the opening time of the candle is displayed as the trigger time, and the open price of the next candle is considered as the trigger price. In deployment, the trigger will be generated after the closing of the candle and the entry price will depend on when you act on the alert and the volatility in the scrip, etc.
For example, if your conditions match on the 9:35 5min candle, then in the backtest the open time of the candle will be shown as the entry trigger time i.e. 9:35 (to maintain consistency with the charts) and the open price of the next candle i.e. the open price of the 9:40 candle will be displayed as the entry trigger price. In live deployment, entry will be triggered after the closing of the 9:35 candle i.e. at 9:40.
@streak can you help create a strategy to buy an ATM CALL Option when the NIFTY50 Choppiness index is higher than 50. Is it possible to create such a strategy .
Do note that you cannot use functions such as Opening range, Nth Candle, Signal Candle or Trade Candle inside the Period Min/Max Function. This is because, these functions are static value functions that will specifically fetch a given candle, even as new candles are created. However, the Period Min/Max function is a Dynamic Value function that will check on the latest given number of candles as and when the new candles are formed.
Thus due to the above logic, the Signal Candle or Trade Candle function cannot be used inside the Period Min/Max.
Kindly answer – The deployed strategies in live, do we have to deploy the strategies daily before the market starts or one-time activation of the strategy is enough??