[原創]麻煩老師幫忙添加布林帶,參數是(26,26,2) [文華財經]
-
咨詢內容:
?MA_P1_:=MA(CLOSE,5);MA_P2_:=MA(CLOSE,10);MA_P3_:=MA(CLOSE,20);MA_P4_:=MA(CLOSE,40);MA_P5_:=MA(CLOSE,60);Q:=(3*C+L+O+H)/6,LINETHICK2;W:(20*Q+19*REF(Q,1)+18*REF(Q,2)+17*REF(Q,3)+16*REF(Q,4)+15*REF(Q,5)+14*REF(Q,6)+13*REF(Q,7)+12*REF(Q,8)+11*REF(Q,9)+10*REF(Q,10)+9*REF(Q,11)+8*REF(Q,12)+7*REF(Q,13)+6*REF(Q,14)+5*REF(Q,15)+4*REF(Q,16)+3*REF(Q,17)+2*REF(Q,18)+REF(Q,20))/210,LINETHICK2;E:MA(W,8),LINETHICK2;SPJ:=C;II:=TIME0;MM:=BARSLAST(TIME0=54000);PP:=PERIOD;UU:=IF (PP=11,(MM+1),MM);ZSPJ:=REF(C,MM);Y:=SPJ-ZSPJ;DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);DEA? :=EMA(DIFF,9);MACD :=2*(DIFF-DEA), COLORSTICK;NN1:=MACD;MM1:=REF(MACD,1);MMM:=MM1-NN1;DRAWTEXT(CROSS(W-1.5,E) ,(MA_P1_-8),'',COLOR0000FF,FONTSIZE20;DRAWTEXT(CROSS(E,W+1.5),(MA_P1_+8),'',COLOR00FF00,FONTSIZE20;VALUEWHEN(DAYBARPOS=1,O),CIRCLEDOT,COLORRED;
?
?來源:程序化99
-
文華技術人員:
參考:
MID:MA(CLOSE,26); TMP2:=STD(CLOSE,26); TOP:MID+2*TMP2; BOTTOM:MID-2*TMP2; MA_P1_:=MA(CLOSE,5); MA_P2_:=MA(CLOSE,10); MA_P3_:=MA(CLOSE,20); MA_P4_:=MA(CLOSE,40); MA_P5_:=MA(CLOSE,60); Q:=(3*C+L+O+H)/6,LINETHICK2; W:(20*Q+19*REF(Q,1)+18*REF(Q,2)+17*REF(Q,3)+16*REF(Q,4)+15*REF(Q,5)+14*REF(Q,6) +13*REF(Q,7)+12*REF(Q,8)+11*REF(Q,9)+10*REF(Q,10)+9*REF(Q,11)+8*REF(Q,12) +7*REF(Q,13)+6*REF(Q,14)+5*REF(Q,15)+4*REF(Q,16)+3*REF(Q,17)+2*REF(Q,18)+ REF(Q,20))/210,LINETHICK2; E:MA(W,8),LINETHICK2; SPJ:=C; II:=TIME0; MM:=BARSLAST(TIME0=54000); PP:=PERIOD; UU:=IF (PP=11,(MM+1),MM); ZSPJ:=REF(C,MM); Y:=SPJ-ZSPJ; DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26); DEA ?:=EMA(DIFF,9); MACD :=2*(DIFF-DEA), COLORSTICK; NN1:=MACD; MM1:=REF(MACD,1); MMM:=MM1-NN1; DRAWTEXT(CROSS(W-1.5,E) ,(MA_P1_-8),'',COLOR0000FF,FONTSIZE20; DRAWTEXT(CROSS(E,W+1.5),(MA_P1_+8),'',COLOR00FF00,FONTSIZE20; VALUEWHEN(DAYBARPOS=1,O),CIRCLEDOT,COLORRED;?
?來源: www.tumamayizhan.com
-
文華客服:
?麻煩把布林帶3條線顏色全部改為金色或者紅色線,3條線再加粗一點點,謝謝
?
-
網友回復:
?參考:
MID:MA(CLOSE,26),COLORRED,LINETHICK3; TMP2:=STD(CLOSE,26); TOP:MID+2*TMP2,COLORRED,LINETHICK3; BOTTOM:MID-2*TMP2,COLORRED,LINETHICK3; MA_P1_:=MA(CLOSE,5); MA_P2_:=MA(CLOSE,10); MA_P3_:=MA(CLOSE,20); MA_P4_:=MA(CLOSE,40); MA_P5_:=MA(CLOSE,60); Q:=(3*C+L+O+H)/6,LINETHICK2; W:(20*Q+19*REF(Q,1)+18*REF(Q,2)+17*REF(Q,3)+16*REF(Q,4)+15*REF(Q,5)+14*REF(Q,6) +13*REF(Q,7)+12*REF(Q,8)+11*REF(Q,9)+10*REF(Q,10)+9*REF(Q,11)+8*REF(Q,12) +7*REF(Q,13)+6*REF(Q,14)+5*REF(Q,15)+4*REF(Q,16)+3*REF(Q,17)+2*REF(Q,18)+ REF(Q,20))/210,LINETHICK2; E:MA(W,8),LINETHICK2; SPJ:=C; II:=TIME0; MM:=BARSLAST(TIME0=54000); PP:=PERIOD; UU:=IF (PP=11,(MM+1),MM); ZSPJ:=REF(C,MM); Y:=SPJ-ZSPJ; DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26); DEA? :=EMA(DIFF,9); MACD :=2*(DIFF-DEA), COLORSTICK; NN1:=MACD; MM1:=REF(MACD,1); MMM:=MM1-NN1; DRAWTEXT(CROSS(W-1.5,E) ,(MA_P1_-8),'',COLOR0000FF,FONTSIZE20; DRAWTEXT(CROSS(E,W+1.5),(MA_P1_+8),'',COLOR00FF00,FONTSIZE20; VALUEWHEN(DAYBARPOS=1,O),CIRCLEDOT,COLORRED;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
相關文章
-
沒有相關內容