将变盘公式中“出现红色箭头”时做个选股
2019/12/16 18:28:05
公式编写说明:
源码如下:VAR1:=LLV(LOW,13);VAR2:=HHV(HIGH,13);VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);DRAWBAND(VAR3,RGB(155,50,50),50,RGB(0,100,50));主力:VAR3,COLORRED;散户:VAR4,COLORGREEN;VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;操作:=EMA(VAR5,3),COLORYELLOW;STICKLINE(C,90,90,1,0),COLOR3C3CFF;STICKLINE(C,50,50,1,0),COLORYELLOW;STICKLINE(C,10,10,1,0),COLORCYAN;N1:=7; 界:=38,COLORFF3311; 加仓线:=51,COLORFF1155; LC:=REF(CLOSE,1); X:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFFFFFF; 魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1),COLOR00FF00;TJ1:=X=魔鬼;TJ2:=X<REF(X,1);DRAWICON(TJ1 AND TJ2,X,1);VAR2M:=(HIGH+LOW+CLOSE*2)/4;VAR3M:=EMA(VAR2M,21);VAR4M:=STD(VAR2M,21);VAR5M:=((VAR2M-VAR3M)/VAR4M*100+200)/4;VAR6:=(EMA(VAR5M,5)-25)*1.56;AK:=EMA(VAR6,2)*1.22;AD1:=EMA(AK,2);注意:=CROSS(AD1,AK);DRAWTEXT(注意,散户,'变');
公式源码回答:
N1:=7;
LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1);
TJ1:=X=魔鬼;
TJ2:=X<REF(X,1);
TJ1 AND TJ2;
投 股票网 www. tou18.cn
股市公式下载推荐