AmiBroker - Pi Trading Bridge

What is it?

It is an interface between AmiBroker (Charting and Technical Analysis Platform) and Pi Trading Platform. This Bridge automates most of the tasks associated with placing Buy/Sell orders.

Current issues

Currently traders maintain non-connected setups for Technical Analysis and Order Management. Whenever trading signal triggers in charting platform, traders place order in their trading platform manually. For frequent day-traders, this is error-prone, time-consuming & needless duplication of efforts.

How they are solved?

Global Datafeeds addresses this pain-point by connecting the Analysis and OMS setups – thanks to cutting edge technologies from Zerodha Pi Platform – as shown below.

How it works ?

Whenever signal triggers in charting / analysis platform, it instantly reflects in OMS – picking up the details of the intended trade from the analysis platform automatically. Then depending on the status of the user, the order will be placed on the exchange (NSE) as per following 2 scenarios*.
  • If the user is a Dealer :
    The order so reflected in charting platform will directly be placed on the exchange (strategy needs prior approval from exchange (NSE)).
  • If the user is a Retail Trader :
    The order so reflected in charting platform will reflect in NEST OMS. The user will have to review and accept the order so that it is placed on the exchange (no prior approval is required for the strategy from the exchange (NSE)).
* As per SEBI / Exchange Regulations. Please consult your broker to know more.


  • Simple to use interface with drag-n-drop operations. Comes loaded with a sample strategy for testing (Refer Video)
  • Zero Programming Knowledge is required to use this Trading Plugin.
  • Supports multi-symbol, multi-strategy, multi-chart setups (Refer Video)
  • Automatically picks up the pre-defined order parameters (exchange, client id, product type, order type, order quantity, disclosed quantity, symbol name) alongwith dynamic parameters (order price) from the chart and directly feeds it to trading platform – as soon as signal is triggered in AmiBroker.
  • Facility to specify Slippage in chart, to place limit order price adjusted as per your choice.
  • Can be applied to already-live trading system without writing / editing any code – (Refer Video)
  • Support for Line Pair Trading (LPT) to enter/exit positions based on positions of 2 user-drawn lines (Buy & Sell) in Chart. (Refer Video)
  • Users can use LPT & strategy-based trading exclusively or combine them in any manner. For example :
    • entry by LPT and exit by LPT – useful for users trading short term trends or part-time traders or traders without programming knowledge.
    • entry by strategy and exit by LPT – useful for profit-protect / stoploss orders
    • entry by LPT and exit by strategy – useful if you login late or decide to trade a signal after some time but once entered, want to exit as per the strategy only.
    • entry by strategy and exit by strategy – useful for traders who trade on readymade trading strategies from strategy vendors or traders who have their entry/exit rules written and prefer to follow the rules strictly.
  • Supports ‘Manual Trading (MT)‘ to enter/exit positions by clicking on Buy/Sell buttons in chart.
  • Users can use MT stand-alone or it can be combined with LPT & strategy-based trading.
  • Supports Buy/Sell as well as Short/Cover orders (doubles quantity automatically for stop-and-reverse type of orders).
  • Generates Trailing Stoploss for existing user strategies – even if it does not exist in original code.
  • Generates Target Based Exits for existing user strategies – even if it does not exist in original code.
  • Facility to close positions on chart before market close everyday – useful for strict intraday traders.
  • Built-in facility to see detailed Profit / Loss Report (daily, weekly, monthly, yearly reports) and facility to get report between any 2 custom dates.
  • Misc. convenience features : Entry line, dynamically updating CMP Line (like in MetaTrader), profit/loss status of current trade on last (realtime) candle.
  •  No special hardware setup is needed to run algo-trading – can run on normal computer
  • 2 minutes setup – An easy installer which  installs all necessary components in one go
  • Simple to use interface with drag-n-drop operations
  • Sample Strategy for testing
  • Live Chat, remote desktop and email support
    Last but not the least…
  • Trading Bridge is offered free of cost currently to all our data subscribers.

Minimum Requirements :

Users desirous to have this facility will need following :
  • Compatibility :
    1. This Trading Plugin is written for AmiBroker Standard, Professional or Ultimate Pack Pro Editions and can be tested even in free trial edition. We have tested it on latest Official Releases 5.50, 5.60, 5.70, 5.90 and 6.0 and works just fine in AmiBroker running on Windows XP, Windows 7 (32 bit / 64 bit), Windows 8 (32 bit / 64 bit) and Windows 10 (32 bit / 64 bit).
    2. We have briefly tested Trading Plugin in AmiBroker Version 5.2, 5.3 & 5.4 (stable releases – not RC or any Beta Versions) and it seems to work fine – except one problem. The popup window that shows order details as soon as the order is triggered is small and does not contain all order details. This is so because these versions of AmiBroker had small sized popup window of ‘fixed’ size and provided no way to define a custom (bigger) window. However, this is only a ‘display problem’ and it sends correct order with all relevant details to NestTrader.
  • Realtime data from us (Any of our data product NimbleDataPro, NimbleDataPlusLite, NimbleDataProPlus)
  • Trading plugin (provided free of cost by us for all our data platforms and is included with the standard installation as an introductory offer)
  • Trading Account with Zerodha using latest Pi Trading Platform (http://www.zerodha.com).
  • Activation of Pi API for AmiBroker (please write to Zerodha for this)

What next ?

  • We offer free trial of following from our site :
    1. realtime data (3 working days), and
    2. trading plugin (3 working days)
    To use the products beyond trial period, you will need to buy / subscribe to them.
  • Before requesting trial, please ensure that you already hold active Trading Account with Zerodha + Pi Bridge  of Zerodha Pi Platform.
  • Register on our site for free trial. To know how to register for trial and download appropriate installer, please Click Here.
  • Download and Run the installer. Single installer contains and installs all the 3 products. AmiBroker installation is skipped if AmiBroker is already present on your computer.
  • Existing users of our data platforms will need to upgrade to the latest version to use Trading Plugin

Resources – strategy writing in AmiBroker (original article courtesy – www.tradinganalysis.co.in)

Are you looking for AmiBroker with trading system… that is, AmiBroker with automatic Buy-Sell arrows?
AmiBroker does not have any trading strategy built in the basic program i.e. AmiBroker is not shipped pre-configured with any trading system showing automatic Buy-Sell arrows. However, AmiBroker can show Buy-Sell arrows based on any criteria during live market hours. You may make use of following to have Buy-Sell Arrows in your copy of AmiBroker.


To trade stock market instruments by using Trading Plugins IS VERY RISKY. Please read following carefully BEFORE TRYING / USING this facility
  • This trading interface provides bridge between signals triggered in AmiBroker BY YOUR TRADING STRATEGIES and Pi (Zerodha Trading Platform) given to you by your broker. You should check working of your strategy code thoroughly (including working of this trading interface) to make sure it works as per your expectations before actually using it with real money.
  • Trading Interface is intended to make trading easier and faster but IT IS NOT INTENDED TO BE RUN WITHOUT SUPERVISION. DO NOT LEAVE TRADING UNATTENDED as certain circumstances may occur like internet failure, software crash, etc. which may lead to serious financial losses.