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

[amibroker] Re: zig zag question 2



PureBytes Links

Trading Reference Links


This is a question, many of us will not be able to answer, b/c we
don't work for Amibroker.

You might want to try emailing: support[AT]amibroker.com

--- In amibroker@xxxxxxxxxxxxxxx, Stockjunkie@xxxx wrote:
> Thanks but unfortunately that still isnt what i am looking for...    
> 
> Please let me try again...
> 
> I am looking for the code for the zig and zag functions...
> Here is an example of the code for the stochastic function:
> 
> I would define the inputs and the vaiables and the user of this
> indicator would see: Stoc(5, 12, 3);
> 
> Below I will call the body of the Stochastic function:
> ------------------------------------------------------------------------
>    Inputs: 
>    KPeriods(NumericSimple), 
>    KSlow(NumericSimple);
> Variables: 
>    LoLo(0), 
>    HiHi(0), 
>    HLDIff(0);
> LoLo = Lowest(Low, KPeriods);
> HiHi = Highest(High, KPeriods);
> HLDIff = HiHi - LoLo;
> 
> If HLDIff > 0 Then Begin
>       If KSlow <= 1 Then
>               StochCustom = (Close - LoLo) / HLDIff * 100
>       Else
>               StochCustom = Average(Close-LoLo,KSlow) /
> Average(HLDIff, KSlow)*100;
> End;
> -----------------------------------------------------------------------
> End of Stochastic function
> >





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

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