Hello Members,
Need help in the following AFL, which, as a newbie, was unable to get any output:
Logic:
Buy : Current candle is above the previous 2 candles and ALL of them are above the 5EMA and 10MA; Crossover above EMA and MA has happened 2 candles ago
Current Candle > Ref(C,-1);
Ref (C,-1) < Ref(C,-2);
Ref(C,-2) AND Ref(C,-1) > EMA(C,5) and MA(C,10)
Sell : Vice-versa
Current Candle < Ref(c,-1);
Ref(C,-2) > Ref(C,-1);
Ref(C,-2) AND Ref(C,-1) < EMA(C,5) and MA(C,10)
Output in Explore Window with Time of Buy/Sell generated, Scrip name, Signal (B/S), Target (as BBandTop for Buy and BBandBot for Sell);
Also pls correct me in the AA window, as follows :
Apply to : All Symbols
Range : n Last Quotations where n=1;
Would this be RIGHT??
Thanks in Advance.
warm regards...rbhapkar
Need help in the following AFL, which, as a newbie, was unable to get any output:
Logic:
Buy : Current candle is above the previous 2 candles and ALL of them are above the 5EMA and 10MA; Crossover above EMA and MA has happened 2 candles ago
Current Candle > Ref(C,-1);
Ref (C,-1) < Ref(C,-2);
Ref(C,-2) AND Ref(C,-1) > EMA(C,5) and MA(C,10)
Sell : Vice-versa
Current Candle < Ref(c,-1);
Ref(C,-2) > Ref(C,-1);
Ref(C,-2) AND Ref(C,-1) < EMA(C,5) and MA(C,10)
Output in Explore Window with Time of Buy/Sell generated, Scrip name, Signal (B/S), Target (as BBandTop for Buy and BBandBot for Sell);
Also pls correct me in the AA window, as follows :
Apply to : All Symbols
Range : n Last Quotations where n=1;
Would this be RIGHT??
Thanks in Advance.
warm regards...rbhapkar