通达信千钧寻底副图指标公式源码

VAR1:=((CLOSE / MA(CLOSE,40)) * 100);
VAR2:=((CLOSE / MA(CLOSE,60)) * 100);
VAR3:=(HIGH > (LOW * 1.051));
VAR4:=(VAR3 AND (COUNT(VAR3,5) > 1));
VAR5:=((VAR4 AND ((VAR1 < 76) OR (VAR2 < 74))) AND (ABS((CLOSE - OPEN)) > ((0.1 * 0.1) * REF(CLOSE,1))));
伏击:(0 - 76),COLORYELLOW;
铁底:(0 - 74),COLORRED;
VAR6:=IF((VAR1 > 90),90,VAR1);
VAR7:=IF((VAR2 > 90),90,VAR2);
IF(CLOSE,(0 - VAR6),DRAWNULL),COLORMAGENTA;
IF(CLOSE,(0 - VAR7),DRAWNULL),COLORGREEN;
确:STICKLINE(VAR5,(0 - 70),(0 - 76),2,0),COLORWHITE;
警:STICKLINE(((VAR6 < 80) OR (VAR7 < 78)),(0 - 90),(0 - 87),2,1),COLORYELLOW;
关:STICKLINE(((VAR6 < 76) OR (VAR7 < 74)),(0 - 90),(0 - 87),2,1),COLOR0000FF;
铁:STICKLINE(VAR5,(0 - 60),(0 - 55),2,1),COLORFF0000;
DRAWICON(VAR5,(0 - 53),1),;

(0)

相关推荐