Skip to main content

GAINERS/LOSERS SCAN for Amibroker (AFL)

intradaysure over 15 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 3)
  • Tags:
    gainers, losers, amibroker, exploration

GAINERS / LOSERS SCAN

To find the scripts which have gained or lost over last closing, with script value above 100 and volume above 100000

Indicator / Formula

Copy & Paste Friendly
//////////////////////////////////////////////////////////
_SECTION_BEGIN("IntradaySuRe");
C1=Ref(C,-1);
CHANGE=100*(C-C1)/C1;//Change Percentage
q = Param("Price",50,5,10000,5,100);
COND=C>=q AND V>100000;//Price>100 and one day volume >100,000
n = Param("%change",10,1,30,1,5);
Buy=COND AND CHANGE>=n;
Sell=COND AND CHANGE<=-n;
Filter=Buy OR Sell;
AddColumn(IIf(Buy,CHANGE,IIf(Sell,CHANGE,0)) ,"CHANGE%",2.1,colorBlack,IIf(Buy,colorGreen,IIf(Sell,colorRed,colorBlack)));
AddColumn(IIf(Buy,C,IIf(Sell,C,0)) ,"C",2.1,colorBlack,IIf(Buy,colorGreen,IIf(Sell,colorRed,colorBlack)));
AddColumn(IIf(Buy,V,IIf(Sell,V,0)) ,"V",2.1,colorBlack,IIf(Buy,colorGreen,IIf(Sell,colorRed,colorBlack)));
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.