<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Algo Trading on WebNotes</title><link>https://v2.webnotes.in/tags/algo-trading/</link><description>Recent content in Algo Trading on WebNotes</description><generator>Hugo</generator><language>en-IN</language><lastBuildDate>Tue, 12 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://v2.webnotes.in/tags/algo-trading/index.xml" rel="self" type="application/rss+xml"/><item><title>How to backtest a strategy on Streak</title><link>https://v2.webnotes.in/how-to-backtest-strategy-streak/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-backtest-strategy-streak/</guid><description>&lt;p&gt;&lt;strong&gt;Streak&lt;/strong&gt; is a no-code algorithmic trading platform integrated with Zerodha that allows traders to build, backtest, and deploy rule-based strategies on equities and F&amp;amp;O contracts without writing a single line of code. This guide focuses on the backtesting workflow: how to define a strategy, run it against historical data, and critically evaluate the results.&lt;/p&gt;
&lt;p&gt;For the deployment workflow once a backtest is satisfactory, see &lt;a href="https://v2.webnotes.in/how-to-deploy-streak-strategy-live/"&gt;How to deploy a Streak strategy live&lt;/a&gt;. For the underlying brokerage platform see &lt;a href="https://v2.webnotes.in/streak-platform/"&gt;Streak platform overview&lt;/a&gt; and &lt;a href="https://v2.webnotes.in/kite-zerodha/"&gt;Kite, Zerodha&amp;rsquo;s trading platform&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>How to deploy a Streak strategy live</title><link>https://v2.webnotes.in/how-to-deploy-streak-strategy-live/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-deploy-streak-strategy-live/</guid><description>&lt;p&gt;&lt;strong&gt;Streak&lt;/strong&gt; allows a backtested rule-based strategy to be promoted to live execution, routing orders directly into &lt;a href="https://v2.webnotes.in/kite-zerodha/"&gt;Zerodha Kite&lt;/a&gt; without manual intervention for each signal. This guide covers the steps from backtested strategy to live market deployment, including paper trading validation, margin checks, risk controls, and ongoing monitoring.&lt;/p&gt;
&lt;p&gt;For the backtest workflow that precedes this step see &lt;a href="https://v2.webnotes.in/how-to-backtest-strategy-streak/"&gt;How to backtest a strategy on Streak&lt;/a&gt;. For the platform overview see &lt;a href="https://v2.webnotes.in/streak-platform/"&gt;Streak platform overview&lt;/a&gt;.&lt;/p&gt;
&lt;aside class="callout callout--warn" role="note"&gt;
 &lt;strong class="callout__label"&gt;Derivatives-risk disclosure&lt;/strong&gt;
 &lt;div class="callout__body"&gt;Live deployment of an algorithmic strategy carries significant financial risk. A strategy that performed well in backtesting may fail in live trading due to changed market conditions, slippage, partial fills, or data feed interruptions. F&amp;amp;O positions can produce losses exceeding the initial margin. Never deploy a strategy with capital you cannot afford to lose. Physical settlement risk applies to in-the-money stock options held to expiry; automated strategies must close such positions before the close-out deadline. SEBI&amp;rsquo;s algo trading guidelines (circular SEBI/HO/MIRSD/MIRSD-PoD-1/P/CIR/2021/577) require that retail investor algo orders route through the broker&amp;rsquo;s approved API; Streak satisfies this requirement as an approved Zerodha partner.&lt;/div&gt;
&lt;/aside&gt;

&lt;aside class="callout callout--key" role="note"&gt;
 &lt;strong class="callout__label"&gt;Prerequisites&lt;/strong&gt;
 &lt;div class="callout__body"&gt;&lt;ul&gt;
