{"id":31,"date":"2006-08-09T02:56:17","date_gmt":"2006-08-09T07:56:17","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/2006\/08\/09\/amibroker-for-forex\/"},"modified":"2017-06-14T12:01:22","modified_gmt":"2017-06-14T11:01:22","slug":"amibroker-for-forex","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2006\/08\/09\/amibroker-for-forex\/","title":{"rendered":"AmiBroker for Forex"},"content":{"rendered":"
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. – eSignal – http:\/\/www.amibroker.com\/video\/esignal.html<\/a>\u00a0 \u00a0<\/p> 2) AmiQuote downloader<\/p> If you do not require realtime quotations, but it’s enough for you to have the historical data (e.g. for backtesting your strategies) – then you can also use AmiQuote downloader program (a companion program that is installed with AmiBroker) and it will allow you to get FREE forex data (both EOD and intraday: 1-, 3-, 5-, 15-, 30-, 60- and 120-minute intervals).<\/p> AmiQuote can download the quotations for the following currency pairs: The download process is shown in the video: You need to do the following: 3) Text files.<\/p> You can also use any data that comes in the text files. The ASCII Importer available in AmiBroker is very flexible and accepts practically any standard of data. To learn more about importing the data from ASCII (text) files – please read the following tutorial: II.\u00a0 SYMBOL GUIDE<\/strong><\/p> Once you configure the database (to read realtime data), then all you need to do is to add the symbol via: Symbol -> New menu and AmiBroker will automatically read the data for the selected symbol. Please note that various datasources have different symbology, so please always refer to the data vendor’s Symbol guide to learn about the required symbol format.<\/p> Here you will find the links to the most popular vendors guidlines:<\/p> – eSignal: – IQFeed: – Interactive Brokers: Just enter the symbol in Interactive SYMBOL-EXCHANGE-TYPE \u00a0<\/p> III. CHARTING<\/strong><\/p> Since most currency pairs requires 4 decimals to display the rates properly, it’s necessary to set-up AmiBroker accordingly. The number of decimal places can be defined\u00a0 in Preferences dialog in:<\/p> Tools -> Preferences -> Miscellaneous<\/p> <\/p> The changes will also affect such tools as Fibonacci Extension or Retracement drawing tools.<\/p> \u00a0<\/p> \u00a0<\/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:
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>
– 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>
EURCHF,EURGBP,EURJPY,EURUSD,GBPUSD,USDCHF,USDJPY<\/p>
http:\/\/www.amibroker.net\/video\/forex.html<\/a><\/p>
– set up database in AmiBroker (File -> New Database, local database, base
time interval, e.g. EOD)
– run AmiQuote (START -> Programs -> AmiBroker -> AmiQuote )
– add forex symbols in AQ: (Edit -> Add tickers )
– select FOREX as a datasource
– select time range
– check “Automatic Import” field
– choose: File -> Start download
The intraday forex quotes are available in the Registered version of AmiQuote only.
Although the entire data range is very long, you must remember that in case of intraday quotes the saefst way is to get data in small parts, few weeks at a time.
Otherwise the request may be too large for the data server to handle it and as a result it will reject the request.
The other important thing to remember is that the data is not avalable for downloads between 13:00 – 22:00 GMT time (7:00 – 16:00 EST) – in these hours the data\u00a0 vendor’s\u00a0 server just rejects all the requests for intraday quotes.<\/p>
To import quotations – the most convenient is to use File -> Import Wizard.<\/p>
http:\/\/www.amibroker.com\/guide\/w_impwizard.html<\/a>
\u00a0<\/strong><\/p>
http:\/\/www.esignalcentral.com\/support\/symbol\/symbol_format.asp#forexGarban<\/a>
http:\/\/www.esignalcentral.com\/support\/symbol\/forex.asp<\/a><\/p>
http:\/\/www.iqfeed.net\/symbolguide\/index…<\/a><\/p>
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>
Brokers TWS, then change the view to Symbol mode
(View -> Symbol mode). Now you can compose the actual symbol out of three
fields:<\/p>
where:
SYMBOL is the same as the symbol column as displayed in TWS while under
symbol mode
EXCHANGE is the exchange d in TWS while under symbol mode
TYPE\u00a0 is one the following: STK – stocks, FUT – futures, FOP – options on
futures, OPT – options, IND – indexes, CASH -cash (ideal FX)<\/p>
http:\/\/www.amibroker.com\/guide\/h_exploration.html<\/a><\/p>