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

[amibroker] Re: Fraud Email



PureBytes Links

Trading Reference Links

Hi all, I'm in need of your help again. I'm trying to convert my 
Metastock indicators over to AB....but being a complete dunce about 
code...I'm finding it difficult...so can you please fill in the dots 
for me?.

Metastock code for Twiggs Money Flow:

periods:=Input("TMF periods",1,100,21);
TRH:=Max(Ref(C,-1),H);
TRL:=Min(Ref(C,-1),L);
TR:=TRH-TRL;
ADV:=((C-TRL)-(TRH-C))/If(TR=0,999999,TR)*V;
WV:=V+(Ref(V,-1)*0);
If(Wilders(WV,periods)=0,0,Wilders(ADV,periods)/Wilders(WV,periods))

My effort so far:

periods = Param("TMF periods",1,100,21);
TRH =Max(Ref(C,-1),H);
TRL =Min(Ref(C,-1),L);
TR =TRH-TRL;
ADV =((C-TRL)-(TRH-C))/IIf(TR=0,999999,TR)*V;
WV =V+(Ref(V,-1)*0);
IIf(Wilders(WV,periods) = 0,0,Wilders(ADV,periods)/Wilders
(WV,periods))

Metastock code for My KST:

(Mov(ROC(C,10,%),10,E)*1)+(Mov(ROC(C,15,%),10,E)*2)+(Mov(ROC
(C,20,%),10,E)*3)+
(Mov(ROC(C,30,%),15,E)*4);
Mov((Mov(ROC(C,10,%),10,E)*1)+(Mov(ROC(C,15,%),10,E)*2)+(Mov(ROC
(C,20,%),10,E)*
3)+(Mov(ROC(C,30,%),15,E)*4),21,E);
0;

My effort so far:

/*

** My Short term KST 

*/

Plot(EMA(ROC(C,10,%)"ROC",10,)*1)+(EMA(ROC(C,15,%),10,)*2)+(EMA(ROC
(C,20,%),10,)*3)+(EMA(ROC(C,30,%),15,)*4), colorBlue, styleLine);


Plot(EMA((EMA(ROC(C,10,%),10,)*1)+(EMA(ROC(C,15,%),10,)*2)+(EMA(ROC
(C,20,%),10,)*
3)+(EMA(ROC(C,30,%),15,)*4),21), colorRed, styleDots);


Hope this makes sense.

Thanks in advance for your help.

Cheers Bruiserbbq.








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