Connecting AutoTrader with other softwares

In this article, we will discuss the steps required to integrate AutoTrader with any other software. We have already provided buit-in support for Amibroker, MetaTrader & Excel. If you are using any other software (like NinjaTrader) for running your strategies then this article with help you connect with AutoTrader.


AutoTrader uses shared files for communicating with other software. There are files for sending information to AutoTrader as well as receiving information from AutoTrader. These files have comma separated format (csv). They are present at (C:\autotrader\data\order). Click here to see how to change this default path.

Let us understand these files:

  • orders.csv
    • This is an input file for AutoTrader, which means AutoTrader will read this file to receive information from other software
    • You can send commands like place or cancel order to AutoTrader by writing order details to this file.
    • AutoTrader reads this files as soon as a change is observed in the file
  • platform_orders.csv
    • This is an output file of AutoTrader, which means AutoTrader will write information to this file so that other software can read it
    • This file contains live details of orders that are present on your trading platform
    • AutoTrader writes to this file every N seconds (N can be configured in settings, default value is 10)
  • platform_positions.csv
    • This is an output file of AutoTrader, which means AutoTrader will write information to this file so that other software can read it
    • This file contains live details of positions that are present on your trading platform
    • AutoTrader writes to this file every N seconds (N can be configured in settings, default value is 10)

Links: Sample format is available here


Reference Code

This functionality is already implemented in Excel & Amibroker. If you refer to the code, it will be a lot easier for you to understand. All you need to is to write similar code for your software.

Amibroker code

File NameC:\autotrader\scripts\amibroker\Formulas\Include\

You can open this file in Amibroker or Notepad.

Excel code

File NameC:\autotrader\scripts\excel\autotrader.xlam

You will need to go to Developer tab & click Visual Basic to view the code.

Other software -> AutoTrader

This kind of communication is required primarily for actions like place or cancel an order.

Procedure to write to a file
  1. Prepare your commands
  2. Open file in append mode (Append means you start witting from the end of file. Do not overwrite any existing data present in the file)
  3. Write your commands to file (only 1 command per line is allowed)
  4. Close the file
Place/Cancel Order Command

To place/cancel an order, you need to write order details in a comma separated format explained in this excel sheet (sheet name: orders.csv). To understand more about these columns; please read a section called “Function Variables” in user guide.

Excel FunctionsplaceOrderAdvanced(), cancelOrder()

Amibroker FunctionsplaceOrderRAW(), cancelOrder()

AutoTrader -> other software

This kind of communication is required primarily for reading live status of orders & positions on your trading platform. This type of communication is switched off by default. To enable it, go to AutoTrader Settings:
Set PLATFORM_SYNC property value to true.

Procedure to read from a file
  1. Open file whenever required
  2. Read all lines
  3. Close file
Read Live Details of Orders

To get live details of your orders from AutoTrader, read the file platform_orders.csv. The format is explained in this excel sheet (sheet name: platform_orders.csv)

Excel Functions: readOrderColumn(), getOrderStatus() etc.

Amibroker Functions: readOrderColumn(), getOrderStatus() etc.

Read Live Details of Positions

To get live details of your positions from AutoTrader, read the file platform_positions.csv. The format is explained in this excel sheet (sheet name: platform_positions.csv)

Excel Functions: readPositionColumn(), getPositionPNL() etc.

Amibroker Functions: readPositionColumn(), getPositionPNL() etc.


Communicating with AutoTrader is as simple as writing or reading from a file. If you need any help, feel free to contact us.

You can also look at AmiBroker AutoTrader workflow & AmiBroker Strategy Debugging to get more insights.

Additional Information

Changing default path of AutoTrader Files

  1. Click on AutoTrader menu (Settings -> AutoTrader)
  2. Find setting IPC_FILES_PATH & click on it
  3. Click Edit button
  4. Put new path in Value field
  5. Click Update
  • In amibroker, edit “”. Point it to new path:

