趋势威廉探底买入公式源码[同花顺公式]
趋势威廉探底买入公式源码:
N3:=BARSLAST(CROSS(CLOSE,MA(CLOSE,20)));
N4:=BARSLAST(CROSS(MA(CLOSE,20),C));
黑马:IF(N3<N4,N3+1,0); M:=60;
N:=30;
做空趋势: 100*(HHV(H,M)-C)/(HHV(H,M)-LLV(L,M));
RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
做多趋势:EMA(J,6),colormagenta;
cxh2:=REF(L,1);
cxh3:=SMA(ABS(L-cxh2),3,1)/SMA(MAX(L-cxh2,0),3,1)*100;
cxh4:=EMA(IF(C*1.3,cxh3*10,cxh3/10),3);
cxh5:=LLV(L,30);
cxh6:=HHV(cxh4,30);
cxh7:=IF(MA(C,58),1,0);
cxh8:=EMA(IF(L<=cxh5,(cxh4+cxh6*2)/2,0),3)/618*cxh7;
cxh9:=IF(cxh8>100,100,cxh8);
AA3:=(HHV(H,21)-C)/(HHV(H,21)-LLV(L,21))*100-10;
AA4:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;
AA5:=SMA(AA4,13,8);
OK线:CEILING(SMA(AA5,13,8)),colorred,LINETHICK3;
AA6:=SMA(AA3,21,8);
买关注: STICKLINE(OK线-AA6<-65,0,7,2,1);
DRAWICON(FILTER(J>REF(J,1)AND OK线>=REF(OK线,1)AND OK线<25 ,5),OK线,5);
卖关注: STICKLINE(OK线-AA6>85,98,90,2,1),COLORFFFF00;
DRAWICON(FILTER(J<REF(J,1)AND OK线<=REF(OK线,1)AND J>85 ,5),J,6);
V1:=(C*2+HIGH+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3); VB:=(V9-VA)/2;
V11:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
小心:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),LINETHICK2 , coloryellow;
买信: IF(CROSS(小心,10),35,0),STICK ,colorred ,LINETHICK4;
DRAWTEXT(买信,35,'低') , colorred ;
cxh199:=MA(C,80)-MA(C,10)/3;
VVVV:=C<cxh199 AND V/240>MA(V,5)/240 AND
C>REF(C,1)*1.08 AND C<MA(C,13)*1.3;
底:(IF(VVVV,1,0))*15,STICK,colorwhite,LINETHICK4;
DRAWTEXT(底,15,'底'),colorwhite;
下单: IF(CROSS(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),10),20,0),STICK ,colorgreen, LINETHICK4;
DRAWTEXT(下单,20,'买!'),COLORGREEN;//http://www.cxh99.com
卖出: IF(CROSS(84,3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1)),60,0),STICK ,colorcyan ,LINETHICK1;
DRAWTEXT(卖出,61,'顶!'),colorcyan ;
AA:=LLV(L,36);
BB:=HHV(H,30);
DD:=(EMA(((C-AA)/(BB-AA))*(4),4))*(25);
底部:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容