64 high low Bands

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

64 high low Bands

Post 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
Chris White
Posts: 201
Joined: Mon Nov 29, 2010 9:21 pm

Re: 64 high low Bands

Post by Chris White »

Try changing the first line from:

Code: Select all

LB;=4;
to

Code: Select all

LB:=4;
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: 64 high low Bands

Post 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
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: 64 high low Bands

Post 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);
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: 64 high low Bands

Post by henry1224 »

Here is a chart image of 64 HI Lo bands inside the Bollinger bands

Image
Last edited by henry1224 on Mon Dec 03, 2018 8:48 pm, edited 1 time in total.
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

Re: 64 high low Bands

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