Page 1 of 1

HK_Double OC

Posted: Mon Dec 26, 2016 1:45 pm
by henry1224
Here is your belated Xmas Present, Thanks to Jake Bernstein , This is a double OC, Jake uses the 8 ma, Plot this on top of the price in the main window

here is the code
under the parameters tab

N1 Double 4 2 100
N2 Double 8 4 200

M1O:MA(Open,N1),ColorRed;
M1C:MA(Close,N1),ColorGreen;
FillRgn(M1O<M1C,M1C,M1O),Brush#70FFD700;
FillRgn(M1O>M1C,M1O,M1C),Brush#70FF00FF;
M2O:MA(Open,N2),ColorBlue;
M2C:MA(Close,N2),ColorBlack;
FillRgn(M2O<M2C,M2C,M2O),Brush#7000FFFF;
FillRgn(M2O>M2C,M2O,M2C),Brush#700000FF;

Re: HK_Double OC

Posted: Fri Mar 16, 2018 5:57 pm
by hayuride
Hi Henry,
You got a winner with this one...
I done some modify...
I delete M2 and only remain M1..
Here is the code..

M1O:MA(Open,N1),ColorRed;
M1C:MA(Close,N1),ColorGreen;
FillRgn(M1O<M1C,M1C,M1O),Brush#70FFD700;
FillRgn(M1O>M1C,M1O,M1C),Brush#70FF00FF;

When the band is in yellow, Buy.
When in pink, sell...

Was wondering if you can widen the band to make it clearer ... Thanks