Sei sulla pagina 1di 3

API Bridge Setup Instructions (with Amibroker)

Useful Links

 Most Important – User Guide https://algostore.in/apibridge-user-guide/

 Comparative list of features: https://algostore.in/compare-apibridge-vs-robo/

 Downloads: https://algostore.in/downloads/

 Demo: https://algostore.in/apibridge-demo-with-live-trading/

 Setup Video – this detailed video shows how to setup APIBridge on Amazon AWS
cloud. If you ONLY want to learn about APIBridge setup, start viewing from 17:30
onwards: https://www.youtube.com/watch?v=jjMuXLgA5iA Setup instructions are also
included with your downloaded setup files.

 Broker API Information: https://algostore.in/algo-trading-api-brokers/

 AFL Coding Guide: https://algostore.in/afl-coding-guide-algo-trading/

 Amibroker AFL Toolkit: https://algostore.in/amibroker-algo-toolkit/

 Python Integration Code: https://algostore.in/python-algo-trading/

System Requirements

1. Amibroker 32/64-bit. Any version upwards from 5.50 will work. Amibroker should be
connected with live data.
2. VC++ runtime environment 2015 (32 bit). Windows-10 has this pre-installed, or you can
install fresh from: https://www.microsoft.com/en-in/download/details.aspx?id=48145
3. // these step is for live trading if you want to do paper trading you don’t need API just set the
mode of application to paper trading.
Upstox API: Login to upstox developer https://developer.upstox.com/#/login ->
Click Create New App -> App Name: anything you want, Redirect Url: https://upstox.com/ Subscribe
to Interactive API. Once you click create, you will get API key and secret. Other broker APIs also
have similar process, see details on https://algostore.in/algo-trading-api-brokers/
4. APIBridge integrated AFL https://algostore.in/amibroker-algo-toolkit/ To start, you can simple
use the the Sample Amibroker Stratgey given with this setup. No need for any integration.

If any of above 4 items is missing, you will not be able to start auto trading.
APIBridge Installation

1. This software does not require installation! Simply download zipped folder, and extract it. Right-
click on APIBridgeLauncher.exe -> Send To->Desktop (create shortcut)
2. Login with your API Bridge ID
3. Go to Tools->Application Settings. Under API, put your upstox api key, secret and redirect url.
Important: make sure you copy-paste these settings correctly, or it will not work. Click Save after filling
up this information
4. Under Amibroker tab, give the installation path for Amibroker. Usually this is C:Program Files
(x86)AmiBroker
5. Login to APIBridge and Start Amibroker.
6. In Amibroker, go to Tools->Preferences->Intraday. Check the option START time of interval
(recommended). Click Apply.
7. In your strategy AFL from which you want to fire signals, append the code automation afl code.
To start, you can simple use the Sample Amibroker Stratgey given with this setup. No need for any
integration.

Amibroker Setup Before Starting API Bridge (for those new to


Amibroker)

1. Copy the AlgojiAfl.dll fine in the plugin folder of Amibroker. Use the 32-bit
version or or 64-bit version depending on whether your Amibroker is 32-bit or 64-bit.
Path= rightclick on amibroker icon =>go to file location=>open plugin folder=>paste the
AlgojiAfl.dll file. Remember, you need VC++ environment as given in system
requirements above.
2. Start Amibroker
3. Now you will need data of stock market. If you want to do paper trading for testing your
strategy then historical data will be fine:
https://app.box.com/s/539sno8391ojcnct27h3rb9c2qzo1b5r
And if you want to do live trading then go to any vendor like Amifeed or truedata . Amifeed link
is given below take support from them they will configure it with your machine. LINK:
https://www.amifeed.com/
4. Live data trial will be setup by vendor. Follow the below procedure to setup historical
data.
Open amibroker=>click on file=> new=>database=> (after bthis path C:\Program Files
(x86)\AmiBroker\) give the name of database. =>create=>select the base time interval from
EOD to 1 minute.
5. Now your data base is created follow the steps to import historical data
File=>import wizard=>pick file=>goto file location select the file you downloaded=>on
next screen you will get a data sample like this Date,Open,High,Low,Close,Adj
Close,Volume=> configure the column specified in this format => if you need more
column then click on more column button=> in the skip line text field give value 1.=>click
on next =>finish.
6. Now you will need strategy to get buy and sell signals follow steps to do that .
Click on formula editor=>open => go to path where your strategy is (Ifyou donty have
any strategy follow the find here you will get some predefined strategy from website
link: https://algoji.com/latest-amibroker-afl/)=> now you need Algoji autotrade plugin
(algoji auto trade simplified ). Paste it below your strategy in formula editor . Now
everything is set.
7. Login to API Bridge select the mode of application from symbol settings . and click on
start trading.
8. Click on bar replay in Amibroker set the date of data which you have and click on play
when signal will come on your chart they will be placed accordingly in api bridge.

Potrebbero piacerti anche