&lt;li&gt;A validated, backtested strategy in Streak with satisfactory out-of-sample results (see &lt;a href="https://v2.webnotes.in/how-to-backtest-strategy-streak/"&gt;How to backtest a strategy on Streak&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;A Zerodha account with the F&amp;amp;O segment activated and sufficient available margin.&lt;/li&gt;
&lt;li&gt;A Streak paid subscription (live deployment typically requires a paid plan; confirm current plan limits on streak.tech).&lt;/li&gt;
&lt;li&gt;Understanding of the strategy&amp;rsquo;s maximum possible loss and daily drawdown characteristics.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/aside&gt;

&lt;h2 id="why-paper-trade-before-going-live"&gt;Why paper trade before going live&lt;/h2&gt;
&lt;p&gt;Backtesting uses historical data with idealised fill assumptions. Paper trading (Streak&amp;rsquo;s virtual portfolio mode) runs the strategy on live market data with the same logic but without real money. This intermediate step validates:&lt;/p&gt;</description></item><item><title>How to deploy a Streak strategy on Zerodha</title><link>https://v2.webnotes.in/how-to-deploy-streak-strategy-zerodha/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-deploy-streak-strategy-zerodha/</guid><description>&lt;p&gt;&lt;a href="https://v2.webnotes.in/streak-platform/"&gt;Streak&lt;/a&gt; is a no-code algorithmic trading platform that integrates with &lt;a href="https://v2.webnotes.in/zerodha/"&gt;Zerodha&lt;/a&gt;&amp;rsquo;s &lt;a href="https://v2.webnotes.in/kite-connect-api/"&gt;Kite Connect API&lt;/a&gt; to execute live trading strategies based on technical conditions defined in its visual strategy builder. Deploying a Streak strategy on Zerodha moves a strategy from paper simulation or backtest mode to live market execution, where the platform automatically places buy and sell orders in your &lt;a href="https://v2.webnotes.in/zerodha/"&gt;Zerodha&lt;/a&gt; account when entry and exit conditions are met. This guide covers the deployment flow, the required Kite Connect authorisation, parameter configuration, and live monitoring.&lt;/p&gt;</description></item><item><title>How to generate a Kite Connect API key</title><link>https://v2.webnotes.in/how-to-generate-kite-connect-api-key/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-generate-kite-connect-api-key/</guid><description>&lt;p&gt;The &lt;a href="https://v2.webnotes.in/kite-connect-api/"&gt;Kite Connect API&lt;/a&gt; requires a valid &lt;code&gt;api_key&lt;/code&gt; and &lt;code&gt;api_secret&lt;/code&gt; pair to authenticate every session and API call. These credentials are issued by &lt;a href="https://v2.webnotes.in/zerodha/"&gt;Zerodha&amp;rsquo;s&lt;/a&gt; developer console at kite.trade after you register an app and subscribe to the Kite Connect service. This guide walks through every step of that process.&lt;/p&gt;
&lt;aside class="callout callout--key" role="note"&gt;
 &lt;strong class="callout__label"&gt;Prerequisites&lt;/strong&gt;
 &lt;div class="callout__body"&gt;&lt;ul&gt;
&lt;li&gt;A fully KYC-verified and active Zerodha trading account. Open one at zerodha.com if you do not have one.&lt;/li&gt;
&lt;li&gt;A Zerodha Kite Connect subscription (Rs 2,000/month). The subscription is billed to your Zerodha client ID.&lt;/li&gt;
&lt;li&gt;Two-factor authentication (TOTP) set up on your Zerodha account. This is mandatory for logging in to the developer console.&lt;/li&gt;
&lt;li&gt;A redirect URL where Zerodha will send users after they authorise your app. For testing, &lt;code&gt;http://127.0.0.1&lt;/code&gt; is acceptable.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/aside&gt;

&lt;aside class="callout callout--info" role="note"&gt;
 &lt;strong class="callout__label"&gt;Conflict-of-interest disclosure&lt;/strong&gt;
 &lt;div class="callout__body"&gt;WebNotes is an independent knowledge base. This guide is not sponsored by Zerodha or any third party. Links to kite.trade and zerodha.com are informational only.&lt;/div&gt;
&lt;/aside&gt;

&lt;h2 id="why-kite-connect-requires-an-api-key"&gt;Why Kite Connect requires an API key&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://v2.webnotes.in/kite-connect-api/"&gt;Kite Connect&lt;/a&gt; authenticates API clients using a two-credential model: the &lt;code&gt;api_key&lt;/code&gt; (an identifier, safe to share with users of your app) and the &lt;code&gt;api_secret&lt;/code&gt; (a private signing credential that must never be exposed). Every authenticated session begins with the OAuth-style login flow that uses both credentials to produce a short-lived &lt;code&gt;access_token&lt;/code&gt;. The &lt;code&gt;api_key&lt;/code&gt; also governs which Zerodha client IDs your app is authorised to act for, and is the billing identifier that Zerodha uses to track subscription status and usage.&lt;/p&gt;</description></item><item><title>How to paper-trade a Streak strategy</title><link>https://v2.webnotes.in/how-to-paper-trade-streak-strategy/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-paper-trade-streak-strategy/</guid><description>&lt;p&gt;Paper trading a &lt;a href="https://v2.webnotes.in/streak-platform/"&gt;Streak&lt;/a&gt; strategy runs the strategy&amp;rsquo;s entry and exit logic against live real-time market data, logging simulated orders at current market prices, without placing any actual orders in your &lt;a href="https://v2.webnotes.in/zerodha/"&gt;Zerodha&lt;/a&gt; account. Paper trading bridges the gap between historical backtesting (which uses past data) and live trading (which uses real capital): it tests the strategy&amp;rsquo;s signal logic under live market conditions, including intraday price movements and volatility patterns that may not be captured in historical data, while eliminating the financial risk of live execution.&lt;/p&gt;</description></item><item><title>How to place an order via the Kite Connect REST API</title><link>https://v2.webnotes.in/how-to-place-order-kite-connect-rest/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-place-order-kite-connect-rest/</guid><description>&lt;p&gt;The &lt;a href="https://v2.webnotes.in/kite-connect-api/"&gt;Kite Connect API&lt;/a&gt; exposes a clean REST interface for order management that supports all major Indian exchanges and order types. Once you have a valid &lt;code&gt;access_token&lt;/code&gt; (see &lt;a href="https://v2.webnotes.in/how-to-generate-kite-connect-tokens/"&gt;How to generate the request_token and access_token&lt;/a&gt;), you can place, modify, and cancel orders programmatically using the &lt;a href="https://github.com/zerodha/pykiteconnect"&gt;kiteconnect Python SDK&lt;/a&gt;. This guide covers the full order-placement workflow, parameter reference, and production-grade error handling.&lt;/p&gt;
&lt;aside class="callout callout--key" role="note"&gt;
 &lt;strong class="callout__label"&gt;Prerequisites&lt;/strong&gt;
 &lt;div class="callout__body"&gt;&lt;ul&gt;
&lt;li&gt;An active Kite Connect subscription (Rs 2,000/month plus GST). See &lt;a href="https://v2.webnotes.in/how-to-generate-kite-connect-api-key/"&gt;How to generate a Kite Connect API key&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A valid &lt;code&gt;access_token&lt;/code&gt; for the current trading day. See &lt;a href="https://v2.webnotes.in/how-to-generate-kite-connect-tokens/"&gt;How to generate the request_token and access_token&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;kiteconnect&lt;/code&gt; package installed: &lt;code&gt;pip install kiteconnect&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Python 3.8 or later.&lt;/li&gt;
&lt;li&gt;A funded and active Zerodha trading account with sufficient margin for the intended order.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/aside&gt;

&lt;aside class="callout callout--info" role="note"&gt;
 &lt;strong class="callout__label"&gt;Conflict-of-interest disclosure&lt;/strong&gt;
 &lt;div class="callout__body"&gt;WebNotes is an independent knowledge base. This guide is not sponsored by Zerodha or any third party. Links to kite.trade and zerodha.com are informational only.&lt;/div&gt;
&lt;/aside&gt;

&lt;h2 id="order-model-in-kite-connect"&gt;Order model in Kite Connect&lt;/h2&gt;
&lt;p&gt;Kite Connect organises every order placement call around four orthogonal dimensions.&lt;/p&gt;</description></item><item><title>How to write a basic Python script using kiteconnect</title><link>https://v2.webnotes.in/how-to-basic-python-kiteconnect-script/</link><pubDate>Tue, 12 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/how-to-basic-python-kiteconnect-script/</guid><description>&lt;p&gt;The &lt;a href="https://github.com/zerodha/pykiteconnect"&gt;kiteconnect Python SDK&lt;/a&gt; is the official client library for the &lt;a href="https://v2.webnotes.in/kite-connect-api/"&gt;Kite Connect API&lt;/a&gt; from &lt;a href="https://v2.webnotes.in/zerodha/"&gt;Zerodha&lt;/a&gt;. It wraps every REST endpoint and the WebSocket tick stream into a clean, Pythonic interface. This guide takes you from a blank directory to a working script that authenticates with Kite Connect, fetches your portfolio, queries live market prices, and places a paper-trade-style order. By the end you will have a reusable project structure suitable as the foundation for any algo trading strategy.&lt;/p&gt;</description></item><item><title>Zerodha Pi discontinuation and migration</title><link>https://v2.webnotes.in/zerodha-pi-discontinuation/</link><pubDate>Mon, 11 May 2026 00:00:00 +0000</pubDate><guid>https://v2.webnotes.in/zerodha-pi-discontinuation/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;Zerodha Pi was a Windows-based desktop trading application launched by &lt;a href="https://v2.webnotes.in/zerodha/"&gt;Zerodha&lt;/a&gt; around 2015 as the broker&amp;rsquo;s primary advanced trading platform. Pi offered a more feature-rich environment than the web-based tools of the time, including integrated charting with advanced technical analysis indicators, strategy testing using AmiBroker integration, multi-window layouts, and direct market access features for more active traders. The platform was positioned as Zerodha&amp;rsquo;s answer to the institutional-grade desktop terminals used by professional traders, adapted for the retail client.&lt;/p&gt;</description></item></channel></rss>