Elliott Wave Oscillator Breaking Band
Would anyone be kind enough to convert the code below into Amibroker code
Hoping that you can oblige
Thank you in advance
Derek
……………………. ……………….
// EW Oscillator Breaking Bands
// Author: Unknown
// http://finance.groups.yahoo.com/group/amibroker/message/105938
// version: 1.0
// Author: aaa
// version: 1.1
// Date: 20091226
// added: a few tweaks
Inputs:
K( 1 ),
K2( 0.0555 ),
Len( 5 );
Vars:
Price1 ( 0 ),
UpperBand( 0),
LowerBand( 0),
AvgP( 0);
Price1 =( Average((H+L)/2,5) - Average((H+L)/2,35)) ;
If Price1 > 0 then
begin
upperband = price1;
If barnumber >= 2 then
UpperBand = (upperband[1] + k2*( K * Price1 - upperband[1]) );
end;
If Price1 begin
LowerBand = Price1;
If barnumber>=2 then
LowerBand =(lowerband[1] + K2*( K*Price1 - lowerband[1]));
end;
AvgP = XAverage(Price1,Len);
Plot1( Price1, "Osc535" );
Plot2( AvgP, "AvgP" );
Plot3( UpperBand, "upper" );
Plot4( LowerBand, "lower" );
Plot5( 0 , "ZeroLine" );
if AvgP > 0 then
setplotcolor ( 2, rgb( 183 , 179 , 142 ) );
if AvgP setplotcolor ( 2, rgb( 110 , 136 , 177 ) );
if Price1 > 0 then
setplotcolor ( 1, yellow );
if Price1 setplotcolor ( 1, blue );
�
Source: http://www.traderslaboratory.com/forums/trading-indicators/20327-elliott-wave-oscillator-breaking-band.html
Anyone can join.
Anyone can contribute.
Anyone can become informed about their world.
"United We Stand" Click Here To Create Your Personal Citizen Journalist Account Today, Be Sure To Invite Your Friends.
Please Help Support BeforeitsNews by trying our Natural Health Products below!
Order by Phone at 888-809-8385 or online at https://mitocopper.com M - F 9am to 5pm EST
Order by Phone at 866-388-7003 or online at https://www.herbanomic.com M - F 9am to 5pm EST
Order by Phone at 866-388-7003 or online at https://www.herbanomics.com M - F 9am to 5pm EST
Humic & Fulvic Trace Minerals Complex - Nature's most important supplement! Vivid Dreams again!
HNEX HydroNano EXtracellular Water - Improve immune system health and reduce inflammation.
Ultimate Clinical Potency Curcumin - Natural pain relief, reduce inflammation and so much more.
MitoCopper - Bioavailable Copper destroys pathogens and gives you more energy. (See Blood Video)
Oxy Powder - Natural Colon Cleanser! Cleans out toxic buildup with oxygen!
Nascent Iodine - Promotes detoxification, mental focus and thyroid health.
Smart Meter Cover - Reduces Smart Meter radiation by 96%! (See Video).