Amibroker for Forex

#1
Hi to all,
I have a problem when I run backtest in Amibroker For forex EurUsd.
1) Ask Price : I have downloaded data by Tick Data Downloader... I have imported 1 minute Bar...but my data has only Bid Price... How Can I consider also ask Price?? So When I buy I use askPrice and when I sell I use bidPrice.
2) I want to include the concept of spread in my backtest...1-2 pips of spread per trade.
3)I want to include the concept of slippagein my backtest...I want to add 1-2 pips of slippage for trade
4)Is it Possible loading Tick Data in AmiBroker by Tick Data Downloader??? How Can I do it?

If I want to use Amibroker for Forex I must include concepts of : spread, slippage, ask Price, bid Price...otherwise the rusults are distorted

Thanks to all.
 

jahan

Well-Known Member
#2
Hi to all,
I have a problem when I run backtest in Amibroker For forex EurUsd.
1) Ask Price : I have downloaded data by Tick Data Downloader... I have imported 1 minute Bar...but my data has only Bid Price... How Can I consider also ask Price?? So When I buy I use askPrice and when I sell I use bidPrice.
2) I want to include the concept of spread in my backtest...1-2 pips of spread per trade.
3)I want to include the concept of slippagein my backtest...I want to add 1-2 pips of slippage for trade
4)Is it Possible loading Tick Data in AmiBroker by Tick Data Downloader??? How Can I do it?

If I want to use Amibroker for Forex I must include concepts of : spread, slippage, ask Price, bid Price...otherwise the rusults are distorted

Thanks to all.
Hello,

1).If u able to get realtime quotes in Ami u can do it...
Amibroker>window>realtime quote.
2).yes u can do it but...not perfectly use $per trade option in Setting...u need to give Brokerage+ur slippage cost..normally 2pips+2pips=4pips multiplied by pip point or dollers.

3)same as 2.

4)iam not aware of it...

i know ur little bit upset...iam also in same position 3 years back...do not worry u can include slippage in ur brokerage pips... not exactly but u get fair results...

hope this helps...

Regards,
 
#3
Thank you for the answer....

1) I have managed the slippage in this way :

BuyPrice = BuyPrice + Slippage * tickSize;
SellPrice = SellPrice - Slippage * tickSize;
CoverPrice = CoverPrice + Slippage * tickSize;
ShortPrice = ShortPrice - Slippage * tickSize;

2) I have managed commissions and Spread costs in this way :

SetOption("CommissionMode", 2);
SetOption("CommissionAmount", 0.5 * totalCosts* PipsValue);

The Last doubt I have is ... if I use only the bidPrice for all my signal calculations and for every trade (BuyPrice,shortPrice,sellPrice,coverPrice)..I will obtain correct results...or the results of trading system are distorted....always in order to make trading systems systems which are the most reliable possible when I will trade on real account.

Thank you


Hello,

1).If u able to get realtime quotes in Ami u can do it...
Amibroker>window>realtime quote.
2).yes u can do it but...not perfectly use $per trade option in Setting...u need to give Brokerage+ur slippage cost..normally 2pips+2pips=4pips multiplied by pip point or dollers.

3)same as 2.

4)iam not aware of it...

i know ur little bit upset...iam also in same position 3 years back...do not worry u can include slippage in ur brokerage pips... not exactly but u get fair results...

hope this helps...

Regards,
 

jahan

Well-Known Member
#4
The Last doubt I have is ... if I use only the bidPrice for all my signal calculations and for every trade (BuyPrice,shortPrice,sellPrice,coverPrice)..I will obtain correct results...or the results of trading system are distorted....always in order to make trading systems systems which are the most reliable possible when I will trade on real account.

Thank you
Hello,

That's why i told u add ur slippage in backtester setting,and do backtesting with bidprice there is nothing wrong ur results will be fair.

Regards,
 

jahan

Well-Known Member
#6
You guys have no idea at all. There is no "but".

You can import ask data to Aux fields. Or import Ask data to separate symbol (i.e. EURUSDbid, EURUSDask) and use Foreign or SetForeign.
Hello,

can u pls elaborate little bit on Aux fields...i think with aux feilds are only for live/realtime quotes and i know that we can trade with bid/ask price realtime...and when comes to backtesting how we can implement

can we backtest by importing them as seperate symbols....won't the AFL become little complicated (as u said by using Setforeign/foreign functions).

if we use Setforeign/foreign function we can only do it for single Symbol with respective Bid/Ask symbols...how we can do it for multiple symbols...

i think the data provider needs to provide both Bid and Ask price to be able to import or to see in realtime quotes.

pls through some light.

Regards,
 
Last edited:

trash

Well-Known Member
#7
Your post is completely wrong. You post is once again a result of missing knowledge.

No, Aux fields are not for realtime only.
And yes, you can backtest by using foreign or setforeign.
And no, it will not become complicated.
And yes, it can be done for multiple symbols.
And of course you need actual data but not thin air to work with.
 

jahan

Well-Known Member
#8
Your post is completely wrong. You post is once again a result of missing knowledge.

No, Aux fields are not for realtime only.
And yes, you can backtest by using foreign or setforeign.
And no, it will not become complicated.
And yes, it can be done for multiple symbols.
And of course you need actual data but not thin air to work with.
Hello,

u have all rights to be proud....i know i didn't have knowledge....that is why iam here...

u said... need actual data not from thin air....what do u do least possible thing when ur data provider doesn't supply bid/Ask,and only gives LTP/Bid Price....u go with that and find possible solutions...thats exactly what i suggested him in my first post.

Regards,
 

trash

Well-Known Member
#9
His data provider mentioned in first post does provide bid/ask data. So you totally missed the point (if I may say once again).

Yes, you are here because you have limited knowledge. That also means taking care and avoiding to state your own false facts (made out of thin air).
 

Similar threads