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/fwl
For 64 bits – https://go.microsoft.com/fwli
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.
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.
Create and backtest a trading strategy using the AmiBroker charting software.
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:
PlaceOrder(licenseKey, symbol, transactionType, orderComplexity, orderType, product, duration, quantity, price, triggerPrice, squareOff, stopLoss, trailingTicks, disclosedQuantity);
When you wish to send an order signal from AmiBroker, you will need to send it in this manner:
Note: TrailingTicks should be set to 20 or above if you wish to place a trailing SL with OCO. Otherwise it should be kept at zero.
Note: For Banknifty monthly and weekly options, the scrips will be accepted as mentioned below:
Once the signal is generated, place order function should be called through AFL with a valid license key.
Upstox servers will identify the client and pass the signal on to the Upstox Pro Web.
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.
Finally, you can place an order with just one touch with the help of Upstox one-click trade technology.