Deploy allows users to take their algos live in the stock market (NSE) and get actionable alerts based on the entry and exit conditions in their algo.
You can have upto 25 algorithms (basic plan) live in the waiting state without using any margin (Zero margin).
Streak does not calculate any margin requirement for you to take position, all margin calculations is done by Kite the moment you take a position by clicking on the order window.
The moment you click on confirm, the algos gets Deployed and you are moved to DEPLOYED section of Streak.
The deployed section has 3 different States of an algo
Indicates the number of algos you have deployed and the Streak bots start tracking for signals. You can have as many as 25 live algos in the waiting and entered section combined for basic plan.
The moment an algo ENTRY criteria is met a Blue or an Orange dot appears and starts blinking continuously.
- Blue dot - Buy (Entry buy) condition has met
- Orange dot - Sell (Entry Sell) condition has met
The moment you click on the blinking dot an order window is shown. You will have to click on the order window to enter the position. (Remember to place an immediate SL-M order you have to click on notification using bell icon)
Now, if the order is completed then the algo automatically moves to ENTERED or if the order gets rejected due to some issue eg: margin not available the algo moves to stopped.
Algo in entered state means you have a position open and this position has the SL and TP price mentioned
The moment your TP or SL gets hit you will be notified with the below blinking dots
- Red - Stop loss
- Green - Target profit
- Blue dot - Buy (Entry buy or exit condition buy)
- Orange - Sell (Entry or exit condition)
SL-M order if placed earlier will just close the position
Also, if your algo has 2 or more cycles associated with it. The algo waits in Entered after completing first cycle and you may also receive
An algo can move to stopped state if you have - Completed the algo cycle - Algo was manually stopped - Algo gets terminated or force stopped
You can always Redeploy a stopped algo anytime and it will move to Waiting state in the deployed section.
You can view the complete details of algo stages from orderlog option from deployed page.
Algo deployment life cycle¶
Algo Cycle, the entry followed by a respective exit of an algo is algo cycle.
Once an algo is deployed, the stocks are periodically tracked based on the conditions in the algo. The periodicity with which the market is tracked is the same as the candle interval selected by the user while backtesting the algo and shown in the algo summary before deployment. An algo's ideal life cycle and the tree of events that can occur during an algo's life cycle, called an "algo cycle", is explained below:
- Waits for the first entry event as per the entry condition in the deployed algo.
- Once the entry event occurs, a entry signal (buy/sell) is triggered and an actionable alert is sent to the user.
- The user can choose to act on the alert by clicking buy/sell or choose to ignore the alert and cancel it (cancelling will terminate the algo).
- If the user has clicked on buy/sell in the alert, a market order is sent to the exchange (NSE) via Kite.
- The order will either be successfully placed by the exchange or it might get rejected due to reasons such as insufficient capital. If the order gets rejected by the exchange, the algo gets terminated.
- After the successful placement of an order, the algo continues to track the stock waiting for the exit signal (SL or TP) or exit condition. Based on the entry price and the SL and TP percentages entered by the user, the SL and TP prices are calculated which are displayed to the user.
- When the SL/TP price occurs or if the exit condition is met, whichever occurs first, an actionable notification is sent to the user again. The user has to act on it by clicking buy/sell or choose to ignore the alert and cancel it (cancel will terminate the algo).
- If the user has clicked on buy/sell in the alert, a market order is sent to the exchange (NSE) and the algo's cycle is now complete.
Points to remember¶
- The "algo cycle" sequence defined above is an ideal sequence and is subject to market conditions and user behaviour. Based on the user's action or market conditions, the sequence might not completely occur in the same way as it is intended to, since this sequence may have been interrupted due to various reasons such as, the user stopping the algo, order rejection by the exchange, network lag, network error etc.
- For both intraday and overnight algos, the algo cycle is defined by the user from 1 to 5. If you select 1 cycle then after 1 entry and the respective entry the lago moves to completed state and is stopped.
- Margins are not blocked till the user acts on the actionable alerts (buy/sell) and the order is sent to the exchange. Margins are blocked by Kite and not Streak. You can have 25 ALGOS in deployed- waiting state with zero margin blocked.
- The algo can be stopped by the user at any time in the life cycle of the algo by clicking on the "Stop" button. If the algo has not entered a position, it will be directly stopped otherwise the user will be presented with an option to either stop the algo by keeping the positions open or to exit positions at market and stop the algo. The algo will no longer be tracked and no further alerts will be sent to the user for the respective algo.
- In cases where the user stops the algo and chooses to keep positions open, the responsibility of closing any and all positions is solely on the user, and user will get no alerts for that deployed instrument once the algo is stopped.
- For order type MIS, all algos will be stopped at 3:20 pm and the open positions, if any, will be squared off by the respective broker (example, Zerodha) before market close and 4.30 PM for currency futures
- All actionable order alerts sent to the user can be used only once and will be active for only 5 minutes after which the alert expires in the alerts/ notification section. However the alerts can be acted by clicking on take action button to enter the algo.
- All actionable alert orders are market orders and users can expect price variation from the price at which the alert was triggered to the price at which the the order is placed. This is called Slippage. The slippage for illiquid stocks is usually high.
- If the user's order is rejected due to various reasons such as shortage of funds, circuit limit hit, no liquidity in market, etc, the algo will be stopped and no further alerts will be sent for that algo. This is done in order to avoid unnecessary tracking of instruments where the order placement failed. However, the user can deploy the algo again and take action on any new alerts that get generated.
- As a precautionary measure prompt the user to place an SL-M order immediately when they take a position. This is to bring in discipline while trading . The user can place the SL-M order or reject it . The position will still be live and if the stop loss is hit first then SL orders notification is sent to the user for their action to close the position.
- Target profit orders are not placed with the entry order. The algo tracks the stock for the stop loss and take profit prices only after entering a position. Once the take profit price occurs, an actionable alert is sent to the user and once the user confirms the order, the exit market order is placed and position is closed. You will have to cancel the SL- M order if you have placed by clicking on cancel SL-M if you have placed SL-M when you have taken the position.
- Once a signal is generated, we try to send this signal to the user's device over the internet. The delivery of these alerts are subject to network conditions of the user, internet services and technical issues.
- Accurate and complete real-time price data is critical for the success of algorithmic trading. Our service providers or systems that provide data could experience failures, errors, lag and latency, which could result in missing, incorrect, or stale market data leading to no/wrong signals (alert) while triggering an alert.
- By using this service, the user acknowledges they understand that the alerts' delivery is dependent on many factors such as the internet connection of the user, location, time of the day, server load, data availability, etc.
- We advice users to be logged in to streak.tech, keep it open in their browser and maintain an uninterrupted fast internet connection to their devices to see the best alerts delivery.
- Streak relies on third party services for market data, eg: ticks, OHLCV, etc. If these services are down due to unforeseen circumstances or experience a down time due to various technical / non technical issues, Streak might not be able to generate and deliver the actionable alerts.
- All actionable order alerts are read-only market order alerts, where with a single click the user can send the order to the exchange. The actionable order alerts are made read-only in order to obtain consistency in the deployed and backtest results and to avoid any drastic increase in risk.
- Upon clicking on BUY/SELL on the order window, based on users network speed, a network latency can be experienced, and any rapid clicks on the BUY/SELL button through same or different windows can lead to multiple order placements. Users take full responsibility on making sure the actions on the notifications are their own actions and are fully aware of their positions and algo status when on the BUY/SELL button.