PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>Bruiser,
<FONT face=Arial color=#0000ff
size=2>
One of
my favorites....
<FONT face=Arial color=#0000ff
size=2>
Regards,Jayson
//* Twiggs Money Flow
http://www.incrediblecharts.com/technical/twiggs_money_flow.htm
*//
pds=<FONT
color=#0000ff>Param("TMF
periods",17<FONT
size=2>,1,<FONT
size=2>100,1<FONT
color=#282828 size=2>);
TRH=<FONT
color=#0000ff>Max(<FONT
size=2>Ref(<FONT
size=2>C<FONT
size=2>,-1),<FONT
size=2>H<FONT face=Arial
color=#0000ff>);
TRL=<FONT
color=#0000ff>Min(<FONT
size=2>Ref(<FONT
size=2>C<FONT
size=2>,-1),<FONT
size=2>L<FONT face=Arial
color=#0000ff>);
tr=<FONT
color=#0000ff>ATR(<FONT
size=2>1<FONT face=Arial
color=#0000ff>);
ADV=((<FONT
face=Arial color=#0000ff>C<FONT
color=#0000ff>-TRL)-(TRH-<FONT
size=2>C<FONT
size=2>))/(IIf(TR==<FONT
size=2>0,999999<FONT
size=2>,TR))*V<FONT
color=#282828 size=2>;<FONT
color=#008000 size=2>
<FONT face=Arial
color=#0000ff>//ADV=((C-TRL)-(TRH-C))/tr*V;<FONT
color=#282828 size=2>
sadv=<FONT face=Arial
color=#0000ff size=2>Wilders<FONT face=Arial
color=#0000ff>(Adv,pds);
svol=<FONT
color=#0000ff>Wilders(<FONT
size=2>V<FONT face=Arial
color=#0000ff>,pds);
TMF=sadv/svol; <FONT
color=#0000ff size=2>
_N<FONT color=#282828
size=2>( mstr = "("<FONT color=#282828
size=2>+WriteVal<FONT color=#282828
size=2>(pds,1.0<FONT color=#282828
size=2>) + ")"<FONT
color=#282828 size=2> );<FONT color=#0000ff
size=2>
Plot<FONT color=#282828
size=2>(tmf,"Twiggs Money Flow"<FONT
color=#282828 size=2>+mstr,IIf<FONT
color=#282828 size=2>(tmf>0<FONT
color=#282828 size=2>,colorGreen<FONT
face=Arial>,<FONT
size=2>colorRed<FONT color=#282828
size=2>),2<FONT color=#282828
size=2>);
GraphXSpace<FONT
face=Arial>=<FONT
size=2>5<FONT face=Arial
color=#0000ff>;
<FONT face=Arial
color=#0000ff>
<SPAN
class=290212005-16042004> -----Original
Message-----From: bruiserbbq
[mailto:bruiserbbq@xxxxxxxxxxxx]Sent: Thursday, April 15, 2004
11:42 PMTo: amibroker@xxxxxxxxxxxxxxxSubject:
[amibroker] Indicator problem.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.Send BUG REPORTS to
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
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 the Yahoo! Terms of Service.
|