Australian (ASX) Stock Market Forum

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 :)
 
Top