通达信趋势判势指标公式
2020/4/14 19:04:13
VAR1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
VAR2:=EMA(VAR1,9);
VAR3:=2*(VAR1-VAR2);
STICKLINE(VAR1>=0,0,VAR1*0.8,3,0),COLOREEEEFF;
STICKLINE(VAR1>=0,0,VAR1*0.7,3,0),COLORDDDDFF;
STICKLINE(VAR1>=0,0,VAR1*0.6,3,0),COLORCCCCFF;
STICKLINE(VAR1>=0,0,VAR1*0.5,3,0),COLORBBBBFF;
STICKLINE(VAR1>=0,0,VAR1*0.4,3,0),COLORAAAAFF;
STICKLINE(VAR1>=0,0,VAR1*0.3,3,0),COLOR9999FF;
STICKLINE(VAR1>=0,0,VAR1*0.2,3,0),COLOR8888FF;
STICKLINE(VAR1>=0,0,VAR1*0.1,3,0),COLOR7777FF;
STICKLINE(VAR1<0,0,VAR1*0.8,3,0),COLORFFB0B0;
STICKLINE(VAR1<0,0,VAR1*0.7,3,0),COLORFF9D9D;
STICKLINE(VAR1<0,0,VAR1*0.6,3,0),COLORFF8E8E;
STICKLINE(VAR1<0,0,VAR1*0.5,3,0),COLORFF7D7D;
STICKLINE(VAR1<0,0,VAR1*0.4,3,0),COLORFF6A6A;
STICKLINE(VAR1<0,0,VAR1*0.3,3,0),COLORFF4D4D;
STICKLINE(VAR1<0,0,VAR1*0.2,3,0),COLORFF2D2D;
STICKLINE(VAR1<0,0,VAR1*0.1,3,0),COLORFF0000;
STICKLINE(VAR2>=0,0,VAR2*0.8,3,0),COLORD3FF60;
STICKLINE(VAR2>=0,0,VAR2*0.7,3,0),COLORC2FF24;
STICKLINE(VAR2>=0,0,VAR2*0.6,3,0),COLORBAFF02;
STICKLINE(VAR2>=0,0,VAR2*0.5,3,0),COLORAFF200;
STICKLINE(VAR2>=0,0,VAR2*0.4,3,0),COLORA4E100;
STICKLINE(VAR2>=0,0,VAR2*0.3,3,0),COLOR96CE00;
STICKLINE(VAR2>=0,0,VAR2*0.2,3,0),COLOR89BD00;
STICKLINE(VAR2>=0,0,VAR2*0.1,3,0),COLOR78A600;
STICKLINE(VAR2<0,0,VAR2*0.8,3,0),COLOR1EBE01;
STICKLINE(VAR2<0,0,VAR2*0.7,3,0),COLOR20CD01;
STICKLINE(VAR2<0,0,VAR2*0.6,3,0),COLOR22DC01;
STICKLINE(VAR2<0,0,VAR2*0.5,3,0),COLOR25F101;
STICKLINE(VAR2<0,0,VAR2*0.4,3,0),COLOR34FE10;
STICKLINE(VAR2<0,0,VAR2*0.3,3,0),COLOR49FE29;
STICKLINE(VAR2<0,0,VAR2*0.2,3,0),COLOR6BFE52;
STICKLINE(VAR2<0,0,VAR2*0.1,3,0),COLOR82FE6B;
安全区: -20;
风险区: 20;
VAR4:=EMA((CLOSE-LLV(LOW,33))/(HHV(HIGH,21)-LLV(LOW,33))*100,20)*0.998;
VAR5:=-50+EMA(0.667*REF(VAR4,1)+0.333*VAR4,1);
趋势: -50+EMA(0.667*REF(VAR4,1)+0.333*VAR4,1),COLORB2499B,LINETHICK4;
IF(趋势>20,趋势,DRAWNULL),COLORRED,LINETHICK4;
IF(趋势<-20,趋势,DRAWNULL),COLOR67BBD2,LINETHICK4;
VAR7:=SMA((SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,2,1)+3),2,1);
VAR8:=EMA(EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16),4);
VAR9:=SMA((HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100,3,1);
VAR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR15:=EMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,30)-LLV(LOW,36))*4,4)*25;
底背离: IF((VAR15<10),40,50), , COLOR6365CC;
顶背离: IF((VAR15>90),-40,-50), COLORRED;
{www.tou18.cn 投股票网_通达信股票指标公式}
兜底:STICKLINE(CROSS(MA(C,3),MA(C,5)) AND HHV(IF((VAR10+VAR11+VAR12)/3<=-20,10,0),10),-40,-50,2,0),COLORRED ;
铁底:STICKLINE(CROSS(VAR7,VAR8),-40,-50,2,0),COLORMAGENTA;
DRAWTEXT(CROSS(VAR8,VAR9) AND VAR8<50,20,'还涨')COLORMAGENTA;
DRAWICON(CROSS(VAR8,VAR9) AND VAR8<50,20,4);
DRAWTEXT(CROSS(VAR8,VAR7) AND VAR8>40,60,'快卖')COLORGREEN;
DRAWICON(CROSS(VAR8,VAR7) AND VAR8>40,50,9);
DRAWTEXT(CROSS(VAR7,VAR8) AND VAR8<50,-55,' 铁底')COLORRED;
DRAWTEXT(CROSS(VAR7,VAR9) ,10,'有戏')COLORBLUE;
DRAWICON(CROSS(VAR7,VAR9),20,6);
DRAWTEXT(CROSS(VAR9,VAR7) ,30,'不妙')COLORBLUE;
DRAWICON(CROSS(VAR9,VAR7),30,5);
{DRAWTEXT(CROSS(VAR9,VAR8) AND VAR8>50,-20,'还跌')COLORCYAN;
DRAWICON(CROSS(VAR9,VAR8) AND VAR8>50,-20,5)};
投股 票网 www.tou18. cn
股市公式下载推荐