Page 1 of 1

64 high low Bands

Posted: Sat Apr 30, 2016 3:06 pm
by henry1224
I am trying to plot 2 bands in one indicator

here is my code
LB;=4;
N:=6;
H4:=Ref(High, LB);
L4:=Ref(Low, LB);
64H:MA(H4, N);
64L:MA(L4, N);

but I keep getting errors needing a ;

Thanks in advance

Henry

Re: 64 high low Bands

Posted: Sat Apr 30, 2016 3:52 pm
by Chris White
Try changing the first line from:

Code: Select all

LB;=4;
to

Code: Select all

LB:=4;

Re: 64 high low Bands

Posted: Sat Apr 30, 2016 5:42 pm
by henry1224
here is the code

LB:=4;
N:=6;
H4:=Ref(High,LB);
L4:=Ref(Low,LB);
64H:MA(H4,N);
64L:MA(L4,N);

and I keep getting errors
cs1002 ; expected
cs1513 ) expected

Re: 64 high low Bands

Posted: Sat Apr 30, 2016 5:50 pm
by henry1224
Here is my compiled code

LB:=4;
N:=6;
RH:=Ref(High, LB);
RL:=Ref(Low, LB);
HBand:MA(RH, N);
LBand:MA(RL, N);

Re: 64 high low Bands

Posted: Sun May 15, 2016 7:39 pm
by henry1224
Here is a chart image of 64 HI Lo bands inside the Bollinger bands

Image

Re: 64 high low Bands

Posted: Sat Jun 04, 2016 7:08 pm
by henry1224
here is the revised code for these bands

LB:=4;
N:=6;
RH:=Ref(High, LB);
RL:=Ref(Low, LB);
HBand:MA(RH, N),colorgreen;
LBand:MA(RL, N),colorred;
FILLRGN(1,LBand,HBand),Brush#200000C0;

********************************************

Here are 4 events for this indicator

LB:=4;
N:=6;
RH:=Ref(High, LB);
RL:=Ref(Low, LB);
HBand:=MA(RH, N);
LBand:=MA(RL, N);
Event: CROSS(C,HBand);

********************************

LB:=4;
N:=6;
RH:=Ref(High, LB);
RL:=Ref(Low, LB);
HBand:=MA(RH, N);
LBand:=MA(RL, N);
Event: CROSS(HBand,C);

**********************************

LB:=4;
N:=6;
RH:=Ref(High, LB);
RL:=Ref(Low, LB);
HBand:=MA(RH, N);
LBand:=MA(RL, N);
Event: CROSS(LBand,C);

**************************************

LB:=4;
N:=6;
RH:=Ref(High, LB);
RL:=Ref(Low, LB);
HBand:=MA(RH, N);
LBand:=MA(RL, N);
Event: CROSS(C,LBand);