通达信多空风险线副图公式[好查股公式]
2022/8/20 15:17:02
通达信多空风险线副图公式
VAR1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
VAR2:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
VAR3:=REF(LOW,1);
VAR4:=SMA(ABS(LOW-VAR3),3,1)/SMA(MAX(LOW-VAR3,0),3,1)*100;
VAR5:=EMA(IF(CLOSE*1.2,VAR4*10,VAR4/10),3);
VAR6:=LLV(LOW,38);
VAR7:=HHV(VAR5,38);
VAR8:=IF(LLV(LOW,90),1,0);
VAR9:=EMA(IF(LOW <=VAR6,(VAR5+VAR7*2)/2,0),3)/618*VAR8;
VAR10:=VAR9 > 5;
VAR11:=IF(COUNT(VAR10,2)=2,(-20),0);
VAR12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR13:=SMA(ABS(LOW-VAR12),13,1)/SMA(MAX(LOW-VAR12,0),10,1);
VAR14:=EMA(VAR13,10);
VAR15:=LLV(LOW,33);
VAR16:=EMA(IF(LOW <=VAR15,VAR14,0),3);
VAR17:=IF(VAR16 > REF(VAR16,1),VAR16,0)*1.1;
VAR18:=IF(VAR16 < REF(VAR16,1),VAR16,0);
短多:SMA(VAR1,3,1),COLORRED;
短空:SMA(短多,3,1),COLORYELLOW;
中多:SMA(VAR2,5,1),COLORMAGENTA;
中空:SMA(中多,10,1),COLORGREEN;
多方风险线:85,COLORBLUE;
空方风险线:18,COLORWHITE;
STICKLINE(短多 > 短空,短多,短空,1,0),COLORRED;
STICKLINE(短多 <=短空,短多,短空,1,0),COLORYELLOW;
STICKLINE(中多 > 中空,中多,中空,1,0),COLORMAGENTA;
STICKLINE(中多 <=中空,中多,中空,1,0),COLORGREEN;
STICKLINE(VAR16 > REF(VAR16,1),0,VAR16,4,1),COLORRED;
低买:IF(CROSS(VAR18,VAR17) AND VAR11=(-20),100,0),STICK,COLORFF9150,LINETHICK3;
好查股公式指标