通达信股票指标公式编写教程
通达信如何统计一支股票指标数值和请问如何编写一个公式:统计一支...
标示出向上的红色箭头 .................................................................. VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK; J:=KDJ.J; AA:=VOLREF(LLV(VOL,21),1); AA2:=VOL>REF(LLV(VOL,55),1); AA3:=ABS(VOL-REF(VOL,1))/REF(VOL,1)>=0.05; STICKLINE(AA,0,V,1,0),COLORYELLOW; STICKLINE(AA1,0,V,1,0),COLORGREEN; STICKLINE(AA2,0,V,1,0),COLORMAGENTA; STICKLINE(AA3,0,V,1,0),COLORWHITE; MV1:MA(VOL,5); MV2:MA(VOL,10); MV3:MA(VOL,20); {红色箭头}DRAWICON(VOL=70,V*1.05,1); ************************************************************ 及其选股公式 -------------------------------------------------- 选股:KDJ.J>=70 AND VOL
通达信公式:根据下面的一个指标公式,请老师帮我编写一个粉线上穿...
VAR1:=EMA(WINNER((LOW+HIGH)/2),10)*100;VAR2:=EMA(WINNER(CLOSE),21)*100;VAR3:=EMA(WINNER(CLOSE),34)*100;VAR4:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;X1:=SMA(VAR4,5,1) ;X2:=SMA(X1,3,1) ;X3:=3*X1-2*X2;AA:=CROSS(X3,X1) AND CROSS(X3,X2) AND X1>X2;上:=MAX(X1,MAX(X2,X3));下:=MIN(X1,MIN(X2,X3));VAR88:=MA(CLOSE,27);VAR98:=(CLOSE-VAR88)/VAR88*100;VARA8:=MA(VAR98,2);VARB8:=BARSLAST(CROSS(-10,VARA8)=1);VARC8:=BARSLAST(CROSS(VARA8,10)=1);VARD8:=VARA8<-10 AND VARB8>3;黄金坑:=VARA8>10 AND VARC8>3;三线粘合:=LLV((上-下)/下*100,3)<0.5 AND X1<20 AND X2<20 AND X3<20 AND 黄金坑;XG:AA OR 三线粘合;