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

Re: [amibroker] Re: zig zag question 2



PureBytes Links

Trading Reference Links

Yes but I thought the people who work for AB was watching this list
also?



On Fri, 12 Nov 2004 05:48:56 +0000, you wrote:

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



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/