JS HighJump_Oscillator_Modified
Posted: Mon Mar 04, 2019 6:46 pm
Here is my version of the JS HighJump Oscillator
Under the Parameters Tab
Threshold Double 95 0 10000
Lookback Double 200 0 10000
SN1 Double 3 0 100
SN2 Double 6 0 100
Under the Script Tab here is the code
MA17: MA(C, 17),norender;
MA50: MA(C, 50), norender;
MA200: MA(C, 200),norender;
HJ: (C - MA17)/MA17 + (C - MA50)/MA50 + (C - MA200)/MA200,norender;
MAXHJ: HHV(HJ, LOOKBACK),norender;
MINHJ: LLV(HJ, LOOKBACK),norender;
OSC: IF(HJ > 0, HJ / MAXHJ * 100, HJ / MINHJ * -100),Width1,ColorBlue;
Sig1: MA(Osc,SN1),Width2,ColorBlack;
@SETTEXTVISIBLE(Sig1, false);
Sig2: MA(Osc,SN2),Width2,ColorRed;
@SETTEXTVISIBLE(Sig2, false);
UPPER: THRESHOLD,colorgray,width2;
LOWER: -THRESHOLD,colorgray,width2;
MIDDLE: 0,colorgray,width1;
dist:=Upper-Lower;
hf:=Upper-dist*0.236;
cfh:=Upper-dist*0.382;
Mid:Upper-dist*.5,Crossdot,ColorBlack,norender;
cfl:=Upper-dist*0.618;
lf:=Upper-dist*0.764;
FillRgn(1,Upper,HF),ExtendLR,Brush#30FFA500;
FillRgn(1,CFH,CFL),ExtendLR,Brush#60B0C4DE;
FillRgn(1,Lower,LF),ExtendLR,Brush#30FFA500;
FillRgn(Osc>SiG1,Osc,Sig1),Brush#300000FF;
FillRgn(Osc<Sig1,Osc,Sig1),Brush#30FF0000;
FillRgn(Sig1>Sig2,Sig1,Sig2),Brush#600000FF;
FillRgn(Sig1<Sig2,Sig1,Sig2),Brush#60FF0000;
FillRgn(Osc>Upper,Osc,Upper),Brush#80FF0000;
FillRgn(Osc<Lower,Osc,Lower),Brush#7000FF00;
@SETYMINMAX(-120, 120);
@SETTEXTVISIBLE(UPPER, false);
@SETTEXTVISIBLE(LOWER, false);
@SETTEXTVISIBLE(MIDDLE, false);
I added 2 signal lines & added colored areas between the Osc and the 2 signal lines, Colored the upper & lower zones in a fibonnaci zone. I also colored in an area when the Osc goes above or below the Threshold
Here is the chart
the modified indicator is in the bottom panel
Under the Parameters Tab
Threshold Double 95 0 10000
Lookback Double 200 0 10000
SN1 Double 3 0 100
SN2 Double 6 0 100
Under the Script Tab here is the code
MA17: MA(C, 17),norender;
MA50: MA(C, 50), norender;
MA200: MA(C, 200),norender;
HJ: (C - MA17)/MA17 + (C - MA50)/MA50 + (C - MA200)/MA200,norender;
MAXHJ: HHV(HJ, LOOKBACK),norender;
MINHJ: LLV(HJ, LOOKBACK),norender;
OSC: IF(HJ > 0, HJ / MAXHJ * 100, HJ / MINHJ * -100),Width1,ColorBlue;
Sig1: MA(Osc,SN1),Width2,ColorBlack;
@SETTEXTVISIBLE(Sig1, false);
Sig2: MA(Osc,SN2),Width2,ColorRed;
@SETTEXTVISIBLE(Sig2, false);
UPPER: THRESHOLD,colorgray,width2;
LOWER: -THRESHOLD,colorgray,width2;
MIDDLE: 0,colorgray,width1;
dist:=Upper-Lower;
hf:=Upper-dist*0.236;
cfh:=Upper-dist*0.382;
Mid:Upper-dist*.5,Crossdot,ColorBlack,norender;
cfl:=Upper-dist*0.618;
lf:=Upper-dist*0.764;
FillRgn(1,Upper,HF),ExtendLR,Brush#30FFA500;
FillRgn(1,CFH,CFL),ExtendLR,Brush#60B0C4DE;
FillRgn(1,Lower,LF),ExtendLR,Brush#30FFA500;
FillRgn(Osc>SiG1,Osc,Sig1),Brush#300000FF;
FillRgn(Osc<Sig1,Osc,Sig1),Brush#30FF0000;
FillRgn(Sig1>Sig2,Sig1,Sig2),Brush#600000FF;
FillRgn(Sig1<Sig2,Sig1,Sig2),Brush#60FF0000;
FillRgn(Osc>Upper,Osc,Upper),Brush#80FF0000;
FillRgn(Osc<Lower,Osc,Lower),Brush#7000FF00;
@SETYMINMAX(-120, 120);
@SETTEXTVISIBLE(UPPER, false);
@SETTEXTVISIBLE(LOWER, false);
@SETTEXTVISIBLE(MIDDLE, false);
I added 2 signal lines & added colored areas between the Osc and the 2 signal lines, Colored the upper & lower zones in a fibonnaci zone. I also colored in an area when the Osc goes above or below the Threshold
Here is the chart

the modified indicator is in the bottom panel