通达信黄金短战均线主图指标公式
通达信入库必赚选股指标公式
通达信黄金短战均线主图指标公式:
P1:=3;
P2:=8;
P3:=13;
P4:=34;
P5:=120;
P6:=250;
MA1:MA(CLOSE,P1),COLOR00FFFF;
MA2:MA(CLOSE,P2),COLORFF00FF;
MA3:MA(CLOSE,P3),COLOR00FF00;
MA4:MA(CLOSE,P4),COLORFFFFFF;
MA5:MA(CLOSE,P5),COLORFFFF00;
MA6:MA(CLOSE,P6),COLOR0000FF;
VAR2:=EMA((SLOPE(EMA(CLOSE,20),10))*(34)+CLOSE,30);
VAR3:=EMA(VAR2,3);
VAR4:=EMA(VAR3,3);
A1:=COst(95);
A2:=COST(5);
LY:=((A1-A2)*(100))/(A1+A2);
DRAWICON((LY>REF(LY,1)),(LOW)*(0.98),8),COLOR008000;
DRAWTEXT((VAR4>90),(LOW)*(0.95),'加仓'),COLOR00FFFF;
DRAWTEXT((VAR4>90),(LOW)*(0.99),''),COLOR00FFFF;
VAR1:=(HIGH+LOW+OPEN+(2)*(CLOSE))/(5);
HY3:=IF((COUNT((VAR3<20),5)>=1) AND (COUNT((VAR1=LLV(VAR1,10)),10)>=1) AND (CLOSE>=(OPEN)*(1.038)) AND (vol>(MA(VOL,5))*(1.2)),1,0);
DRAWTEXT(HY3,LOW,'▲买入'),COLOR00FFFF;
VARR1:=((SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1))/(SMA(Abs(CLOSE-REF(CLOSE,1)),6,1)))*(100);
DRAWICON(crOSS(82,VARR1),HIGH,2),COLOR00FFFF;
DRAWTEXT(CROSS(82,VARR1),HIGH,'▲风险↓'),COLOR00FFFF;
EL1:=EMA(LOW,6);
EL2:=EMA((EMA(LOW,34))*(1),2)-0.16;
DRAWICON(CROSS(EL1,EL2),EL1,10),COLOR00FF00;
V1:=REF(CLOSE,1);
V2:=((SMA(MAX(CLOSE-V1,0),6,1))/(SMA(ABS(CLOSE-V1),6,1)))*(100);
DRAWICON(IF(CROSS(81,V2),1,0),(HIGH)*(1.01),11),COLORFFFFFF;
VAR41:=EMA(((100)*(CLOSE-LLV(LOW,34)))/(HHV(HIGH,34)-LLV(LOW,34)),3);
VAR42:=EMA(((100)*(INDEXC-LLV(INDEXL,34)))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);
VAR4A:=(REF(VAR41,1)>92) AND (VAR41<92);
DRAWTEXT(VAR4A,HIGH+0.12,'短卖'),COLOR00FF00;
DRAWTEXT(VAR4A,HIGH+0.05,'●'),COLOR00FF00;
通达信逆市亮剑选股指标公式