Here is something slapped together:
/*Adaptive Zones Bollinger Bands OSCILLATOR*/
/*Automatically Adjusts the overbought and oversold levels based on past
performance*/
//Bollinger Bands
/*Input */
Lookback=Param("lookback",20,1,500,1);
PerCent=Param("Percent enclosure",95,50,100,1);
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
/*******Variables******************/
/*Value of Osc*/
Value1 = p;
/*Highest AND Lowest Values of Osc during Lookback Period*/
Value2 = HHV(Value1,Lookback);
Value3 = LLV(Value1,Lookback);
/*Range of Osc during Lookback Period*/
Value4 = Value2 - Value3;
/*Define PerCent of Range to determine OB AND OS levels*/
Value5 = Value4 * (PerCent / 100);
/*Calculate OB AND OS levels*/
Value6 = BBandTop( Value3 + Value5, Periods, LastValue(Value5) );
Value7 = BBandBot( Value2 - Value5, Periods, LastValue(Value5) );
Plot(Value6," O/B",color,style);
Plot(Value7," O/S",color,style);
Plot(C,"c",colorBlack,styleCandle);
Title="Std_value ="+WriteVal(Value5,1.2)+"\n"+"Percent_enclosure
="+WriteVal(PerCent,1.2)+"%";
----- Original Message -----
From: googool123123
To: [email protected]
Sent: Sunday, June 13, 2010 11:02 PM
Subject: [amibroker] Re: Self Adaptive Bollinger
Hi
It is posted online and is freely accessible by all, I am not sure if it
would violate any copyright material if someone wrote in AFL and shared it
http://tradersguild.wordpress.com/2008/02/15/self-adaptive-bollinger-bands/
--- In [email protected], Howard B <howardba...@...> wrote:
>
> Hi G --
>
> If it does not violate any copyright or non-disclosure, post the
> TradeStation code and someone will translate it and post the equivalent
> AmiBroker code. If that would be in violation, then this is not the
> appropriate forum.
>
> Thanks,
> Howard
>
>
> On Sun, Jun 13, 2010 at 11:36 AM, googool123123 bfall...@... wrote:
>
> >
> >
> > I have Trade Station code for self adaptive Bollinger Ba nds.
> >
> > I was wondering if any one would be interested in translating it into
> > Amibroker Language
> >
> > Thanks in Advance
> >
> >
> >
>