通达信红顶绿底买卖操盘指标公式:
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K0:=SMA(RSV,3,1);
K:=K0;
D:=SMA(K0,2,1);
J1:=(3*K0-2*D);
J2:MA(J1,2),LINETHICK1,COLORCYAN;
趋势线:(1.06*(3*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)+50),COLOR6A826C;
VAR5:=AMOUNT/VOL/100;
VAR6:=IF(VAR5>CLOSE*1.1,CLOSE,IF(VAR5<CLOSE*0.9,CLOSE,VAR5));
VAR7:=100*WINNER(VAR6);
VAR8:=MA(VAR7,8);
VAR9:=HHV(CLOSE,0)/VAR8;
VARA:=IF(VAR9>2.5,-10,VAR9);
VARB:=IF(VARA>1,-10,VARA);
底限: VARB, COLORGREEN;
VARC:=VAR8/LLV(LOW,0);
VARD:=HHV(HIGH,0)/VAR8*8*10;
VARE:=IF(VARD>50,50,VARD);
VARF:=VARE;
VAR10:=HHV(HIGH,0)/VAR8*4.5*100;
VAR11:=IF(VAR10>100,103,VAR10);
VAR15:=REF(CLOSE,1);
短线:=SMA(MAX(CLOSE-VAR15,0),2,1)/SMA(ABS(CLOSE-VAR15),2,1)*100;
红顶:STICKLINE(短线>90,91,89,1,0),POINTDOT,LINETHICK6 ,COLORRED;
绿底:STICKLINE(短线<5,11,9,1,0),POINTDOT,LINETHICK6,COLOR00FF00;
买入: IF(CROSS(J1,J2) AND 底限=-10 AND J2<20 OR CROSS(J1,J2) AND 短线<5,60,19), COLORGREEN;
卖出: IF(CROSS(J2,J1) AND J2>80 AND 趋势线>80 OR CROSS(87,趋势线),40,81),COLOR0000FF;
DRAWTEXT(CROSS(87,趋势线),35,'逃'),COLOR0000FF;
DRAWTEXT(CROSS(J1,J2) AND 底限=-10 AND J2<20 OR CROSS(J1,J2) AND 短线<5,65,'买');
DRAWTEXT(CROSS(90,VAR8),86,'诱多'), COLORGREEN;
通达信红顶绿底买卖操盘指标公式