Hi All
I am learning to code in Amibroker and cant figure out why I get this error during backtesting
I want to use
IIf(Foreign("XAO","C") > EMA(Foreign("XAO","C"),75), Sell = C < EMA(C,50), Sell = C < EMA(C,30));
but all sell signals seem to be using the 30 day MA even when XAO is above 75 day MA.
Any suggestions?
thanks.
I am learning to code in Amibroker and cant figure out why I get this error during backtesting
I want to use
IIf(Foreign("XAO","C") > EMA(Foreign("XAO","C"),75), Sell = C < EMA(C,50), Sell = C < EMA(C,30));
but all sell signals seem to be using the 30 day MA even when XAO is above 75 day MA.
Any suggestions?
thanks.