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

[amibroker] Days since DMI crossover


  • Date: Sat, 21 Nov 2009 14:51:01 -0600
  • From: Alan <alan@xxxxxxxxxxxxxx>
  • Subject: [amibroker] Days since DMI crossover

PureBytes Links

Trading Reference Links

The following code will return a 1 when the negative DMI crosses above 
the positive DMI.

mdmi = MDI(13);
pdmi = PDI(13);
dmicrossing = Cross(mdmi,pdmi);

However, what I want to know is how many days have passed since the 
negative DMI crossed above the positive DMI.  I have looked through the 
AFL formulas for a Days Since Crossing function but did not find one. 
Can anyone help me with the code to perform this function?

Thanks,
Alan


------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

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