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

RE: [amibroker] Accurate Accutract - for Salil



PureBytes Links

Trading Reference Links

excuse me jumping in here, since I don't know anything much about accutrack.

but re HHV for the whole series, can't you just make Periods huge, like
999999999? that should go back way past when you have data.

but it only looks back, never forward, right? is that what you want? I'm
wondering what it means to normalize a value re the entire range of values
seen up to that date, but I'm not sure I see what that'd mean. say the day
was a historic high, that'd be 100%. next day is even higher, making that
new day 100%, but changing the previous day's value? doesn't seem right, but
maybe I'm confused.

dave


> Salil:  I have finally figured out (almost) the correct and exact value
> for Accutrack (shape as well as value).
>
> The key is to normalize the Acc values to 100 and -100.  Then the values
> match the values displayed in FastTrack.
>
> Here is the revised AT code.  See if it works for you.
>
> This example happens to be for VIX vs NDX.  A problem I have --- HELP
> ANYONE --- is how to find the maximum (of HHV) value for all quotations.
> Ditto for minimum (LLV).   You will notice in the code below that I used
> a large number ~ 3400 bars ~ to look back but this might be insufficient
> for some other data series.
>
> **** How do you tell AFL to find the HHV or LLV over the entire series
> of quotations, when you do not know how many bars are contained in the
> entire series? *****
>
> Apart from this, I have compared the results of this plot to the same
> plot in FT, and the values are identical (at least for recent values).
>
> Comments?  Any help??
>
> VIX=Foreign("VIX-X","C");
> Shrt=6;
> Lng=24;
> Fn1=Foreign("NDX-X","C");
> CHR=(VIX-Ref(VIX,-1))/Ref(VIX,-1);
> CHG=(Fn1-Ref(Fn1,-1))/Ref(Fn1,-1);
> CH1R=EMA(CHR,lng);
> CH1G=EMA(CHG,lng);
> Diff=CH1G-CH1R;
> Acc=100*EMA(Diff,Shrt);
> NAcc=IIf(Acc>0,100*Acc/HHV(Acc,3400),-100*Acc/LLV(Acc,3400));
> Plot(NAcc,"6/24 ACC",5,1);
>
>
> Ken


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/