×

New website.
Better service.


We're proud to announce that RKSV has taken a giant leap forward and is now Upstox.

How can I use a Bridge to AmiBroker with Upstox Pro Web?

The Upstox team wants to give you all the advanced, sophisticated trading tools available in the market. One of the ways in which you can get a seamless trading experience is through the Bridge to AmiBroker product. AmiBroker is a leading charting software in the industry which offers you the tools to backtest your strategies, use the easy-to-understand code and formula editor, and analyze markets using multiple indicators and chart types. Thus, we wanted to bring you the smooth user experience of the Upstox Pro trading platforms, unbeatable brokerage rates and the vast charting tools available with AmiBroker. That’s why we’ve created the Bridge to AmiBroker that lets you connect AmiBroker and Upstox so that you can make the most of both a charting software and a technology-focused broker.

In order to use a Bridge to AmiBroker with Upstox Pro Web, you have to first open an Upstox account or if you already have an Upstox account, you can Pay As You Go and get a monthly subscription for AmiBroker Bridge. Once you purchase the Upstox AmiBroker Bridge, you can get your license key from our Developer Portal. This license key is valid for 30 days which can be renewed at any time.

The License Key is unique and is mapped with your Client ID. Once you visit developer.upstox.com, login and create an Upstox AmiBroker App.

 

 

 

 

Now, the next step is two-fold.Firstly, you have to download the Plugin prerequisite and Install.

For 32 bits – https://go.microsoft.com/fwlink/?LinkId=746571

For 64 bits –  https://go.microsoft.com/fwlink/?LinkId=746572

Secondly, you have to download the DLL depending on your PC configuration (either 32 bit or 64 bit) and then paste the downloaded DLL into your AmiBroker Plugins folder. To paste you can access the folder by right clicking AmiBroker icon–> Open file location–> Plugins.

*Download DLL for 32 bit from here.

*Download DLL for 64 bit from here.

Once the download is complete, restart the AmiBroker Charting Software and accept the one-time certification info pop-up.

To verify you can find the Upstox AFL Plugin in the Tools–> Plugins tab of your AmiBroker software.

Using AmiBroker for signal generation:

Step 1:

Create and backtest a trading strategy using the AmiBroker charting software.

Step 2:

Then, use the AFL Formula editor to provide instructions to buy and/or sell. The instructions should follow a CSV format.

For receiving signals, the Upstox backend is designed in the following CSV format:

Place Order (“license key”, “symbol”, “transaction type”,”Quantity”,“orderComplexity”, “order Type”, “product”, “price”, “trigger Price”, “duration”, “disclosed Quantity”)

When you wish to send an order signal from AmiBroker, you will need to send in this manner:

PlaceOrder (“9ddf2858-54e9-45ed-b747-3b490e6d712f”, “BANKNIFTY17JUNFUT.NFO”, “b”, “40”, “SIMPLE”, “m”, “i”, “0”, “0”, “DAY”, “0”)

Step 3:

Once the signal is generated, place order function should be called through AFL with a valid license key.

Step 4:

Upstox servers will identify the client and pass the signal on to the Upstox Pro Web.

Step 5:

Thus, the trading signal will be received in client’s AlgoLab. AlgoLab is a fixed workspace available in Upstox Pro Web only for those users who enable the Bridge to AmiBroker.

Step 6:

Finally, you can place an order with just one touch with the help of Upstox one-click trade technology.

Rules for the Place Order function while using the Bridge to AmiBroker:

Was this article helpful?