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

[amibroker] metastock conversion



PureBytes Links

Trading Reference Links

gday,
     can anyone with a bit of AB nouse convert this metastock 
formula for trading....



"The Blind Freddie Setup Scan" involves 4 steps: 

1. Creating 2 separate Indicators 
2. Creating 3 separate scans in Explorer, then for each scan, go to 
Edit / Options / Periodicity / Select Daily or Weekly. 
3. Run "Liquidity Scan" first, followed by 
4. Daily OR Weekly Scan based on the previous exploration results. 


Indicators: 

{Swing Line}{displayed on Price chart} 
H1:= HIGH; 
H2:= Ref(H1,-1); 
L1:= LOW; 
L2:= Ref(L1,-1); 
A1:= H1 > H2 AND L1 >= L2; {Rally} 
B1:= H1 <= H2 AND L1 < L2; {Reaction} 
C1:= H1 > H2 AND L1 < L2; {Outside} 
D1:= A1+B1+C1=0; {Inside} 
E1:= 
If(D1 OR Inside(),PREV, 
If(C1 AND PREV>Ref(MP(),-1),HIGH, 
If(C1 AND PREV<Ref(MP(),-1),LOW, 
If(B1,L,If(A1,H,PREV))))); 
F1:=If(MP()<E1, 
HighestSince(1,MP()>E1,H), 
LowestSince(1,MP()<E1,L)); 
SW:= Zig(F1,0.0001,%); 
SW; 

{Swing Volume}{interpret same as OBV / display in separate window} 
a1:= Fml( "Swing Line"); 
a2:= ROC(a1,1,$); 
a3:= Cum(VOLUME*((a2>0)-(a2<0))); 
a3; 



Explorer: 

1. BF Liquidity - Daily {Running this scan first saves a lot of time 
by giving only ~300 stocks for the subsequent scans to analyse.} 

{Filter} 
Sum(H>L,20)=20; 


2. BF Scan - Daily 
3. BF Scan - Weekly 

{colA – Liquidity} 
Sum(H>L,20)=20; 

{colB – Falling Reaction Volume} 
a1:= Fml("Swing Volume"); 
a2:= Ref(a1,-1); 
p2:= ValueWhen(2,a2=HHV(a1,3),a2); 
a1>p2; 

{colC – Swing Setup} 
a1:= Fml( "Swing Line"); 
a2:= Ref(a1,-1); 
p2:= ValueWhen(2,a2=HHV(a1,3),a2); 
a1>=p2 AND a1<a2; 

{colD – MA Trend} 
a1:= Mov(C,7,S); 
a2:= Mov(C,18,S); 
a3:= Mov(C,30,S); 
a4:= ROC(a3,1,$); 
a1>a2 AND a4>0; 

{colE – Reaction Days} 
a1:= Fml("Swing Line"); 
a2:= Ref(a1,-1); 
t1:= BarsSince(a2=LLV(a1,3)); 
p1:= BarsSince(a2=HHV(a1,3)); 
If(t1<p1,t1+1,-p1-1); 

{Filter Tab} 
colA and colB and colC and 
colD and abs(colE)<6; 

-------------------------------------------- 

ASX Candidates: MONDAY MAY 3 

Daily: 

AMP / AAC / ACU / CTX / CML / FUN / HDR / PIF / TEN / UTB 

Weekly: 

AML / ANN / AXA / BSL / CIY / CSL / FEA / GPG / NUF / OST / PRK / 
RDF / SGN / SUN




------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/