AlgoTest Execution Setup Made Easy: Broker Setup and Settings That Match Your Backtest

A backtest is only useful if live trades behave the same way. This guide connects a broker to AlgoTest through its API and walks through every execution setting that decides whether your live P&L matches the backtest.

AlgoTest Execution Setup Made Easy: Broker Setup and Settings That Match Your Backtest

Step 1: connect your broker

  1. In AlgoTest open Broker Setup and click Set up now.
  2. Choose your broker. Brokers such as Fyers and Dhan do not charge for API access; Zerodha's Kite Connect charges a monthly fee (₹2,000 at the time of the video), which is the broker's charge, not AlgoTest's.
  3. Give the connection a name, so you can tell accounts apart if you connect several.
  4. In your broker's API dashboard create an app, paste AlgoTest's redirect URL, allow the permissions and create it.
  5. Copy the App ID and Secret ID back into AlgoTest and save. You can delete the connection later from the same screen.

Step 2: execution settings that match the backtest

Open Algo Trade, Intraday, pick your saved strategy and click Setup Execution. Then set:

  • Quantity multiplier: trade 2x or 4x the backtest lots for a day without editing the strategy.
  • Trade monitoring: Candle close rather than last traded price. Backtests are evaluated on candle closes, and LTP stop losses get hit by sudden spikes.
  • Start time one second early: if the strategy runs at 9:20:00, set 9:19:59, because execution starts about a second late.
  • Product type Normal rather than MIS, to avoid automatic square-off and extra charges.
  • Trigger price instead of traded price for stop loss and target, so they are measured from the same price as in the backtest.
  • Order type Limit with a limit buffer of about 5 percent, converted to market after 1 second if not filled. Avoid plain market orders.
  • Copy the settings to all legs.

Hedged strategies: delay the sell leg

If you buy far out-of-the-money options to reduce margin, all orders firing together can fail with a margin error when the sell leg reaches the exchange first. Start the strategy a few seconds earlier and give only the sell legs an entry delay of about 3 seconds, so the buy legs always fill first.

Costs and forward testing

At the time of the video live execution cost about 100 credits per month per running strategy slot and forward testing about 50 credits. Forward testing runs the strategy without sending orders to the broker; run it for a few weeks before trading real money.

Want to try ideas before paying for anything? Backtest NIFTY, Bank Nifty and Sensex rules free on TradingFriday.

Frequently asked questions

Why does my live result not match the AlgoTest backtest?

Usually the execution settings differ: LTP instead of candle close, market orders, or traded price instead of trigger price. Align them with the backtest.

Which broker is cheapest for AlgoTest?

Brokers without API fees (for example Fyers, Dhan, and Groww or Upstox, where AlgoTest marked execution as free) cost less than Kite Connect.

Tags: AlgoTest · Algo Trading · Broker Setup · Execution Settings · Options Trading

Tags

AlgoTest, Algo Trading, Broker Setup, Execution Settings, Options Trading, algotest execution setup, algotest broker setup, algotest tutorial in hindi, how to use algotest, algotest live execution, algotest execution settings, algotest fyers setup, algo trading in india, options algo trading setup, backtest vs live results algotest