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

RE: [amibroker] Functions and procedures



PureBytes Links

Trading Reference Links

Below is some Metastock coding. Can someone help me convert this to 
Amibroker?

Thanks,

Cordell


*****************Highlights**********************

UP 
EL:=H>Ref(HHV(H,20),-1); 
CL:=L<Ref(LLV(L,10),-1); 
ES:=L<Ref(LLV(L,20),-1); 
CS:=H>Ref(HHV(H,10),-1); 
Signal:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND 
PREV=-1),0,PREV)))); 
Signal=1 

DOWN 
EL:=H>Ref(HHV(H,20),-1); 
CL:=L<Ref(LLV(L,10),-1); 
ES:=L<Ref(LLV(L,20),-1); 
CS:=H>Ref(HHV(H,10),-1); 
Signal:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND 
PREV=-1),0,PREV)))); 
Signal=-1 

NEUTRAL 
EL:=H>Ref(HHV(H,20),-1); 
CL:=L<Ref(LLV(L,10),-1); 
ES:=L<Ref(LLV(L,20),-1); 
CS:=H>Ref(HHV(H,10),-1); 
Signal:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND 
PREV=-1),0,PREV)))); 
Signal=0 

*************Symbols**********************

EL 
EL:=H>Ref(HHV(H,20),-1); 
CL:=L<Ref(LLV(L,10),-1); 
ES:=L<Ref(LLV(L,20),-1); 
CS:=H>Ref(HHV(H,10),-1); 
Signal:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND 
PREV=-1),0,PREV)))); 
Signal=1 AND Ref(Signal,-1)<1 

CL 
EL:=H>Ref(HHV(H,20),-1); 
CL:=L<Ref(LLV(L,10),-1); 
ES:=L<Ref(LLV(L,20),-1); 
CS:=H>Ref(HHV(H,10),-1); 
Signal:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND 
PREV=-1),0,PREV)))); 
Signal=0 AND Ref(Signal,-1)=1 

ES 
EL:=H>Ref(HHV(H,20),-1); 
CL:=L<Ref(LLV(L,10),-1); 
ES:=L<Ref(LLV(L,20),-1); 
CS:=H>Ref(HHV(H,10),-1); 
Signal:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND 
PREV=-1),0,PREV)))); 
Signal=-1 AND Ref(Signal,-1)>-1 

CS 
EL:=H>Ref(HHV(H,20),-1); 
CL:=L<Ref(LLV(L,10),-1); 
ES:=L<Ref(LLV(L,20),-1); 
CS:=H>Ref(HHV(H,10),-1); 
Signal:=If(Cum(1)=1,0,If(EL,1,If(ES,-1,If((CL AND PREV=1) OR (CS AND 
PREV=-1),0,PREV)))); 
Signal=0 AND Ref(Signal,-1)=-1 
 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 
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/