/*  I put an absolute on y to remove the huge spikes */

T = Param("Period",200,2,1000,1);

htf = HHV(H,T);

ltf = LLV(L,T);

x = (htf - Close)/htf;

y = abs(ltf - Close)/ltf;

momentum = y/ (y + x);

Plot(momentum,"Momentum", colorRed, styleLine | styleThick);

 
-------------- Original message --------------
From: "xxxringop" <[EMAIL PROTECTED]>

I need help coding the following formula:

htf = The high over the past 200 trading days

ltf = The low over the past 200 trading days

x = (htf - close)/htf
y = (ltf - close)/ltf

momentum = y/ (y + x)

I would like to be able to plot it on a graph and set up as an
exploration.

Thanks

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to