通达信涨停之底部副图指标公式源码


T1:=5;
P:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);
CC:=(SUM(IF((P > REF(P,1)),(P)*(VOL),0),4))/(SUM(IF((P < REF(P,1)),(P)*(VOL),0),4));
A1:=HHV(P,15);
A3:=A1 - A2;
B1:=HHV(P,60);
B3:=B1 - B2;
C1:=HHV(P,240);
C3:=C1 - C2;
长风险:C4,LINETHICK2,COLOR443434;
短风险:A4,COLOR44AABB;
IF(FILTER((中风险 > REF(中风险,1)) AND (中风险 < 5) AND (CLOSE > REF(CLOSE,1)),5),14,0),LINETHICK2,COLOR2222FF;
VAR5:=HHV(HIGH,T2);
庄家:EMA((0.667)*(REF(散户,1)) + (0.333)*(散户),2),LINETHICK2,COLORDDCC00;
VAR7:=((P - LLV(LOW,4))/(HHV(HIGH,4) - LLV(LOW,4)))*(100);
{DRAWTEXT(CROSS(散户,庄家) AND (散户 < 50) AND (29 < 散户),20,'▲'),COLORRED;
DRAWTEXT(CROSS(散户,庄家) AND (散户 < 30),30,'吸'),COLORRED;}
DRAWICON(CROSS(庄家,散户) AND (散户 > 70),80,2),COLORFF00FF;}
VARA:=((EMA(EMA(VAR9,5),5))/(EMA(EMA(ABS(VAR9),5),5)))*(100);
VARC:=((EMA(EMA(VAR9,20),20))/(EMA(EMA(ABS(VAR9),20),20)))*(100);
DRAWICON((卖出 > 0),60,2),COLOR00FF00;
RSI1:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),6,1)))*(100);
STICKLINE((RSI1 > 80),105,102,3,0),COLOR00FE00;
STICKLINE((RSI1 < 25),(-6),(-2),3,0);
D2:=CROSS(短风险,中风险) AND (中风险 < 8);
DRAWICON(FILTER(D1 OR D2 OR D3 AND (DD < 15) AND (CLOSE > REF(CLOSE,1)),5),8,1),COLORFF0000;
警戒:80,COLORDCDCDC;