For me the only way to get this 1 : 1 working, is translating the spreadsheet. But as far as I can see that's his first version. And I tried the second one but failed because of what I am getting with that weird multiplier (1+ABS(x))^5 …
Kind regards, Ton.
----- Original Message -----Sent: Friday, April 01, 2016 5:07 PMSubject: Re: [amibroker] help with indicator please
"Compare" to arrive at a percent (%) to me means division with bullet 3 in numerator and bullet 4 in denominator. Problem is when I plot the numerator(b) it goes negative. When I look at the chart (see link) it looks like the authors indicator moves between 0 and 1. Something just doesn't look right.
Regards,
Alan
On 4/1/2016 5:40 AM, cam_111000@yahoo.com.au [amibroker] wrote:Hi I'm trying to translate the following and would appreciate help. 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.
I think I just need the last bullet point sorted. Not totally sure.
x = ROC(C,1);
m = IIf(x>0,1,-1);
a = m*(1+ABS(x))^5;
b = Sum(a,20);
UDIDSRI = ???
Plot(UDIDSRI ,"",colorBlack);
__._,_.___
Posted by: "Ton Sieverding" <ton.sieverding@scarlet.be>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
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/
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