Does anybody know how to filter/scan and get list of scrips as alerts for a scenario (by default I can set an alert condition for a scrip but how about multiple scrips scanning…??):
(Consider) If today @ 12:30PM total traded intraday VOL (10 million) is > Yest total traded EOD VOL (9.9 million)… then I need an ALERT showing all the scrips which satisfied the condition. Also the condition is that today intraday live trading VOLUME > yest EOD VOLUME.
Hi Praba,
Below is the Code...
When U apply Filter at anytime,It'll filter only those stocks whose Todays Vol > last Day Vol ...and Show U the Volume Difference..
If U want to apply any strategy on this let me Know..
SL1 = ValueWhen(DateNum()!= Ref(DateNum(),-1) ,BarIndex()); SLNo = IIf(IsEmpty(SL1),BarIndex()+1,BarIndex()-SL1+1); PVol = LastValue(TimeFrameGetPrice("V",inDaily,-1),1);//It Returns Number TVol = Sum(V,SLNO);//It'll Return array..Change Bar to Bar VolChk = IIf(TVol > PVol AND DateNum()==LastValue(DateNum(),1),1,0); Filter= VolChk==1 AND Ref(VolChk,-1)==0; AddColumn(PVol,"Last Day Volume",1.0); AddColumn(TVol,"Current Tot Vol",1.0); AddColumn(Tvol-Pvol,"Vol Diff",1.0);
In AFL or Tradescript?
This is AFL right?
Yaa…This is AFL
hello… I would like to use this strategy. My condition is buy when: volume should be 1.25 times the 10 days average volume. Price should be trading above the previous day high and primary trend of the stock should be up.
Similarly, Sell when: volume should be 1.25 times the 10 days average volume. Price should be trading below the previous day low and primary trend of the stock should be down.
Kindly can you help in coding this?.
Hi,
If u want code in AFL…then I 'll code it & post