Hello,
Looking for someone to help with Amibroker backtester settings to use/simulate Interactive Brokers forex if it`s overall possible to get precise results using Amibroker software. As most of us know that Interactive Brokers forex is actually cash market ( IdealPro ) there is no lots and probably this is the main reason why settings should be different and doesn`t work in normal way. Whole month trying to get AB backtester working. No results, lost completely. Checked Amibroker yahoo group, but unfortunately not much info about AB with IB forex there. Checked all possible docs from AB site ( inc. Amibroker backtester by ChrisB. Jan 2008 ) about forex all info and examples given is about normal forex.
What I wanna do is to trade main fx pairs basket - eurusd, gbpusd, usdjpy, usdcad, usdchf, audusd, nzdusd, eurchf, eurgbp and later maybe to add a few more. My base currency is GBP. To get life easier I`d like to trade in "virtual lots" which is IB IdealPro minimum position size required (e.g. EURxxx pairs - 20K, AUDxxx, USDxxx - 25K, GBPxxx - 17K, NZDxxx - 35K ).
Also there are some questions regarding IB commissions. It`s $2.49/per trade and always are converted to base currency in reality, but fx rates(GBPUSD) changing time after time and in my case probably there is no chance to get right commissions.
Also I doubt that interest can be included into AB backtest as Interactive Broker always buys one currency and sells other as well as P&L after every trade stays in it`s respective currency, so, it means interest counts all the time when position open and when it closed also from your Profit or Loss.
I`d like to add ~0.0001 spread into account as well to get more realistic results, but I think I saw an example somewhere in AB group, so, I`ll sort it out myself later. Now I want to get the main backtester settings (margin deposit, point value, position size and other important settings) correctly working with Interactive Brokers forex (cash) market.
A few details and some info from Interactive Brokers:
Interactive Brokers Regulation T margin type account Buying Power is 4:1, but I`m not sure it works for forex and futures. Should I set AB Account Margin to 25 ?
Margin Requirement for USD, EUR, JPY, GBP, AUD, CAD, CHF - 2.5%. NZD - 3.33%
They calculate it this way: Margin Requirement % = 1/Leverage Rate. (Leverage Rate for all currencies mentioned above - 40:1, nzd - 30:1).
So, if you buy/sell EURUSD - 20K(reminder!!!min. amount to buy in IDEALPro) they take deposit EUR500 and convert it to your base currency ( e.g. today was GBP418 ), if you buy/sell USDCHF - 25K, deposit is $625(US dollars), converted from USD today was GBP398. They always convert deposit to Base currency!!!
One thing to mention : if you BUY EURGBP - 20K, deposit was 0 (zero, I guess its because I have enough money to cover 20K euros from my base cash otherwise would be deposited, I`m not sure here???), when you SELL EURGBP - 20K, deposit GBP418 converted to base from EUR as usually. Same with GBPUSD pair (17K min.IdealPro) only vise versa, if you BUY it deposit was GBP425, if SELL it - no deposit taken (zero).No idea how to sort all those things out in Amibroker.
Btw, as I now if you set AB symbol info window currency for e.g. if you trade EURUSD ( currency settings should be set to USD ) or e.g USDJPY pair ( currency set to JPY ), but in reality EURUSD - you buy/sell 20K euros and deposit counted in euros and then converted to base currency in my case GBP, or other example buy/sell USDJPY 25K, deposit counted in USD and then converted to GBP. So, its nothing to do in first example with USD, in second with JPY as by settings in AB. Amibroker as I understand takes deposit in USD in first example and later probably converts to base currency, accordingly in second example it takes deposit in JPY and should convert to base. So, it works differntly comparing with Interactive Brokers. If I`m wrong somewhere please correct me.
Any help would be really appreciated.
Thank you in advance.
Looking for someone to help with Amibroker backtester settings to use/simulate Interactive Brokers forex if it`s overall possible to get precise results using Amibroker software. As most of us know that Interactive Brokers forex is actually cash market ( IdealPro ) there is no lots and probably this is the main reason why settings should be different and doesn`t work in normal way. Whole month trying to get AB backtester working. No results, lost completely. Checked Amibroker yahoo group, but unfortunately not much info about AB with IB forex there. Checked all possible docs from AB site ( inc. Amibroker backtester by ChrisB. Jan 2008 ) about forex all info and examples given is about normal forex.
What I wanna do is to trade main fx pairs basket - eurusd, gbpusd, usdjpy, usdcad, usdchf, audusd, nzdusd, eurchf, eurgbp and later maybe to add a few more. My base currency is GBP. To get life easier I`d like to trade in "virtual lots" which is IB IdealPro minimum position size required (e.g. EURxxx pairs - 20K, AUDxxx, USDxxx - 25K, GBPxxx - 17K, NZDxxx - 35K ).
Also there are some questions regarding IB commissions. It`s $2.49/per trade and always are converted to base currency in reality, but fx rates(GBPUSD) changing time after time and in my case probably there is no chance to get right commissions.
Also I doubt that interest can be included into AB backtest as Interactive Broker always buys one currency and sells other as well as P&L after every trade stays in it`s respective currency, so, it means interest counts all the time when position open and when it closed also from your Profit or Loss.
I`d like to add ~0.0001 spread into account as well to get more realistic results, but I think I saw an example somewhere in AB group, so, I`ll sort it out myself later. Now I want to get the main backtester settings (margin deposit, point value, position size and other important settings) correctly working with Interactive Brokers forex (cash) market.
A few details and some info from Interactive Brokers:
Interactive Brokers Regulation T margin type account Buying Power is 4:1, but I`m not sure it works for forex and futures. Should I set AB Account Margin to 25 ?
Margin Requirement for USD, EUR, JPY, GBP, AUD, CAD, CHF - 2.5%. NZD - 3.33%
They calculate it this way: Margin Requirement % = 1/Leverage Rate. (Leverage Rate for all currencies mentioned above - 40:1, nzd - 30:1).
So, if you buy/sell EURUSD - 20K(reminder!!!min. amount to buy in IDEALPro) they take deposit EUR500 and convert it to your base currency ( e.g. today was GBP418 ), if you buy/sell USDCHF - 25K, deposit is $625(US dollars), converted from USD today was GBP398. They always convert deposit to Base currency!!!
One thing to mention : if you BUY EURGBP - 20K, deposit was 0 (zero, I guess its because I have enough money to cover 20K euros from my base cash otherwise would be deposited, I`m not sure here???), when you SELL EURGBP - 20K, deposit GBP418 converted to base from EUR as usually. Same with GBPUSD pair (17K min.IdealPro) only vise versa, if you BUY it deposit was GBP425, if SELL it - no deposit taken (zero).No idea how to sort all those things out in Amibroker.
Btw, as I now if you set AB symbol info window currency for e.g. if you trade EURUSD ( currency settings should be set to USD ) or e.g USDJPY pair ( currency set to JPY ), but in reality EURUSD - you buy/sell 20K euros and deposit counted in euros and then converted to base currency in my case GBP, or other example buy/sell USDJPY 25K, deposit counted in USD and then converted to GBP. So, its nothing to do in first example with USD, in second with JPY as by settings in AB. Amibroker as I understand takes deposit in USD in first example and later probably converts to base currency, accordingly in second example it takes deposit in JPY and should convert to base. So, it works differntly comparing with Interactive Brokers. If I`m wrong somewhere please correct me.
Any help would be really appreciated.
Thank you in advance.