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

請老師幫忙修改 [博易POBO]

咨詢內容:

請老師幫忙修改


?DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
HH:=REF(HHV(H,N1),N2);//上次MACD紅柱期間合約最大值
HH2:=REF(REF(HH,1),N2);//上上次MACD紅柱期間合約最大值
MHD:=VALUEWHEN(SC,HHV(DIFF,N1));//上次MACD紅柱期間DIFF最大值
MHD2:=VALUEWHEN(SC,REF(MHD,1));//上上次MACD紅柱期間DIFF最大值

LL:=REF(LLV(L,N2),N1);
LL2:=REF(REF(LL,1),N1);
MLD:=VALUEWHEN(JC,LLV(DIFF,N2));
MLD2:=VALUEWHEN(JC,REF(MLD,1));
A:MACD<0&&HH>HH2&&MHD<MHD2;//頂背離
B:MACD>0&&LL<LL2&&MLD>MLD2;//底背離
A1:=BACKSET(CROSS(A,0.5),REF(HHVBARS(DIFF,N1),1)+1+1);
A2:=BACKSET(CROSS(A,0.5),REF(HHVBARS(DIFF,N1),SUMBARS(SC,2))+SUMBARS(SC,2)+1);
B1:=BACKSET(CROSS(B,0.5),REF(LLVBARS(DIFF,N2),1)+1+1);
B2:=BACKSET(CROSS(B,0.5),REF(LLVBARS(DIFF,N2),SUMBARS(JC,2))+SUMBARS(JC,2)+1);
DRAWLINE1(CROSS(A2,0.5),DIFF,CROSS(A1,0.5),DIFF,0),COLORRED,LINETHICK2;
DRAWLINE1(CROSS(B2,0.5),DIFF,CROSS(B1,0.5),DIFF,0),COLORGREEN,LINETHICK2;

STICKLINE(MACD>=0,MACD,0,4,1),COLORBLUE;
STICKLINE(MACD<0,MACD,0,4,0),COLORCYAN;
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,4,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,3.3,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,2.2,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,1.65,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,1.1,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,0.55,0?),COLORBLUE;
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,4?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,3.3?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,2.2,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,1.65?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,1.1?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,0.55?,0?),COLORRED;
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,4,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,3.3?,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,2.2,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,1.65,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,1.1,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,0.55?,0?),COLORMAGENTA;
STICKLINE(MACD<=REF(MACD,1)&&MACD<0,0,MACD,4,0?);

?

?

?來源:程序化99網( www.tumamayizhan.com )

博易技術人員: 老師辛苦修改一下
?DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
HH:=REF(HHV(H,N1),N2);//上次MACD紅柱期間合約最大值
HH2:=REF(REF(HH,1),N2);//上上次MACD紅柱期間合約最大值
MHD:=VALUEWHEN(SC,HHV(DIFF,N1));//上次MACD紅柱期間DIFF最大值
MHD2:=VALUEWHEN(SC,REF(MHD,1));//上上次MACD紅柱期間DIFF最大值

LL:=REF(LLV(L,N2),N1);
LL2:=REF(REF(LL,1),N1);
MLD:=VALUEWHEN(JC,LLV(DIFF,N2));
MLD2:=VALUEWHEN(JC,REF(MLD,1));
A:MACD<0&&HH>HH2&&MHD<MHD2;//頂背離
B:MACD>0&&LL<LL2&&MLD>MLD2;//底背離
A1:=BACKSET(CROSS(A,0.5),REF(HHVBARS(DIFF,N1),1)+1+1);
A2:=BACKSET(CROSS(A,0.5),REF(HHVBARS(DIFF,N1),SUMBARS(SC,2))+SUMBARS(SC,2)+1);
B1:=BACKSET(CROSS(B,0.5),REF(LLVBARS(DIFF,N2),1)+1+1);
B2:=BACKSET(CROSS(B,0.5),REF(LLVBARS(DIFF,N2),SUMBARS(JC,2))+SUMBARS(JC,2)+1);
DRAWLINE1(CROSS(A2,0.5),DIFF,CROSS(A1,0.5),DIFF,0),COLORRED,LINETHICK2;
DRAWLINE1(CROSS(B2,0.5),DIFF,CROSS(B1,0.5),DIFF,0),COLORGREEN,LINETHICK2;

