请老师帮助一下 [文华财经]
-
咨询内容:
老师新年好!春节愉快! 请老师为下列增加,当5日线向上拐头时发出声音提示V,当5日线向下拐头时发出声音W,M1是13线,M2是26线,N3是135线,N4是5线,N5是60线,N6是321线,谢老师
MA1:MA(CLOSE,M1),COLORRED,LINETHICK2;MA2:MA(CLOSE,M2),COLORYELLOW,LINETHICK2;MA3:MA(CLOSE,N3),COLORMAGENTA,LINETHICK1;MA4:MA(CLOSE,N4),COLORWHITE,LINETHICK1;MA5:MA(CLOSE,N5),COLORCYAN,LINETHICK1;MA6:MA(CLOSE,N6),COLORCYAN,LINETHICK2;DRAWTEXT(ISLASTBAR&&MA4>REF(MA4,1),MA4,'',COLORWHITE,FONTSIZE50,VALIGN0,ALIGN0;DRAWTEXT(ISLASTBAR&&MA4<=REF(MA4,1),MA4,'',COLORWHITE,FONTSIZE50,ALIGN0;S:30;N1:=BACKSET(ISLASTBAR,SUMBARS(CROSS(MA1,MA2),2));N2:=BACKSET(ISLASTBAR,SUMBARS(CROSSDOWN(MA1,MA2),2));DRAWTEXT(N1&&CROSS(MA1,MA2),MA1-S*MINPRICE,'',FONTSIZE20,COLORYELLOW;DRAWTEXT(N2&&CROSSDOWN(MA1,MA2),MA2+S*MINPRICE,'',FONTSIZE20,COLORYELLOW;CROSS(MA1,MA2),SOUND('1';CROSSDOWN(MA1,MA2),SOUND('1';
N:=5;MA13:=MA(C,13);DRAWNUMBER(CROSS(MA13>REF(MA13,1),0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(MA13>REF(MA13,1),0.5))+1),MA13-N*MINPRICE,1,0,COLORRED),FONTSIZE15,VALIGN0;CROSS(MA13>REF(MA13,1),0.5),SOUND('1';DRAWNUMBER(CROSS(MA13<REF(MA13,1),0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(MA13<REF(MA13,1),0.5))+1),MA13+N*MINPRICE,1,0,COLORGREEN),FONTSIZE15,VALIGN2;CROSS(MA13<REF(MA13,1),0.5),SOUND('1';COND1:=MA1>REF(MA1,1);COND2:=MA1<REF(MA1,1);
DRAWTEXT(ISLASTBAR&&MA1>REF(MA1,1),MA1,'',COLORRED,FONTSIZE50,VALIGN0,ALIGN0;DRAWTEXT(ISLASTBAR&&MA1<=REF(MA1,1),MA1,'',COLORRED,FONTSIZE50,ALIGN0;
DRAWTEXT(CROSS(MA4,MA1)&&BACKSET(ISLASTBAR,SUMBARS(CROSS(MA4,MA1),2)),MA4-S*MINPRICE,'',COLORRED,FONTSIZE20;DRAWTEXT(CROSSDOWN(MA4,MA1)&&BACKSET(ISLASTBAR,SUMBARS(CROSSDOWN(MA4,MA1),2)),MA4+S*MINPRICE,'',COLORRED,VALIGN0,FONTSIZE20;
CROSS(MA4,MA1),SOUND('1';CROSSDOWN(MA4,MA1),SOUND('1';
DRAWTEXT(CROSS(MA4,MA6)&&BACKSET(ISLASTBAR,SUMBARS(CROSS(MA4,MA6),2)),MA4-S*MINPRICE,骈#39),COLORRED,FONTSIZE25;DRAWTEXT(CROSSDOWN(MA4,MA6)&&BACKSET(ISLASTBAR,SUMBARS(CROSSDOWN(MA4,MA6),2)),MA4+S*MINPRICE,骈#39),COLORGREEN,VALIGN0,FONTSIZE25;
CROSS(MA4,MA6),SOUND('1';CROSSDOWN(MA4,MA6),SOUND('1';
DRAWTEXT(CROSS(MA1,MA6)&&BACKSET(ISLASTBAR,SUMBARS(CROSS(MA1,MA6),2)),MA4-S*MINPRICE,駀#39),COLORRED,FONTSIZE25;DRAWTEXT(CROSSDOWN(MA1,MA6)&&BACKSET(ISLASTBAR,SUMBARS(CROSSDOWN(MA1,MA6),2)),MA4+S*MINPRICE,駀#39),COLORGREEN,VALIGN0,FONTSIZE25;
CROSS(MA1,MA6),SOUND('1';
CROSSDOWN(MA1,MA6),SOUND('1';来源:程序化99
-
文华技术人员:
声音只支持A~J
添加如下代码,参考:
MA4>REF(MA4,1),SOUND('A'); MA4<REF(MA4,1),SOUND('B');
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容