ORDER_FILE_PATH = “C:\\autotrader\\data\\temp\\orders.csv”;
PLATFORM_ORDERS_FILE_PATH = “C:\\autotrader\\data\\temp\\platform_orders.csv”;
PLATFORM_POSITIONS_FILE_PATH = “C:\\autotrader\\data\\temp\\platform_positions.csv”;

I have around 15 years of experience developing Financial Software. I took a break from my career to start my own algorithmic trading setup. This new journey started well and along with my own proprietary trading systems, I also started building automation systems for retail traders, fund managers and HNIs. I was employed with firms like Morgan Stanley, HSBC & SunGard. I work on various technologies, but my strengths are building server side cloud based algorithmic trading systems built primarily using Java programming language. Apart from all of this, I am a big fan of Formula 1 racing :-)

47 thoughts on “Connecting AutoTrader with other softwares”
  • Hardik says:


    We need to execute an order for multiple clients at a time.Is there any such functionality available with auto trader or ami broker ?


    June 18, 2018 at 6:32 am
    • Admin says:

      Yes, you can execute orders for multiple clients from either excel or amibroker using AutoTrader. But you will need either NEST or NOW dealer terminal (trading platform).

      June 19, 2018 at 6:18 am
  • Rushi says:

    Does Auto Trader work with Ninjatrader 8 to place order on Zerodha Kite

    July 7, 2018 at 7:34 am
    • Admin says:

      As of now, there is no built in support but you can use this article to make connection.

      July 13, 2018 at 4:32 am
  • Sam says:

    Hi can we use this in ODIN of Angel broking

    July 10, 2018 at 6:28 pm
    • Admin says:

      You need to set odin as a platform, please mail us if you need more help.

      July 13, 2018 at 4:31 am
  • CHETAN says:

    can i automate trades with your software on renko chart?

    August 24, 2018 at 1:17 pm
    • Admin says:

      Yes, we provide apis which can work on any chart.

      August 27, 2018 at 7:29 am
  • sateshchand says:

    can i use this auto trader with ninja trader 7.
    are you having any ready API for ninjatrader.
    if you develop how much you charge for it.
    can use with ANT trading terminal which is similar to zerodha terminal.

    August 31, 2018 at 6:28 am
    • Admin says:

      We do not have Ninja Trader expertise as of now

      September 26, 2018 at 11:48 am
  • B L BIRLA says:

    If I plan to prepare my strategy on Metatrader n pass commands through csv files as per User manual, is the live feed of data made available to Metatrader as per the package?

    How many times in a year have you experienced the RTD feed or interface downtime?

    Pls copy your reply to my email also.

    September 15, 2018 at 12:12 pm
    • Admin says:

      Live price feed is not available in MT4. Max downtimes was 2 hrs & has happened only once so far.

      September 26, 2018 at 11:44 am
  • Gunda Venkatesh says:

    Hello sir
    This is venkatesh
    My what’s app no 7729953679
    I am use. Amibroker plz add Odin to auto trade pls explain send messages

    September 28, 2018 at 6:02 pm
    • Admin says:

      Please go ahead and try to connect it with ODIN, if you face any issues then send a mail to support.

      September 29, 2018 at 7:28 am
  • Kaushik says:

    Can auto trader work with Python and Zerodha.

    October 26, 2018 at 1:21 pm
    • Admin says:

      Yes it can please take a look at this article.

      October 30, 2018 at 3:40 am
  • Baban Ganguly says:

    Will it work with Tradingview?


    January 4, 2019 at 4:09 pm
    • Admin says:


      January 8, 2019 at 3:32 am
      • Baban Ganguly says:

        Thanks for the reply.
        I have created strategy in pine sciprt(Trading view), Then i have to convert it to AFL to test Auto Trader.
        Only part I am worried about the stability of Autotrader. (I.e. delay in getting chart data from Kite to Amibroker and also execution)

        January 8, 2019 at 5:47 pm
  • May I get real tick data in to my Metatrader software?
    May I get PCR values , required all options data , using Add function() AFL in my Amibroker?
    Please reply to my email too.
    Thanks for early reply.

    January 13, 2019 at 12:26 pm
    • Admin says:

      Realtime data is only supported in Amibroker.

      January 14, 2019 at 6:01 am
  • Sanjay Singh says:

    Will it work with fyers web?


    January 16, 2019 at 4:02 pm
    • Admin says:

      We already contacted Fyers regarding integration with their platform, but we have not received a response from them. If you can connect us with them, then we will definitely look to provide support for their platform.

      January 17, 2019 at 4:19 am
  • shabber pasha says:


    January 20, 2019 at 9:05 pm
    • Admin says:

      Not as of now, we may add support in future.

      January 22, 2019 at 3:16 am
  • Swapnil Bagul says:

    Can i change AutoTrader writes to this file every N seconds if change what is the value for milliseconds for the file platform_positions.csv and platform_orders.csv

    March 20, 2019 at 6:36 am
    • Admin says:

      AutoTrader will not accept anything lower than 15 seconds internally. This has been done on purpose to avoid sending too many requests to broker systems.

      March 20, 2019 at 9:49 am
      • RAJNI KANT says:

        so it will not be possible to trade on tick chart?

        one more question, can I connect it to ICICI direct either on web based platform or trade racer.?

        April 24, 2019 at 8:48 am
      • Admin says:

        It is possible to trade on tick chart. Please read more about amibroker and afl language. Not possible on ICICI.

        April 30, 2019 at 5:23 am
  • Raj says:

    Is it possible to get RT data in to python or .net from kite?

    June 28, 2019 at 7:45 am
    • Admin says:


      July 2, 2019 at 6:14 am
  • bharat says:

    i use sharekhan trade tiger at present,pls tell me that autotrader link works with trade tiger or not.
    if not then which one is best out of “AliceBlue, UPSTOX, NEST, NOW, ODIN & Zerodha KITE platforms” for nse cash, nse futures, nse option
    and mcx. compare also for all type of orders like sharekhan.
    sharekhan discontinued all eg. excelsheet, amibroker bridge and Api. i am interested in Ema Crossover as well as supertrend Afl for 5 Min , 15 Min ,60 Min intraday charts.

    September 20, 2019 at 4:35 pm
    • Admin says:

      Zerodha Kite & Upstox web works very well.

      September 29, 2019 at 6:55 am
  • Akilan says:

    Ihave account in astha and aliceblue . Is it possible to connect auto trader in both account . Is it possible to install autotrader in mobile . Plz give ur valuable suggeztions

    October 10, 2019 at 6:27 pm
    • Admin says:

      We only support aliceblue

      November 8, 2019 at 7:15 am
  • Vijay says:

    Are there any support for getting streaming quotes via Autotrader. Lets say I want to monitor BANKNIFTY Price Changes and based on the same place buy/sell orders in realtime.

    October 22, 2019 at 11:44 am
    • Admin says:

      Yes, live quotes from supported with Zerodha Kite & Upstox account into AmiBroker.

      November 8, 2019 at 7:14 am
  • siva says:

    Dear Sir,
    I need to connect Amibroker AFL to Angel broking Speedpro by placing auto buy or sell. Can you please suggest code

    November 27, 2019 at 2:56 am
  • Ajay says:

    Can this auto trader be linked with axisdirect web based terminal?

    November 30, 2019 at 8:20 am
  • Shashikant says:

    I have strategy in zerodha Streak. Will the buy sell signals generated by Streak accepted for auto trader.

    December 17, 2019 at 6:07 pm
    • Admin says:


      December 25, 2019 at 11:19 am
  • TS Sudarsan says:

    Hi Sir…. Can I use MT4 just as plug in to place orders by using your API?

    August 3, 2020 at 4:29 am
  • R K Gupta says:

    can we you AutoTrader with BSE BEST?

    December 6, 2020 at 3:10 pm
    • Pritesh says:

      Not sure about that. It works with Omnesys NEST Trader.

      December 7, 2020 at 10:33 am

Comments are closed.