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

Re: [amibroker] Cycle indicator



PureBytes Links

Trading Reference Links

miche1a wrote:
>
> Just starting with amibroker , In metastock I use this cycle indicator
> and want to convert it in amibroker language, one in 9 period and one
> in 15 period , here is the exemple of the 15 period
>
> Period:= 15;
> denom1:= If(HHV(H,Period)-LLV(L,Period)>0, HHV(H,Period)-LLV
> (L,Period), 1);
> P1:= Mov(((C-LLV(L,Period))/ denom1)*100,3,E);
> denom2 := If(HHV(P1,Period)-LLV(P1,Period)>0, HHV(P1,Period)-LLV
> (P1,Period), 1);
> Mov(((P1-LLV(P1,Period))/denom2)*100,3,E)
>
> Thank's in advance
>
>  
Try This:
Period = 15;
denom1= IIf(HHV(H,Period)-LLV(L,Period)>0, HHV(H,Period)-LLV(L,Period), 1);
P1 = MA(((C-LLV(L,Period))/ denom1)*100,3);
denom2 = IIf(HHV(P1,Period)-LLV(P1,Period)>0, 
HHV(P1,Period)-LLV(P1,Period), 1);
ResultCycle = MA(((P1-LLV(P1,Period))/denom2)*100,3);


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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
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:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto: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/