STICKLINE(MACD>=0,MACD,0,4,1),COLORBLUE;
STICKLINE(MACD<0,MACD,0,4,0),COLORCYAN;
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,4,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,3.3,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,2.2,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,1.65,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,1.1,0?);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,0.55,0?),COLORBLUE;
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,4?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,3.3?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,2.2,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,1.65?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,1.1?,0?);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,0.55?,0?),COLORRED;
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,4,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,3.3?,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,2.2,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,1.65,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,1.1,0?);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,0.55?,0?),COLORMAGENTA;
STICKLINE(MACD<=REF(MACD,1)&&MACD<0,0,MACD,4,0?);
? DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSS(DEA,DIFF);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
HH:=REF(HHV(H,N1),N2);//上次MACD紅柱期間合約最大值
HH2:=REF(REF(HH,1),N2);//上上次MACD紅柱期間合約最大值
MHD:=VALUEWHEN(SC,HHV(DIFF,N1));//上次MACD紅柱期間DIFF最大值
MHD2:=VALUEWHEN(SC,REF(MHD,1));//上上次MACD紅柱期間DIFF最大值

LL:=REF(LLV(L,N2),N1);
LL2:=REF(REF(LL,1),N1);
MLD:=VALUEWHEN(JC,LLV(DIFF,N2));
MLD2:=VALUEWHEN(JC,REF(MLD,1));
A:MACD<0&&HH>HH2&&MHD<MHD2;//頂背離
B:MACD>0&&LL<LL2&&MLD>MLD2;//底背離
A1:=BACKSET(CROSS(A,0.5),REF(HHVBARS(DIFF,N1),1)+1+1);
A2:=BACKSET(CROSS(A,0.5),REF(HHVBARS(DIFF,N1),SUMBARS(SC,2))+SUMBARS(SC,2)+1);
B1:=BACKSET(CROSS(B,0.5),REF(LLVBARS(DIFF,N2),1)+1+1);
B2:=BACKSET(CROSS(B,0.5),REF(LLVBARS(DIFF,N2),SUMBARS(JC,2))+SUMBARS(JC,2)+1);
DRAWLINE(CROSS(A2,0.5),DIFF,CROSS(A1,0.5),DIFF,0),COLORRED,LINETHICK2;
DRAWLINE(CROSS(B2,0.5),DIFF,CROSS(B1,0.5),DIFF,0),COLORGREEN,LINETHICK2;

STICKLINE(MACD>=0,MACD,0,4,1),COLORBLUE;
STICKLINE(MACD<0,MACD,0,4,0),COLORCYAN;
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,4,0);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,3.3,0);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,2.2,0);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,1.65,0);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,1.1,0);
STICKLINE(MACD<REF(MACD,1)&&MACD>0,0,MACD,0.55,0),COLORBLUE;
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,4,0);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,3.3,0);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,2.2,0);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,1.65,0);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,1.1,0);
STICKLINE(MACD>=REF(MACD,1)&&MACD>0,0,MACD,0.55,0),COLORRED;
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,4,0);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,3.3,0);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,2.2,0);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,1.65,0);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,1.1,0);
STICKLINE(MACD>REF(MACD,1)&&MACD<0,0,MACD,0.55,0),COLORMAGENTA;
STICKLINE(MACD<=REF(MACD,1)&&MACD<0,0,MACD,4,0); 來源 程序化久久網

 

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

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

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 女人18毛片水真多国产| 中文无码AV一区二区三区| 精品久久久久久久久中文字幕| 国产真实乱16部种子| xxxxbbbb国产精品| 蜜桃成熟时无删减手机在线观看 | 亚洲欧美日韩成人网| 舌头伸进去里面吃小豆豆| 少妇精品久久久一区二区三区 | 嘟嘟嘟www在线观看免费高清| xxxxx日本人| 天天做天天爱夜夜爽毛片毛片 | 欧美亚洲国产激情一区二区| 免费高清资源黄网站在线观看| 高潮抽搐潮喷毛片在线播放 | 久久久久无码精品国产| 欧美天堂在线观看| 免费无码AV一区二区| 高清有码国产一区二区| 国产精品美女久久久浪潮av| 一区二区在线视频观看| 日本成人免费网站| 亚洲人成在线观看| 激情综合网五月| 另类人妖交友网站| 韩国福利一区二区美女视频| 国产精品欧美在线不卡| japanese色国产在线看免费| 扒开双腿猛进入女人的视频| 么公的又大又深又硬想要| 欧美牲交VIDEOSSEXESO欧美| 免费福利在线播放| 老子影院午夜伦不卡| 天天干天天爽天天射| 久久99中文字幕久久| 最近免费最新高清中文字幕韩国| 亚洲熟女综合一区二区三区 | 久久国产精品无码HDAV| 欧美多人性受xxxx喷水| 亚洲综合欧美色五月俺也去| 精品国产呦系列在线看|