添加开平仓 [文华财经]
-
咨询内容:
MA10:MA(C,10);MA30:MA(C,30);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;
KD:=MA10>MA30&&CROSS(C,MA10)&&COUNT(MA10>MA30&&CROSS(C,MA10),BARSLAST(CROSS(MA10,MA30)))=1;KK:=MA10<MA30&&CROSSDOWN(C,MA10)&&COUNT(MA10<MA30&&CROSSDOWN(C,MA10),BARSLAST(CROSSDOWN(MA10,MA30)))=1; DRAWTEXT (KD,H,'买'); DRAWTEXT (CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),BARSLAST(KD))=1,H,'平多'); DRAWTEXT (KK,H,'空'); DRAWTEXT (CROSS (C,MA10)&&COUNT(CROSS (C,MA10),BARSLAST(KK))=1,H,'平空'); DRAWKLINE(0.75,COLORRED,1,COLORCYAN,0);
来源:程序化99
-
文华技术人员:
请参考
MA10:MA(C,10); MA30:MA(C,30); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D;
KD:=MA10>MA30&&CROSS(C,MA10)&&COUNT(MA10>MA30&&CROSS(C,MA10),BARSLAST(CROSS(MA10,MA30)))=1; KK:=MA10<MA30&&CROSSDOWN(C,MA10)&&COUNT(MA10<MA30&&CROSSDOWN(C,MA10),BARSLAST(CROSSDOWN(MA10,MA30)))=1; DRAWTEXT (KD,H,''; KD,BK; DRAWTEXT (CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),BARSLAST(KD))=1,H,'多'; CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),BARSLAST(KD))=1,SP; DRAWTEXT (KK,H,''; KK,SK; DRAWTEXT (CROSS (C,MA10)&&COUNT(CROSS (C,MA10),BARSLAST(KK))=1,H,'空'; CROSS (C,MA10)&&COUNT(CROSS (C,MA10),BARSLAST(KK))=1,BP; AUTOFILTER;
来源: WWW.CXH99.COM
-
文华客服:
麻烦再改一个,感谢你了MA10:MA(C,10);
MA30:MA(C,30);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
COND1:=J>K&&K>D&&CROSS(MA10,MA30)&&C>MA10;
DRAWTEXT(CROSS(COND1,0.5),H,'',VALIGN2;
N1:BARSLAST(CROSS(COND1,0.5))+1,NODRAW;
DRAWTEXT(CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),N1)=1,H,'平',VALIGN2;
N2:BARSLAST(CROSSDOWN(C,MA10)&&COUNT(CROSSDOWN(C,MA10),N1)=1)+1,NODRAW;
COND2:=J<K&&K<D&&CROSSDOWN(MA10,MA30)&&C<MA30;
DRAWTEXT(CROSS(COND2,0.5),H,'',VALIGN2;
N3:=BARSLAST(CROSS(COND2,0.5))+1;
DRAWTEXT(CROSS(C,MA10)&&COUNT(CROSS(C,MA10),N3)=1,H,'平',VALIGN2;
N4:=BARSLAST(CROSS(C,MA10)&&COUNT(CROSS(C,MA10),N3)=1)+1;
DRAWCOLORKLINE(N1<N2,COLORRED,0);
DRAWCOLORKLINE(N3<N4,COLORBLUE,0);
DRAWCOLORKLINE(NOT(N1<N2 OR N3<N4),COLORYELLOW,0); -
网友回复:
也是做成WH8的模型
- 网友回复: 为了方便论坛管理,新的思路,请重新发帖提问,感谢您的配合
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容