通达信波段趋势逃顶指标公式

通达信资金指标公式

通达信波段趋势逃顶指标公式:

LC:= REF(CLOSE,1);

rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;

VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;

VAR2B:=SMA(VAR1B,9,1)+100;

VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR4B:=SMA(VAR3B,3,1);

VAR5B:=SMA(VAR4B,3,1)+100;

VAR6B:=VAR5B-VAR2B;

趋势1: IF(VAR6B>45,VAR6B-45,0),COLOR00FFFF,LINETHICK2;

VAR2Q:=REF(LOW,1);

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;

VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);

VAR5Q:=LLV(LOW,30);

VAR6Q:=HHV(VAR4Q,30);

VAR7Q:=IF(MA(CLOSE,58),1,0);

VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;

火焰山:=IF(VAR8Q>100,100,VAR8Q);

stICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,7,0 ),COLOR4444FF;

STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,5,0 ),COLOR5555FF;

STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,3,0 ),COLOR7777FF;

STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,1,0 ),COLOR9999FF;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),7.0,0),COLOR000033;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),5.6,0),COLOR000055;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),4.0,0),COLOR000077;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.4,0),COLOR000099;

STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),0.8,0),COLOR0000DD;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),7.0,0),COLOR003300;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),5.6,0),COLOR005500;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),4.0,0),COLOR007700;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.4,0),COLOR009900;

STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),0.8,0),COLOR00DD00;

逃顶:=crOSS(82,RSI);

STICKLINE( 逃顶,逃顶,10,7.0,0),COLORFF5500;

STICKLINE( 逃顶,逃顶,15,5.0,0),COLORFF8800;

STICKLINE( 逃顶,逃顶,20,3.0,0),COLORFFAA00;

STICKLINE( 逃顶,逃顶,25,1.0,0),COLORFFCC00;

STICKLINE( 逃顶,逃顶,30,0.2,0),COLORFFFF00;

D1:=(C+L+H)/3;

D2:=EMA(D1,6);

D3:=EMA(D2,5);

BBUY:=CROSS(D2,D3);

强弱线:50,COLORGREEN,POINTDOT;

DRAWICON(BBUY,20,7);

VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;

DRAWICON(CROSS(82,VARR1),10,4);

DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;

通达信主升浪中短线选股指标公式