Plugin Installation
See here how to install APIBridge, before Amibroker plugin installation. Go to Amibroker installation directory ->Plugins folder->Put dll file from here . Restart Amibroker, you should see a message when Amibroker opens – You are using following NON-CERTIFIED third party plugins. If this message comes, it means plugin correctly installed.
(On old PCs only) dll will not be detected, you need to update .Net Framework. Go to https://www.microsoft.com/en-in/download/details.aspx?id=48145 and install 32bit or 64bit as per your Amibroker version.
Sample AFL
Download the sample AFL and apply it on a chart. In Amibroker, from top menu click on Tools-> Preferences -> Intraday. Then select START time of interval and Apply.
APIBridge Jump Start
Start APIBridge. On bottom message window, you should see a message – Amibroker installation verified successfully. In the Symbol Settings window, select Jump Start template and apply.
JumpStart Template is your first template to test drive system trading through APIBridge. No signal rules or risk management rules are applied in this template.
You will see three symbols in Symbol Settings – SBIN, NIFTY and CRUDEOIL. Let us learn how to place orders in these 3 market segments.
Trading in Equities (Cash)
- Change SBIN (input symbol) to your chart symbol. Example, if you see on charts HDFC-EQ, you should change this to HDFC-EQ.
- Change SBIN (trading symbol) to actual trading symbol for order placement. Example- HDFC. Save the settings by keypress Ctrl+S
- Click Start Trading
- On Amibroker, click LE button on Chart. In APIBridge, you will see messages about Signal Received and Order placed. Check Net Positions and Trade History.
Trading in Futures
- Change NIFTY (input symbol) to your chart symbol. Example, if you see on charts BANKNIFTY-I, you should change this to BANKNIFTY-I
- Change NIFTY (trading symbol) to actual trading symbol for order placement. Example- BANKNIFTY
- If you are trading in Stock Futures,Commodities, or Currency, remember to change Instrument from FUTIDX to FUTSTK, FUTCOM or FUTCUR respectively.
- Change expiry date to correct date.
- Save the settings by keypress Ctrl+S
- Click Start Trading
- On Amibroker, click LE button on Chart. In APIBridge, you will see messages about Signal Received and Order placed. Check Net Positions and Trade History.
Exploring Further – Signal Rules
- Go to Application Settings->Signal Settings. Tick the Rule: LE place order only in NetPos <=0. This rule protects you from trade misfire. What if you accidentally clicked LE button twice? Or you strategy repaint Buy arrows and send LE again? Test with this rule to find out.
- Send LE signal again from button like you did last time. It will show message:
- Send LX now to squareoff your net position. Check Net Positions and Trade History.
- Send LE again. Since, now NetPosition is 0, it will place order.
- TIP: If you want to scale-in to trades (or position sizing) you should keep this rule unchecked.
Exploring Further – Risk Management
- Go to Risk Management tab in APIBridge. Add MaxOrderPerMinute: 2 and hit Ctrl+S. This rule again helps your strategy from misfire. What if, there is continuous buy-sell signal from your strategy?
- Try now by quickly using buttons to send 4 signals – LE, LX, LE, LX. It will allow only first two signals to fire orders.
You can now continue exploring other features of APIBridge. Customize it to suit your requirement before starting live trading.
amobroker connection wating
MAKE SURE TO RUN TWS and enable API actitive x shocket clint and
amibroker intigration test ok but symbol not show
SIR CALL ME PLZ
AMIBROKER intigration test ok but connection wationg