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
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