This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

AmiBroker > Backtesting > BuyPrice is not the entry price?

Hi Bailey55,

On the surface your code looks ok. Here is a slice directly from one of my systems -

where:

ShortEMAEnter= 1;
LongEMAEnter = 15;


XAO = Foreign("XAO","CLOSE");
MarketBullishEnter = EMA(XAO,ShortEMAEnter) > EMA(XAO,LongEMAEnter);

Buy = MarketBullishEnter AND.....

Maybe switch off your other buy conditions and just check to ensure the XAO condition is working correctly.

Good luck
 
Thank you for your response Superboot. Sorry for not responding sooner, won't bore you with the details but have been seriously off task for a while.
regards
Bailey55
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more...