Here is an article that tells you everything you need to know about using AmiBroker for trading FOREX markets. <\/p>
I.\u00a0DATA<\/strong><\/p>
AmiBroker is very flexible as regards the datasources that can be used to feed data to the program.<\/p>
1) Realtime data<\/p>
Forex traders usually require a realtime datasource and with AB you have a variety of choices.
The exact configuration process depends on the particular source – click on the appropriate link to learn how to configure the source of your choice:<\/p>
– eSignal – http:\/\/www.amibroker.com\/video\/esignal.html<\/a>\u00a0
– IQFeed – http:\/\/www.amibroker.com\/iqfeed.html<\/a>
– Interactive Brokers – http:\/\/www.amibroker.com\/video\/ib.html<\/a>
– any source that supports DDE standard (this is a generic communication interface, check if your broker\u2019s application supports DDE) – http:\/\/www.amibroker.com\/dde.html<\/a>
– any source that delivers the data in MetaStock format – see:
http:\/\/www.amibroker.com\/guide\/h_extsources.html<\/a><\/p>
The download process is shown in the video:
http:\/\/www.amibroker.net\/video\/forex.html<\/a><\/p>
To learn more about importing the data from ASCII (text) files – please read the following tutorial:
http:\/\/www.amibroker.com\/guide\/w_impwizard.html<\/a>
\u00a0<\/strong><\/p>
II.\u00a0 SYMBOL GUIDE<\/strong><\/p>
Here you will find the links to the most popular vendors guidlines:<\/p>
– eSignal:
http:\/\/www.esignalcentral.com\/support\/symbol\/symbol_format.asp#forexGarban<\/a>
http:\/\/www.esignalcentral.com\/support\/symbol\/forex.asp<\/a><\/p>
– IQFeed:
http:\/\/www.iqfeed.net\/symbolguide\/index…<\/a><\/p>
– Interactive Brokers:
http:\/\/www.amibroker.com\/ib.html<\/a>
In case of Interactive Brokers – if you have any doubt what format to use –
you can easily check any symbol in IB.<\/p>
Tools -> Preferences -> Miscellaneous<\/p>
The changes will also affect such tools as Fibonacci Extension or Retracement drawing tools.<\/p>
IV. SCANNING and DATA EXPLORATIONS <\/strong><\/p>
AmiBroker allows you to perform sophisticated scanning and data explorations (both in realtime and\u00a0with use\u00a0of\u00a0historical quotes). To perform\u00a0data analysis\u00a0and display the values of chosen indicators in the customized table – we can use Automatic Analysis window. The detailed description on how to perform explorations is available at:
http:\/\/www.amibroker.com\/guide\/h_exploration.html<\/a><\/p>
As a short example – we will find the crossovers of MACD and its Signal line and additionally – display values of the symbol we test. The 3rd parameter of\u00a0AddColumn()<\/a><\/strong> function allows to customize the number of places after decimal point, so it’s possible to specify if we need 2 or 4 decimal places.\u00a0If we use:<\/p>
AddColumn( Close, “Close”, 1.2);<\/strong>
then AB will display only 2 decimals.<\/p>
NOTE: Unless otherwise noted, all examples below assume you trade full size contracts.<\/em><\/p>
– Round lot size<\/strong>\u00a0should be\u00a0equal to 1\u00a0<\/p>
–\u00a0Margin Deposit<\/strong> in most cases should be set to 1000 (1% margin from $100’000)<\/p>
1) Currencies denominated in USD<\/p>
\u00a0– choose: Tools -> Send to Auto-analysis<\/p>
NumContracts * (SellPrice – BuyPrice) * PointValue<\/strong>
\u00a0<\/p>
Profit<\/strong> = 3 * (1.2304 – 1.2154) * 100’000 = 4’500<\/strong><\/p>
So – the profit matches the results we’re getting by manual calculation.<\/p>
These settings can be defined in: Tools -> Preferences -> Currencies <\/strong>dialog.<\/p>