Hi
Im using AFL to test out a simple strategy and noticed an issue that i cant seem to get my head around after using all the other forums. It is something small and silly from myside !
/* Condition MA VaR */
EMA50 = EMA(C,50);
//Buy Conditions
b_maCond = Cross(O,EMA50) AND Cross(C,EMA50);
//Sell Conditions
s_maCond = Cross(EMA50,O) AND Cross(EMA50,C);
//Execute buy and sell signals
Buy = b_maCond ;
Sell = s_maCond;
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell, Buy);
Filter = Buy OR SELL;
It a simple MA cross which identifies when the:
a. open and close are above EMA50 for a buy, and
b. the open and close are above EMA50 for a sell.
It uses Exrem to make sure signals are not repeated.
The issue i am having is that it is missing an obvious signal, marked in Red circle, as there was a previous sell and price rose above the EMA50.
Any thoughts ?
p.s. Looking further back on the chart some more signals are also missing:
Missing signals for 1,2,3 as marked
Thanks
Im using AFL to test out a simple strategy and noticed an issue that i cant seem to get my head around after using all the other forums. It is something small and silly from myside !
/* Condition MA VaR */
EMA50 = EMA(C,50);
//Buy Conditions
b_maCond = Cross(O,EMA50) AND Cross(C,EMA50);
//Sell Conditions
s_maCond = Cross(EMA50,O) AND Cross(EMA50,C);
//Execute buy and sell signals
Buy = b_maCond ;
Sell = s_maCond;
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell, Buy);
Filter = Buy OR SELL;
It a simple MA cross which identifies when the:
a. open and close are above EMA50 for a buy, and
b. the open and close are above EMA50 for a sell.
It uses Exrem to make sure signals are not repeated.
The issue i am having is that it is missing an obvious signal, marked in Red circle, as there was a previous sell and price rose above the EMA50.
Any thoughts ?
p.s. Looking further back on the chart some more signals are also missing:
Missing signals for 1,2,3 as marked
Thanks