What is syntax for DataSeries DyMoI( Bars bars )?
Author: zentek
Creation Date: 4/8/2009 12:15 AM
profile picture

zentek

#1
I don't see how to use this indicator, ie, what is the appropriate syntax for it. Can someone please put an example line of code using this indicator. Thanks.

Chande's Dynamic Momentum Index: Indicator Documentation
====Syntax====

DataSeries DyMoI( Bars bars )



profile picture

Eugene

#2
The indicator is similar to RSI in interpretation, so an example for RSI should suit. However, as I know noticed the DyMoI code contains a little bug - thanks for the heads-up! For now, you have to enter any integer number like 50 after the Bars parameter:
CODE:
Please log in to see this code.

I'll fix it in a new build of Community.Indicators.
profile picture

zentek

#3
I still don't get how to use this. If I use

CODE:
Please log in to see this code.


I get Community.Indicators DyMoI is a 'type', but is used like a 'variable'.

How do I use this indicator. Thanks
profile picture

zentek

#4
CODE:
Please log in to see this code.


seems to work. What is a good value for "any integer number" as the default. Thanks
profile picture

Eugene

#5
QUOTE:
DataSeries sDMI = DyMoI(bars,30);

This should have worked:
CODE:
Please log in to see this code.

QUOTE:
What is a good value for "any integer number" as the default.

It doesn't matter, it's ignored. This is just an artifact, so you can safely put 50 here, for example.
profile picture

Eugene

#6
Thanks, you may now download the 2009.04.2 update that fixes Chande's Dynamic Momentum Index.