[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] 10/30 EMA cross short seller scan help



PureBytes Links

Trading Reference Links


Hi there,
 
How about signing your name next time?  Just make one up if you don't want to use your real one, but I've got no idea who to address this to.
 
The code below will give you C > 30 and MA(V,50) > 1,000,000
 
PLUS
via the Range param, you can specify how close in % terms you want it to the 52 week high.
 
Run as exploration with Range = nlastday = 1, and you're set.
 
Hope this helps,
Gary
 
CODE BELOW:
 

RANGE = Param("% Range from 52-wk High",5, 0,100,1);
EMACross = Cross( EMA(C,30), EMA(C,10) );
Price = C > 30;
AvgVol = MA(V,50) >= 1000000;
TimeFrameSet(inWeekly);
FTWH = HHV(H,52);
TimeFrameRestore();
INRANGE = ( C + FTWH * (RANGE/100) ) > FTWH;
PERDIFF = ( (FTWH - C) / FTWH ) * 100;
Short = EMACross AND Price AND AvgVol AND INRANGE; //IF YOU WANT TO RUN AS SCAN
Filter = PRICE AND AvgVOL AND EMACROSS AND INRANGE; //USED IN EXPLORATION
AddColumn(C,"C",5.2);
AddColumn(MA(V,50),"50-Bar Avg Volume",5.0);
AddColumn(FTWH,"52-Week High",5.2);
AddColumn(PERDIFF,"% Below 52-week High",5.1);
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.