Hello,
I have a simple MA afl. Only one line code. Here it is :
Sell=Cross(Ref(MA(C,20),-1),Ref(C,-1)) AND Ref(C,-2)>(Ref(MA(C,20),-2));
I have written this afl assuming that I will be having the signals after completion of current bar ( Whatever time frame chosen in intraday for eg. hourly.)
So when I scan the list, it gives me the scrips which have crossed the MA(20) in previous bar, from upside and previous to previous bar's close must be greater than the previous to previous MA(20).
Now the issue is that, whenever I scan, the signal gives me the current market price as signal price. Where as It has to be close of previous bar.
Please help
Regards
Avinash
I have a simple MA afl. Only one line code. Here it is :
Sell=Cross(Ref(MA(C,20),-1),Ref(C,-1)) AND Ref(C,-2)>(Ref(MA(C,20),-2));
I have written this afl assuming that I will be having the signals after completion of current bar ( Whatever time frame chosen in intraday for eg. hourly.)
So when I scan the list, it gives me the scrips which have crossed the MA(20) in previous bar, from upside and previous to previous bar's close must be greater than the previous to previous MA(20).
Now the issue is that, whenever I scan, the signal gives me the current market price as signal price. Where as It has to be close of previous bar.
Please help
Regards
Avinash
Filter = Sell;
And then add a line to add column for price you want.