帮我把后面的两个折线做出来,谢谢 [文华财经]
-
咨询内容:
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线J:CROSS(DIFF,DEA),NODRAW;S:CROSSDOWN(DIFF,DEA),NODRAW;LL:CROSS( BACKSET(REFX(J,1),LLVBARS(L,BARSLAST(S)+1)+1),0.5),NODRAW;HH:CROSS( BACKSET(REFX(S,1),HHVBARS(H,BARSLAST(J)+1)+1),0.5),NODRAW;DRAWLINE1(HH,H,LL,L,0),COLORGREEN,LINETHICK2;DRAWLINE1(LL,L,HH,H,0),COLORRED,LINETHICK2;DRAWTEXT(HH&&H>REF(H,SUMBARS(HH,2)-1),H,'#39),COLORYELLOW,FONTSIZE20;DRAWTEXT(HH&&H<REF(H,SUMBARS(HH,2)-1),H,'#39),COLORGREEN,FONTSIZE20;DRAWTEXT(LL&&L>REF(L,SUMBARS(LL,2)-1),L,'#39),COLORYELLOW,FONTSIZE20,VALIGN0;DRAWTEXT(LL&&L<REF(L,SUMBARS(LL,2)-1),L,'#39),COLORGREEN,FONTSIZE20,VALIGN0; DRAWCOLORKLINE(BARSLAST(HH)>BARSLAST(LL),COLORMAGENTA,0);DRAWCOLORKLINE(BARSLAST(LL)>BARSLAST(HH),COLORGREEN,0);DRAWICON(HH,H,'CO11';DRAWICON(LL,L,'CO10',VALIGN0;
来源:程序化99
-
文华技术人员:
参考:
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。 DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均 MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线 J:CROSS(DIFF,DEA),NODRAW; S:CROSSDOWN(DIFF,DEA),NODRAW; LL:CROSS( BACKSET(REFX(J,1)||ISLASTBAR&&DIFF<DEA,LLVBARS(L,BARSLAST(S)+1)+1),0.5),NODRAW; HH:CROSS( BACKSET(REFX(S,1)||ISLASTBAR&&DIFF>DEA,HHVBARS(H,BARSLAST(J)+1)+1),0.5),NODRAW; DRAWLINE1(HH,H,LL,L,0),COLORGREEN,LINETHICK2; DRAWLINE1(LL,L,HH,H,0),COLORRED,LINETHICK2; DRAWTEXT(HH&&H>REF(H,SUMBARS(HH,2)-1),H,'#39),COLORYELLOW,FONTSIZE20; DRAWTEXT(HH&&H<REF(H,SUMBARS(HH,2)-1),H,'#39),COLORGREEN,FONTSIZE20; DRAWTEXT(LL&&L>REF(L,SUMBARS(LL,2)-1),L,'#39),COLORYELLOW,FONTSIZE20,VALIGN0; DRAWTEXT(LL&&L<REF(L,SUMBARS(LL,2)-1),L,'#39),COLORGREEN,FONTSIZE20,VALIGN0; DRAWCOLORKLINE(BARSLAST(HH)>BARSLAST(LL),COLORMAGENTA,0); DRAWCOLORKLINE(BARSLAST(LL)>BARSLAST(HH),COLORGREEN,0); DRAWICON(HH,H,'CO11'; DRAWICON(LL,L,'CO10',VALIGN0;
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容