大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

您現在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內容

麻煩老師給改下指標,謝謝 [博易POBO]

咨詢內容:

麻煩老師給改下指標,謝謝

把黃色線改到背景顏色兩邊,短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
B:=(短高H+短低L)/2;
D:=MA(B,10);
D14:=MA(B,14),COLORRED,LINETHICK2;
D21:=MA(B,21),COLORRED,LINETHICK2;
A1:=MA((3*C+L+O+H)/6,28);
B1:=(20*A1+19*REF(A1,1)+18*REF(A1,2)+17*REF(A1,3)+16*REF(A1,4)+15*REF(A1,5)+14*REF(A1,6)
+13*REF(A1,7)+12*REF(A1,8)+11*REF(A1,9)+10*REF(A1,10)+9*REF(A1,11)+8*REF(A1,12)
+7*REF(A1,13)+6*REF(A1,14)+5*REF(A1,15)+4*REF(A1,16)+3*REF(A1,17)+2*REF(A1,18)+
REF(A1,12))/210,COLORGREEN,LINETHICK1;
D1:=MA(B1,14),COLORGREEN,LINETHICK2;
D90H:=EMA(短高H,90),COLORRED,LINETHICK1;
D90L:=EMA(短低L,90),COLORRED,LINETHICK1;
D90差:=D90H-D90L;
D90頂:=D90H+D90差*2,COLORRED,LINETHICK1;
D90底:=D90L-D90差*2,COLORRED,LINETHICK1;
D90HH:=D90H-D90差*0.1,COLORRED,LINETHICK1;
D90LL:=D90L+D90差*0.1,COLORRED,LINETHICK1;
高0:=(MA(MA(H,30),30)-MA(MA(L,30),30))*1+MA(MA(H,30),30);
低0:=MA(MA(L,30),30)-(MA(MA(H,30),30)-MA(MA(L,30),30))*1;
多頭定位:=低0>=D90底 AND 高0>=D90頂;
空頭定位:=高0<=D90頂 AND 低0<=D90底;
震蕩定位:=低0>=D90底 AND 高0<=D90頂;
波段頂00:=(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6+MA(MA(H,60),60);
波段底00:=MA(MA(L,60),60)-(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6;

STICKLINE(1=1,D90HH,D90LL,5,0),COLORGRAY;
做空:(MA(MA(H,30),30)-MA(MA(L,30),30))*1+MA(MA(H,30),30),LINETHICK2,COLORWHITE;
做多:MA(MA(L,30),30)-(MA(MA(H,30),30)-MA(MA(L,30),30))*1,LINETHICK2,COLORWHITE;
波段頂:(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6+MA(MA(H,60),60),LINETHICK2,COLORYELLOW;
波段底:MA(MA(L,60),60)-(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6,LINETHICK2,COLORYELLOW;
B0:=(短高H+短低L)/2;
D0:=MA(B0,10);
多空中線:=(B0+D0)/2,COLORYELLOW,LINETHICK2;
布林線頂1:EMA(多空中線,10)+5*STD(EMA(多空中線,10),10),COLORWHITE;
布林線底1:EMA(多空中線,10)-5*STD(EMA(多空中線,10),10),COLORWHITE;
DRAWTEXT(ISLASTBAR,做空,'空'),COLORGREEN;
DRAWTEXT(ISLASTBAR,做多,'多'),COLORRED;
DRAWTEXT(ISLASTBAR,波段頂,'頂'),COLORGREEN;
DRAWTEXT(ISLASTBAR,波段底,'底'),COLORRED;
MACD價格:=EMA(CLOSE,3) - EMA(CLOSE,9);
DEA33:=EMA((EMA(MACD價格,3) - EMA(MACD價格,9)),9),COLORWHITE,LINETHICK0;
DEA333:=REF(DEA33,1),COLORWHITE,LINETHICK0;
STICKLINE(DEA333<=DEA33,LOW,HIGH,0,0),COLORRED;
STICKLINE(DEA333<=DEA33,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(DEA333>=DEA33,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(DEA333>=DEA33,CLOSE,OPEN,3,1),COLORGREEN;
CCI3:=((H+L+C)/3-MA((H+L+C)/3,3))/(0.015*AVEDEV((H+L+C)/3,3));
STICKLINE(L<做多 AND CROSS(CCI3,-50) AND REF(CCI3,1)<0,LOW,HIGH,0,0),COLORMAGENTA;


AAA:=DATACOUNT-BARPOS>25/2;
AAA1:=DATACOUNT-BARPOS>30;
CCC:=DATACOUNT-BARPOS-1;
XH25:=IF(AAA,REFX(MA(H,25),25/2),REFX(MA(H,25),CCC));
XHH25:=IF(AAA,REFX(XH25,25/2),REFX(MA(XH25,25),CCC));
XL25:IF(AAA,REFX(MA(L,25),25/2),REFX(MA(L,25),CCC));
XLL25:=IF(AAA,REFX(XL25,25/2),REFX(MA(XL25,25),CCC));
//-----轉換XMA(X,N)結束---------------------
//XMA(X,N)=(SUM(X,N-1)+MA(X,N-1))/N
//XMA(X,N)=REFX1(MA(X,N),N/2);
//(SUM(H,60-1)+MA(H,60-1))/60;
XMAH60:=IF(AAA1,REFX(MA(H,60),60/2),REFX(MA(H,60),CCC));
//(SUM(L,60-1)+MA(L,60-1))/60;
XMAL60:=IF(AAA1,REFX(MA(L,60),60/2),REFX(MA(L,60),CCC));
//(SUM(XMAH60,60-1)+MA(XMAH60,60-1))/60;
XMAHH60:=IF(AAA1,REFX(MA(XMAH60,60),60/2),REFX(MA(XMAH60,60),CCC));
//(SUM(XMAL60,60-1)+MA(XMAL60,60-1))/60;
XMALL60:=IF(AAA1,REFX(MA(XMAL60,60),60/2),REFX(MA(XMAL60,60),CCC));
波段頂0:=(XMAHH60-XMALL60)*2.6+XMAHH60;
波段底0:=XMALL60-(XMAHH60-XMALL60)*2.6;
//波段頂00:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.6+XMA(XMA(H,60),60);
//波段底00:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.6;
STICKLINE(多頭定位=1,波段頂0,波段底0,15,0),COLOR000066;
STICKLINE(空頭定位=1,波段頂0,波段底0,15,0),COLOR003300;
STICKLINE(震蕩定位=1,波段頂0,波段底0,15,0),COLOR555555;



?

?來源:程序化99網( m.weiqiv.net.cn )

博易技術人員: 短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
B:=(短高H+短低L)/2;
D:=MA(B,10);
D14:=MA(B,14),COLORRED,LINETHICK2;
D21:=MA(B,21),COLORRED,LINETHICK2;
A1:=MA((3*C+L+O+H)/6,28);
B1:=(20*A1+19*REF(A1,1)+18*REF(A1,2)+17*REF(A1,3)+16*REF(A1,4)+15*REF(A1,5)+14*REF(A1,6)
+13*REF(A1,7)+12*REF(A1,8)+11*REF(A1,9)+10*REF(A1,10)+9*REF(A1,11)+8*REF(A1,12)
+7*REF(A1,13)+6*REF(A1,14)+5*REF(A1,15)+4*REF(A1,16)+3*REF(A1,17)+2*REF(A1,18)+
REF(A1,12))/210,COLORGREEN,LINETHICK1;
D1:=MA(B1,14),COLORGREEN,LINETHICK2;
D90H:=EMA(短高H,90),COLORRED,LINETHICK1;
D90L:=EMA(短低L,90),COLORRED,LINETHICK1;
D90差:=D90H-D90L;
D90頂:=D90H+D90差*2,COLORRED,LINETHICK1;
D90底:=D90L-D90差*2,COLORRED,LINETHICK1;
D90HH:=D90H-D90差*0.1,COLORRED,LINETHICK1;
D90LL:=D90L+D90差*0.1,COLORRED,LINETHICK1;
高0:=(MA(MA(H,30),30)-MA(MA(L,30),30))*1+MA(MA(H,30),30);
低0:=MA(MA(L,30),30)-(MA(MA(H,30),30)-MA(MA(L,30),30))*1;
多頭定位:=低0>=D90底 AND 高0>=D90頂;
空頭定位:=高0<=D90頂 AND 低0<=D90底;
震蕩定位:=低0>=D90底 AND 高0<=D90頂;
波段頂00:=(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6+MA(MA(H,60),60);
波段底00:=MA(MA(L,60),60)-(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6;

AAA:=DATACOUNT-BARPOS>25/2;
AAA1:=DATACOUNT-BARPOS>30;
CCC:=DATACOUNT-BARPOS-1;
XH25:=IF(AAA,REFX(MA(H,25),25/2),REFX(MA(H,25),CCC));
XHH25:=IF(AAA,REFX(XH25,25/2),REFX(MA(XH25,25),CCC));
XL25:IF(AAA,REFX(MA(L,25),25/2),REFX(MA(L,25),CCC));
XLL25:=IF(AAA,REFX(XL25,25/2),REFX(MA(XL25,25),CCC));
//-----轉換XMA(X,N)結束---------------------
//XMA(X,N)=(SUM(X,N-1)+MA(X,N-1))/N
//XMA(X,N)=REFX1(MA(X,N),N/2);
//(SUM(H,60-1)+MA(H,60-1))/60;
XMAH60:=IF(AAA1,REFX(MA(H,60),60/2),REFX(MA(H,60),CCC));
//(SUM(L,60-1)+MA(L,60-1))/60;
XMAL60:=IF(AAA1,REFX(MA(L,60),60/2),REFX(MA(L,60),CCC));
//(SUM(XMAH60,60-1)+MA(XMAH60,60-1))/60;
XMAHH60:=IF(AAA1,REFX(MA(XMAH60,60),60/2),REFX(MA(XMAH60,60),CCC));
//(SUM(XMAL60,60-1)+MA(XMAL60,60-1))/60;
XMALL60:=IF(AAA1,REFX(MA(XMAL60,60),60/2),REFX(MA(XMAL60,60),CCC));
波段頂0:=(XMAHH60-XMALL60)*2.6+XMAHH60;
波段底0:=XMALL60-(XMAHH60-XMALL60)*2.6;
//波段頂00:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.6+XMA(XMA(H,60),60);
//波段底00:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.6;
STICKLINE(多頭定位=1,波段頂0,波段底0,15,0),COLOR000066;
STICKLINE(空頭定位=1,波段頂0,波段底0,15,0),COLOR003300;
STICKLINE(震蕩定位=1,波段頂0,波段底0,15,0),COLOR555555;
STICKLINE(1=1,D90HH,D90LL,5,0),COLORGRAY;
做空:(MA(MA(H,30),30)-MA(MA(L,30),30))*1+MA(MA(H,30),30),LINETHICK2,COLORWHITE;
做多:MA(MA(L,30),30)-(MA(MA(H,30),30)-MA(MA(L,30),30))*1,LINETHICK2,COLORWHITE;
波段頂:(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6+MA(MA(H,60),60),LINETHICK2,COLORYELLOW;
波段底:MA(MA(L,60),60)-(MA(MA(H,60),60)-MA(MA(L,60),60))*2.6,LINETHICK2,COLORYELLOW;
B0:=(短高H+短低L)/2;
D0:=MA(B0,10);
多空中線:=(B0+D0)/2,COLORYELLOW,LINETHICK2;

DRAWTEXT(ISLASTBAR,做空,'空'),COLORGREEN;
DRAWTEXT(ISLASTBAR,做多,'多'),COLORRED;
DRAWTEXT(ISLASTBAR,波段頂,'頂'),COLORGREEN;
DRAWTEXT(ISLASTBAR,波段底,'底'),COLORRED;
MACD價格:=EMA(CLOSE,3) - EMA(CLOSE,9);
DEA33:=EMA((EMA(MACD價格,3) - EMA(MACD價格,9)),9),COLORWHITE,LINETHICK0;
DEA333:=REF(DEA33,1),COLORWHITE,LINETHICK0;
STICKLINE(DEA333<=DEA33,LOW,HIGH,0,0),COLORRED;
STICKLINE(DEA333<=DEA33,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(DEA333>=DEA33,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(DEA333>=DEA33,CLOSE,OPEN,3,1),COLORGREEN;
CCI3:=((H+L+C)/3-MA((H+L+C)/3,3))/(0.015*AVEDEV((H+L+C)/3,3));
STICKLINE(L<做多 AND CROSS(CCI3,-50) AND REF(CCI3,1)<0,LOW,HIGH,0,0),COLORMAGENTA;


布林線頂1:EMA(多空中線,10)+5*STD(EMA(多空中線,10),10),COLORWHITE;
布林線底1:EMA(多空中線,10)-5*STD(EMA(多空中線,10),10),COLORWHITE; 來源 程序化久久網

 

有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友

可聯系技術人員 QQ: 262069696  點擊在線交流或微信號:cxh99cxh99  進行 有償收費 編寫!

怎么收費,代編流程等詳情請點擊閱讀!

(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 国产人伦视频在线观看 | 九九re| 亚洲欧美国产日产综合不卡 | 国产免费久久精品 | 天天搞夜夜操 | 夜夜橹 | 中文字幕在线播 | 免费看搡女人的视频 | 欧美精品成人久久网站 | 91精品免费国产高清在线 | 精品亚洲国产国拍 | 四虎精品在线 | 精品新一区二区三区四区 | 欧美中文字幕视频 | 91日韩视频| 免费观看午夜在线欧差毛片 | 欧美日韩国产一区二区三区播放 | 青青草a免费线观a | 91精品久久久久久久久久小网站 | 高清不卡视频 | 久久成人午夜 | 亚洲综合极品香蕉久久网 | 日韩欧美亚洲综合久久影院d3 | 精品在线免费播放 | 91综合久久婷婷久久 | 亚洲视频国产 | 欧洲免费无线码二区5 | 99久久精品免费看国产四区 | 夜色视频一区二区三区 | 久久99中文字幕久久 | 国产波波社区精品视频 | 久久久综合香蕉尹人综合网 | 久久精品伦理 | 国产成社区在线视频观看 | 网友自拍视频悠悠在线 | 久操视频免费观看 | 视频一区免费 | 在线观看黄色免费视频 | 国产成人三级 | 国产精品a人片在线观看 | 久久综合狠狠综合久久97色 |