PureBytes Links
Trading Reference Links
|
I have the following formula which I wrote for MetaStock that
functions OK. I'm new to AmiBroker and I would like to reproduce
this is AFL. I seem to struggle with mistakes. Could anyone give me
the AFL equivalent code?
mawave:=If(Mov(C,5,E)>Mov(C,17,S),+1,-1);
diwave:=If(PDI(14)>MDI(14),+1,-1);
MACDwave:=If(Mov(C,12,E)-Mov(C,26,E)>Mov(Mov(C,12,E)-Mov(C,26,E),
9,E),+1,-1);
SRSIwave:=If(Fml("StochRSI14")>=50,+1,-1);
Buy:=(mawave+diwave+SRSIwave+MACDwave)=+4 AND Mov(V,50,S)>=1000
AND (C>=10);
Sell:=:=(mawave+diwave+SRSIwave+MACDwave)=-4;
Buy AND BarsSince(Ref(Buy,-1))>BarsSince(Ref(Sell,-1))
Many thanks,
bflori@xxxxxxx
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|