通达信旺财主图源码指标公式
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
{成本分布-----------------------}
CB90:=STRCAT('成本90: ',CON2STR(COST(90),2));
CB70:=STRCAT('成本70: ',CON2STR(COST(70),2));
CB50:=STRCAT('成本50: ',CON2STR(COST(50),2));
CB30:=STRCAT('成本30: ',CON2STR(COST(30),2));
CB10:=STRCAT('成本10: ',CON2STR(COST(10),2));
CB底:=STRCAT('底部出击: ',CON2STR(COST(1),2));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.06,0,'成本分布'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.06,0,CB90),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.12,0,CB70),COLORLIGRAY;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.18,0,CB50),COLORLIBLUE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.24,0,CB30),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.30,0,CB10),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.36,0,CB底),COLORWHITE;
上升线:=EMA(C,3),COLORRED,LINETHICK2;
下降线:=EMA(C,5),COLOR00FF00,LINETHICK2;
中间线:=EMA(下降线,5),COLORWHITE,LINETHICK2;
VAR1U:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2U:=REF(VAR1U,1);{www.hjcfw.com}
VAR3U:=SMA((CLOSE-VAR2U),6,1)/SMA(ABS(CLOSE-VAR2U),6,1)*100;
VAR4U:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VAR5U:=EMA(0.667*REF(VAR4U,1)+0.333*VAR4U,5);
VAR6U:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4U>=VAR5U AND VAR4U<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);
VAR7U:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
VAR8U:=SMA(MAX(VAR1U-VAR2U,0),10,1)/SMA(ABS(VAR1U-VAR2U),10,1)*100;
VAR9U:=IF(COUNT(VAR8U<20,5)>=1 AND COUNT(VAR1U=LLV(VAR1U,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWICON(FILTER(REF(VAR3U,1)>81 AND VAR3<80 OR CROSS(82,VAR7U),5),HIGH*1.018,2);
DRAWTEXT(FILTER(REF(VAR3U,1)>81 AND VAR3<80 OR CROSS(82,VAR7U),5),HIGH,'卖'),COLORYELLOW;
DRAWTEXT(FILTER(VAR9U OR VAR6U,5),LOW,'注意买入'),COLORRED;
DRAWICON(FILTER(CROSS(上升线,下降线)AND 中间线>=REF(中间线,1)AND VAR3U<50,5),L*0.992,1);
- 上一篇公式:20日内2个相同最低价选股和画线主图 冷妞妞
- 下一篇公式:通达信变色MACD与资金流量副图指标 贴图