[amibroker] indicator help please

 

I'm trying to translate this if someone could help please? [source http://qusma.com/2012/10/14/the-predictive-value-of-the-number-of-recent-updown-days-udidsri/]


    --If the day closes up, movement = 1, otherwise movement = -1.
    --Multiply movement by (1 +abs( return))5
    --Sum the movements for the last 20 days.
    --UDIDSRI is the % rank of today's sum, compared to the last 50 days of sums.

So far I have this:

x = ROC(C,1);
a = x*(1+ABS(x))^5;
b = Sum(a,20);

UDIDSRI = ???

Plot(
UDIDSRI ,"",colorBlack);

__._,_.___

Posted by: cam_111000@yahoo.com.au
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? The Yahoo Mail app is fast, beautiful and intuitive. Try it today!

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


.

__,_._,___


EmoticonEmoticon