{轨道线}
UPPER:=(1+6/100)*MA(CLOSE,25);
LOWER:=(1-6/100)*MA(CLOSE,25);
ENE:=(UPPER+LOWER)/2;
轨一:(1+20/100)*MA(CLOSE,25),COLORWHITE;
影子:(1+13/100)*MA(CLOSE,25),POINTDOT,COLORGRAY;
轨二:UPPER,COLORYELLOW;
轨三:ENE,COLORCYAN;
轨四:LOWER,COLORMAGENTA;
轨五:(1-15/100)*MA(CLOSE,25),COLORLIGRAY;
{止损线}
MA5:=MA(C,5);
MA20:=MA(C,20);
A51:= REF(MA5,1)*0.98;
A52:= REF(MA5,2)*0.98;
B52:= BARSLAST(REF(C,2) =REF(MA5,2)&&REF(C,1) REF(MA5,1))+2;
B51:= BARSLAST(REF(C,2) =REF(MA5,2)&&REF(C,1) REF(MA5,1))+1;
DZ:=IF((REF(C,2) =REF(MA5,2))&&(REF(C,1) REF(MA5,1)),IF(REF(MA5,2) REF(MA5,1),A51,A52),IF(BARSSINCE(REF(C,2) =REF(MA5,2)&&REF(C,1) REF(MA5,1)) 0,IF(REF(MA5, B52) REF(MA5, B51),REF(MA5,B51)*0.98, REF(MA5,B52)*0.98), REF(MA5,1)));
A201:= REF(MA20,1)*0.98;
A202:= REF(MA20,2)*0.98;{www.9m8.cn 九毛八公式指标网}
B202:= BARSLAST(REF(C,2) =REF(MA20,2)&&REF(C,1) REF(MA20,1))+2;
B201:= BARSLAST(REF(C,2) =REF(MA20,2)&&REF(C,1) REF(MA20,1))+1;
ZZ:=IF((REF(C,2) =REF(MA20,2))&&(REF(C,1) REF(MA20,1)),IF(REF(MA20,2) REF(MA20,1),A201,A202),IF(BARSSINCE(REF(C,2) =REF(MA20,2)&&REF(C,1) REF(MA20,1)) 0,IF(REF(MA20, B202) REF(MA20, B201),REF(MA20,B201)*0.98, REF(MA20,B202)*0.98), REF(MA20,1)));
短止:DZ,COLORWHITE;
中止:ZZ,COLORMAGENTA;
{强弱值}
HD :=REF(HIGH,1)-REF(HIGH,2);
LD :=REF(LOW,2)-REF(LOW,1);
X:=IF(HD 0,0,HD);
Y:=IF(LD 0,0,LD);
QR:=(REF(HIGH,2)+REF(LOW,2))/2+(X-Y)/2;
【强弱】:QR,COLOR808000;