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

[amibroker] Re: REQ Please help code fibonacci bands in these lines as given-thanks



PureBytes Links

Trading Reference Links


The fib lines look to me like Donchian Channels with fib lines dividing the upper and lower channel:

_SECTION_BEGIN("DonchianFibs");
pds=Param("DFibLookback",55,1,200,1);
DonchianUpper =HHV(H,pds);
DonchianLower = LLV(L,pds);
DonchianRange = DonchianUpper-DonchianLower;
Donchian236 = 0.236 * DonchianRange + DonchianLower;
Donchian382 = 0.382 * DonchianRange + DonchianLower;
Donchian500 = 0.500 * DonchianRange + DonchianLower;
Donchian618 = 0.618 * DonchianRange + DonchianLower;
Donchian764 = 0.764 * DonchianRange + DonchianLower;

Plot(DonchianUpper,"DU",ParamColor("CUpper",colorBlue),styleLine);
Plot(Donchian236,"D236",ParamColor( "C236", colorYellow),styleLine); 
Plot(Donchian382,"D382",ParamColor( "C382", colorAqua),styleLine); 
Plot(Donchian500,"D500",ParamColor( "C500", colorRed),styleLine); 
Plot(Donchian618,"D618",ParamColor( "C618", colorAqua),styleLine); 
Plot(Donchian764,"D764",ParamColor( "C764", colorYellow),styleLine); 
Plot(DonchianLower,"DL",ParamColor("CLower",colorBlue),styleLine);
_SECTION_END

Regards,

David

--- In amibroker@xxxxxxxxxxxxxxx, "flyboypa30" <snoopy.pa30@xxx> wrote:
>
> RVLV,
> 
> What have you got so far in your coding?  What have you tried, what works, where are you stuck?
> 
> I am no expert, but willing to help.
>



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/