PureBytes Links
Trading Reference Links
|
FYI -
there is a version of CMO in a dll that Stephane wrote. Its in the Yahoo lib (I
think).
<FONT face=Arial color=#0000ff
size=2>
<FONT face=Arial color=#0000ff
size=2>
<FONT face=Arial color=#0000ff
size=2>d
<FONT
face=Tahoma size=2>-----Original Message-----From: Jayson
[mailto:jcasavant@xxxxxxxxxxx] Sent: Tuesday, January 06, 2004
10:48 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE:
[amibroker] Conversion to Amibroker
<FONT face=Arial color=#0000ff
size=2>Carey,
I
guess what you are really asking is..."Is there a CMO indicator in AFL?". It
is not built in but I coded it some time ago and it and many other indicators
can be found in the library at the AB site.... Perhaps what you are really
asking is " Does AB have Chandes Dynamic Momentum Index". The same answer is
true <g>. Make adjustments to your favorite
settings....
<FONT face=Arial color=#0000ff
size=2>
<FONT
color=#282828 size=2>
<FONT face=Arial
color=#0000ff>//Dynamic Momentum Index Tushar Chande Translated to AFL by
Jayson Casavant<FONT
color=#008000 size=2>
//Cmo5 formula<FONT
face=Arial color=#282828 size=2>
pds1=<FONT
face=Arial size=2>Param(<FONT face=Arial
size=2>"PDS1",<FONT face=Arial
size=2>5,<FONT face=Arial
size=2>1,<FONT face=Arial
size=2>50,<FONT face=Arial
size=2>1<FONT
color=#0000ff>);
CMO5_1=<FONT
face=Arial>Sum(
IIf( <FONT
size=2>C<FONT
size=2> > Ref( <FONT
size=2>C<FONT
size=2>, -1 ) , ( <FONT
size=2>C<FONT
size=2> - Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) ) ,<FONT
size=2>0 ) ,<FONT
size=2>pds1<FONT face=Arial
color=#0000ff> ) ;
CMO5_2=<FONT
face=Arial>Sum(
IIf( <FONT
size=2>C<FONT
size=2> < Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) , ( <FONT
size=2>Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) - <FONT
size=2>C<FONT
size=2> ) ,0 ) ,<FONT
size=2>pds1<FONT face=Arial
color=#0000ff> );
CMO5=<FONT
color=#0000ff>DEMA(<FONT
size=2>100 * Nz((
CMO5_1 -CMO5_2) /( CMO5_1+CMO5_2)),<FONT
size=2>3<FONT face=Arial
color=#0000ff>);
<FONT face=Arial
color=#0000ff>
//Cmo10 formula<FONT
face=Arial color=#282828 size=2>
pds2=<FONT
face=Arial size=2>Param(<FONT face=Arial
size=2>"PDS2",<FONT face=Arial
size=2>10,<FONT face=Arial
size=2>1,<FONT face=Arial
size=2>50,<FONT face=Arial
size=2>1<FONT
color=#0000ff>);
CMO10_1=<FONT
face=Arial>Sum(
IIf( <FONT
size=2>C<FONT
size=2> > Ref( <FONT
size=2>C<FONT
size=2>, -1 ) , ( <FONT
size=2>C<FONT
size=2> - Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) ) ,<FONT
size=2>0 ) ,<FONT
size=2>pds2<FONT face=Arial
color=#0000ff> ) ;
CMO10_2=<FONT
face=Arial>Sum(
IIf( <FONT
size=2>C<FONT
size=2> < Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) , ( <FONT
size=2>Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) - <FONT
size=2>C<FONT
size=2> ) ,0 ) ,<FONT
size=2>pds2<FONT face=Arial
color=#0000ff> );
CMO10=<FONT
color=#0000ff>DEMA(<FONT
size=2>100 * Nz((
CMO10_1 -CMO10_2) /( CMO10_1+CMO10_2)),<FONT
size=2>3<FONT face=Arial
color=#0000ff>);
//Cmo20 formula
<FONT
color=#0000ff>pds3=<FONT face=Arial
size=2>Param(<FONT face=Arial
size=2>"PDS3",<FONT face=Arial
size=2>20,<FONT face=Arial
size=2>1,<FONT face=Arial
size=2>50,<FONT face=Arial
size=2>1<FONT
color=#0000ff>);
CMO20_1=<FONT
face=Arial>Sum(
IIf( <FONT
size=2>C<FONT
size=2> > Ref( <FONT
size=2>C<FONT
size=2>, -1 ) , ( <FONT
size=2>C<FONT
size=2> - Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) ) ,<FONT
size=2>0 ) ,<FONT
size=2>pds3<FONT face=Arial
color=#0000ff> ) ;
CMO20_2=<FONT
face=Arial>Sum(
IIf( <FONT
size=2>C<FONT
size=2> < Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) , ( <FONT
size=2>Ref( <FONT
size=2>C<FONT
size=2> ,-1 ) - <FONT
size=2>C<FONT
size=2> ) ,0 ) ,<FONT
size=2>pds3<FONT face=Arial
color=#0000ff> );
CMO20=<FONT
color=#0000ff>DEMA(<FONT
size=2>100 * Nz((
CMO20_1 -CMO20_2) /( CMO20_1+CMO20_2)),<FONT
size=2>3<FONT face=Arial
color=#0000ff>);
// dmi formula<FONT
color=#282828 size=2>
dmi=((<FONT
color=#0000ff>StDev(<FONT
size=2>C<FONT
size=2>,pds1)* CMO5)+(<FONT
size=2>StDev(<FONT
size=2>C<FONT
size=2>,pds2)* CMO10)+(<FONT
size=2>StDev(<FONT
size=2>C<FONT
size=2>,pds3<FONT color=#282828
size=2>)*
CMO20))/(<FONT
face=Arial>StDev<FONT
size=2>(C<FONT
face=Arial>,<FONT
size=2>pds1)+StDev<FONT
size=2>(C<FONT
face=Arial>,<FONT
size=2>pds2)+StDev<FONT
size=2>(C<FONT
face=Arial>,<FONT
size=2>pds3<FONT face=Arial
color=#0000ff>));
smooth<FONT
size=2>=Param(<FONT
size=2>"Smoothing",3<FONT
size=2>,1,<FONT
size=2>10,1<FONT
color=#282828 size=2>);<FONT
face=Arial color=#282828 size=2>
smooth1<FONT
size=2>=Param(<FONT
size=2>"Trigger Line",5<FONT
size=2>,1,<FONT
size=2>10,1<FONT
color=#282828 size=2>);<FONT
color=#0000ff size=2>
Plot<FONT color=#282828
size=2>(EMA<FONT color=#282828
size=2>(dmi,smooth<FONT color=#282828
size=2>),"Dynamic Momentum
Index",<FONT
color=#000000>colorWhite<FONT
color=#282828 size=2>,1<FONT
color=#282828 size=2>);<FONT
color=#0000ff size=2>
Plot<FONT color=#282828
size=2>(MA<FONT color=#282828
size=2>(dmi,smooth<FONT color=#282828
size=2>1),"trigger"<FONT
color=#282828 size=2>,<FONT
color=#000000>colorYellow<FONT
color=#282828 size=2>,1<FONT
color=#282828 size=2>);
Buy<FONT
color=#0000ff>=Cross<FONT
size=2>(EMA(dmi,<FONT
size=2>smooth),MA<FONT
size=2>(dmi,smooth<FONT color=#282828
size=2>1));
Sell<FONT
color=#0000ff>=Cross<FONT
size=2>(MA(dmi,<FONT
size=2>smooth1),EMA<FONT
size=2>(dmi,smooth<FONT color=#282828
size=2>));<FONT
color=#0000ff size=2>
PlotShapes<FONT
color=#282828 size=2>(IIf<FONT
color=#282828 size=2>(<FONT
color=#000000>Buy<FONT color=#282828
size=2>,<FONT
color=#000000>shapeUpArrow<FONT
color=#282828 size=2>,<FONT
color=#000000>shapeNone<FONT
color=#282828 size=2>) ,<FONT
color=#000000>colorBrightGreen<FONT color=#282828
size=2>);
PlotShapes<FONT
color=#282828 size=2>(IIf<FONT
color=#282828 size=2>(<FONT
color=#000000>Sell<FONT
color=#282828 size=2>,<FONT
color=#000000>shapeDownArrow<FONT
color=#282828 size=2>,<FONT
color=#000000>shapeNone<FONT
color=#282828 size=2>),<FONT
color=#000000>colorRed<FONT color=#282828
size=2>);
PlotGrid<FONT
color=#282828 size=2>(70<FONT
color=#282828 size=2>,<FONT
color=#000000>colorRed<FONT color=#282828
size=2>);
PlotGrid<FONT
color=#282828 size=2>(30<FONT
color=#282828 size=2>,<FONT
color=#000000>colorBrightGreen<FONT color=#282828
size=2>);<FONT face=Arial
color=#0000ff size=2>
<FONT
color=#282828 size=2>
<FONT face=Arial color=#0000ff
size=2>
<FONT
face=Arial color=#0000ff>
<FONT color=#282828
size=2>
<FONT face=Arial
color=#0000ff>
<FONT face=Arial color=#0000ff
size=2>
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: cdickerm
[mailto:cdickerm@xxxxxxxxx]Sent: Tuesday, January 06, 2004 12:59
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Conversion to AmibrokerIs there a straightforward
conversion of this to Amibroker:
(CMO(C,3)+CMO(C,5)+CMO(C,8))/3 If so, would someone please
help. Thanks a
lot,CareySend 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
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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.
|