通达信公式 主图 源码 火耗龟公优化版,信号明确 简单易懂 使用简单
VAR1:=1;
VAR2:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
VAR3:=CLOSE OPEN AND OPEN-LOW HIGH-CLOSE;
VAR4:=REF(VAR2,1) -20 AND VAR3;
VAR5:=REF(VAR2,1) -20 AND CLOSE OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000
VAR6:=FILTER(VAR4 OR VAR5,3);
VAR7:=OPEN CLOSE AND HIGH-IF(CLOSE OPEN,CLOSE,OPEN) IF(OPEN CLOSE,OPEN,CLOSE)-LOW;
VAR8:=REF(VAR2,1) ABS(-20) AND VAR7;
VAR9:=REF(VAR2,1) ABS(-20) AND CLOSE OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000
VARA:=FILTER(VAR8 OR VAR9,3);
VARC:=REF(VAR2,1) -13 AND VAR3;
VARD:=REF(VAR2,1) -13 AND CLOSE OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000
VARE:=FILTER(VARC OR VARD,3);
VAR10:=REF(VAR2,1) ABS(-13) AND VAR7;
VAR11:=REF(VAR2,1) ABS(-13) AND CLOSE OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000
VAR12:=FILTER(VAR10 OR VAR11,3);
DRAWICON(VAR6*VAR1 0,LOW,1);
DRAWICON(VARA*VAR1 0,HIGH,2);
DRAWTEXT(VARE*VAR1 0,1.02*REF(CLOSE,1),'短线关注'),COLORGREEN;
DRAWTEXT(VAR12*VAR1 0,0.99*REF(CLOSE,1),'控制风险'),COLORYELLOW ;