Oracle bands Vortex
Posted: Fri Jul 29, 2016 8:54 am
trSum3:= sum(ATR(1), 3);
VtxP3:= if(trSum3 == 0 ,0 , sum(Abs(high - Ref(low,1)),3))/ trSum3,ColorGreen;
VtxM3:= if(trSum3 == 0 ,0 , sum(Abs(low - Ref(high,1)),3))/ trSum3,ColorRed;
OST3:=VtxP3 - VtxM3,Colorstick;
trSum5:= sum(ATR(1), 5);
VtxP5:= if(trSum5 == 0 ,0 , sum(Abs(high - Ref(low,1)),5))/ trSum5,ColorGreen;
VtxM5:= if(trSum5 == 0 ,0 , sum(Abs(low - Ref(high,1)),5))/ trSum5,ColorRed;
OST5:=VtxP5 - VtxM5,Colorstick;
trSum8:= sum(ATR(1), 8);
VtxP8:= if(trSum8 == 0 ,0 , sum(Abs(high - Ref(low,1)),8))/ trSum8,ColorGreen;
VtxM8:= if(trSum8 == 0 ,0 , sum(Abs(low - Ref(high,1)),8))/ trSum8,ColorRed;
OST8:=VtxP8 - VtxM8,Colorstick;
trSum13:= sum(ATR(1), 13);
VtxP13:= if(trSum13 == 0 ,0 , sum(Abs(high - Ref(low,1)),13))/ trSum13,ColorGreen;
VtxM13:= if(trSum13 == 0 ,0 , sum(Abs(low - Ref(high,1)),13))/ trSum13,ColorRed;
OST13:=VtxP13 - VtxM13,Colorstick;
trSum21:= sum(ATR(1), 21);
VtxP21:= if(trSum21== 0 ,0 , sum(Abs(high - Ref(low,1)),21))/ trSum21,ColorGreen;
VtxM21:= if(trSum21 == 0 ,0 , sum(Abs(low - Ref(high,1)),21))/ trSum21,ColorRed;
OST21:=VtxP21 - VtxM21,Colorstick;
trSum34:= sum(ATR(1), 34);
VtxP34:= if(trSum34 == 0 ,0 , sum(Abs(high - Ref(low,1)),34))/ trSum34,ColorGreen;
VtxM34:= if(trSum34 == 0 ,0 , sum(Abs(low - Ref(high,1)),34))/ trSum34,ColorRed;
OST34:=VtxP34 - VtxM34,Colorstick;
trSum55:= sum(ATR(1), 55);
VtxP55:= if(trSum55 == 0 ,0 , sum(Abs(high - Ref(low,1)),55))/ trSum55,ColorGreen;
VtxM55:= if(trSum55 == 0 ,0 , sum(Abs(low - Ref(high,1)),55))/ trSum55,ColorRed;
OST55:=VtxP55 - VtxM55,Colorstick;
width:= 8;
lowest:= 0;
highest:= 114.24;
BandWidth:= (highest - lowest) / width;
band1:= Highest - BandWidth,Width2,ColorBlack;
band2:= band1 - BandWidth,Width2,ColorBlack;
band3:= band2 - BandWidth,Width2,ColorBlack;
band4:= band3 - BandWidth,Width2,ColorBlack;
band5:= band4 - BandWidth,Width2,ColorBlack;
band6:= band5 - BandWidth,Width2,ColorBlack;
band7:= band6 - BandWidth,Width2,ColorBlack;
band8:= band7 - Bandwidth,Width2,ColorBlack;
A3:= If(OST3>=0,1,0);
A5:= If(OST5>=0,1,0);
A8:= If(OST8>=0,1,0);
A13:= If(OST13>=0,1,0);
A21:= If(OST21>=0,1,0);
A34:= If(OST34>=0,1,0);
A55:= If(OST55>=0,1,0);
Total:(A3+A5+A8+A13+A21+A34+A55)*14.28,Width2,ColorBlack;
track1_AR3:= if(A3==1, band1 ,band2);
track2_AR3:= if(A3==1, band2 , band1);
FillRgn(A3==1,track1_AR3,Track2_AR3),Brush#70008000;
FillRgn(A3==0,Track1_AR3,Track2_AR3),Brush#70800000;
track1_AR5:= if( A5==1, band2 ,band3);
track2_AR5:= if(A5==1, band3 , band2);
FillRgn(A5==1,track1_AR5,Track2_AR5),Brush#70008000;
FillRgn(A5==0,Track1_AR5,Track2_AR5),Brush#70800000;
track1_AR8:= if( A8==1, band3 ,band4);
track2_AR8:= if(A8==1, band4 , band3);
FillRgn(A8==1,track1_AR8,Track2_AR8),Brush#70008000;
FillRgn(A8==0,Track1_AR8,Track2_AR8),Brush#70800000;
track1_AR13:= if( A13==1, band4 ,band5);
track2_AR13:= if(A13==1, band5 , band4);
FillRgn(A13==1,track1_AR13,Track2_AR13),Brush#70008000;
FillRgn(A13==0,Track1_AR13,Track2_AR13),Brush#70800000;
track1_AR21:= if( A21==1, band5 ,band6);
track2_AR21:= if(A21==1, band6 , band5);
FillRgn(A21==1,track1_AR21,Track2_AR21),Brush#70008000;
FillRgn(A21==0,Track1_AR21,Track2_AR21),Brush#70800000;
track1_AR34:= if( A34==1, band6 ,band7);
track2_AR34:= if(A34==1, band7 , band6);
FillRgn(A34==1,track1_AR34,Track2_AR34),Brush#70008000;
FillRgn(A34==0,Track1_AR34,Track2_AR34),Brush#70800000;
track1_AR55:= if( A55==1, band7 ,band8);
track2_AR55:= if(A55==1, band8 , band7);
FillRgn(A55==1,track1_AR55,Track2_AR55),Brush#70008000;
FillRgn(A55==0,Track1_AR55,Track2_AR55),Brush#70800000;
VtxP3:= if(trSum3 == 0 ,0 , sum(Abs(high - Ref(low,1)),3))/ trSum3,ColorGreen;
VtxM3:= if(trSum3 == 0 ,0 , sum(Abs(low - Ref(high,1)),3))/ trSum3,ColorRed;
OST3:=VtxP3 - VtxM3,Colorstick;
trSum5:= sum(ATR(1), 5);
VtxP5:= if(trSum5 == 0 ,0 , sum(Abs(high - Ref(low,1)),5))/ trSum5,ColorGreen;
VtxM5:= if(trSum5 == 0 ,0 , sum(Abs(low - Ref(high,1)),5))/ trSum5,ColorRed;
OST5:=VtxP5 - VtxM5,Colorstick;
trSum8:= sum(ATR(1), 8);
VtxP8:= if(trSum8 == 0 ,0 , sum(Abs(high - Ref(low,1)),8))/ trSum8,ColorGreen;
VtxM8:= if(trSum8 == 0 ,0 , sum(Abs(low - Ref(high,1)),8))/ trSum8,ColorRed;
OST8:=VtxP8 - VtxM8,Colorstick;
trSum13:= sum(ATR(1), 13);
VtxP13:= if(trSum13 == 0 ,0 , sum(Abs(high - Ref(low,1)),13))/ trSum13,ColorGreen;
VtxM13:= if(trSum13 == 0 ,0 , sum(Abs(low - Ref(high,1)),13))/ trSum13,ColorRed;
OST13:=VtxP13 - VtxM13,Colorstick;
trSum21:= sum(ATR(1), 21);
VtxP21:= if(trSum21== 0 ,0 , sum(Abs(high - Ref(low,1)),21))/ trSum21,ColorGreen;
VtxM21:= if(trSum21 == 0 ,0 , sum(Abs(low - Ref(high,1)),21))/ trSum21,ColorRed;
OST21:=VtxP21 - VtxM21,Colorstick;
trSum34:= sum(ATR(1), 34);
VtxP34:= if(trSum34 == 0 ,0 , sum(Abs(high - Ref(low,1)),34))/ trSum34,ColorGreen;
VtxM34:= if(trSum34 == 0 ,0 , sum(Abs(low - Ref(high,1)),34))/ trSum34,ColorRed;
OST34:=VtxP34 - VtxM34,Colorstick;
trSum55:= sum(ATR(1), 55);
VtxP55:= if(trSum55 == 0 ,0 , sum(Abs(high - Ref(low,1)),55))/ trSum55,ColorGreen;
VtxM55:= if(trSum55 == 0 ,0 , sum(Abs(low - Ref(high,1)),55))/ trSum55,ColorRed;
OST55:=VtxP55 - VtxM55,Colorstick;
width:= 8;
lowest:= 0;
highest:= 114.24;
BandWidth:= (highest - lowest) / width;
band1:= Highest - BandWidth,Width2,ColorBlack;
band2:= band1 - BandWidth,Width2,ColorBlack;
band3:= band2 - BandWidth,Width2,ColorBlack;
band4:= band3 - BandWidth,Width2,ColorBlack;
band5:= band4 - BandWidth,Width2,ColorBlack;
band6:= band5 - BandWidth,Width2,ColorBlack;
band7:= band6 - BandWidth,Width2,ColorBlack;
band8:= band7 - Bandwidth,Width2,ColorBlack;
A3:= If(OST3>=0,1,0);
A5:= If(OST5>=0,1,0);
A8:= If(OST8>=0,1,0);
A13:= If(OST13>=0,1,0);
A21:= If(OST21>=0,1,0);
A34:= If(OST34>=0,1,0);
A55:= If(OST55>=0,1,0);
Total:(A3+A5+A8+A13+A21+A34+A55)*14.28,Width2,ColorBlack;
track1_AR3:= if(A3==1, band1 ,band2);
track2_AR3:= if(A3==1, band2 , band1);
FillRgn(A3==1,track1_AR3,Track2_AR3),Brush#70008000;
FillRgn(A3==0,Track1_AR3,Track2_AR3),Brush#70800000;
track1_AR5:= if( A5==1, band2 ,band3);
track2_AR5:= if(A5==1, band3 , band2);
FillRgn(A5==1,track1_AR5,Track2_AR5),Brush#70008000;
FillRgn(A5==0,Track1_AR5,Track2_AR5),Brush#70800000;
track1_AR8:= if( A8==1, band3 ,band4);
track2_AR8:= if(A8==1, band4 , band3);
FillRgn(A8==1,track1_AR8,Track2_AR8),Brush#70008000;
FillRgn(A8==0,Track1_AR8,Track2_AR8),Brush#70800000;
track1_AR13:= if( A13==1, band4 ,band5);
track2_AR13:= if(A13==1, band5 , band4);
FillRgn(A13==1,track1_AR13,Track2_AR13),Brush#70008000;
FillRgn(A13==0,Track1_AR13,Track2_AR13),Brush#70800000;
track1_AR21:= if( A21==1, band5 ,band6);
track2_AR21:= if(A21==1, band6 , band5);
FillRgn(A21==1,track1_AR21,Track2_AR21),Brush#70008000;
FillRgn(A21==0,Track1_AR21,Track2_AR21),Brush#70800000;
track1_AR34:= if( A34==1, band6 ,band7);
track2_AR34:= if(A34==1, band7 , band6);
FillRgn(A34==1,track1_AR34,Track2_AR34),Brush#70008000;
FillRgn(A34==0,Track1_AR34,Track2_AR34),Brush#70800000;
track1_AR55:= if( A55==1, band7 ,band8);
track2_AR55:= if(A55==1, band8 , band7);
FillRgn(A55==1,track1_AR55,Track2_AR55),Brush#70008000;
FillRgn(A55==0,Track1_AR55,Track2_AR55),Brush#70800000;