通达信轨道止损强弱主图指标 源码 贴图

2022-07-16 10:11:00来源:本站整理浏览:1024

通达信轨道止损强弱主图指标 源码 贴图

通达信轨道止损强弱主图指标 源码 贴图

通达信轨道止损强弱主图指标 源码 贴图


{轨道线}
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.GPXIAZAI.COM}
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;


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式