請老師幫助一下 [文華財經(jīng)]
-
咨詢內(nèi)容:
? ?老師新年好!春節(jié)愉快! ?請老師為下列增加,當(dāng)5日線向上拐頭時發(fā)出聲音提示V,當(dāng)5日線向下拐頭時發(fā)出聲音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
-
文華技術(shù)人員:
?聲音只支持A~J
添加如下代碼,參考:
MA4>REF(MA4,1),SOUND('A'); MA4<REF(MA4,1),SOUND('B');? ?
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容