HK_Double OC

This is the place to discuss EdgeRater Chart Script

Moderator: Chris White

Post Reply
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

HK_Double OC

Post 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;
hayuride
Posts: 4
Joined: Fri Mar 11, 2016 5:25 pm

Re: HK_Double OC

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