您現(xiàn)在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內(nèi)容

麻煩老師看一下 [博易POBO]

咨詢內(nèi)容:

麻煩老師看一下

DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
//DRAWBAND(DEA1,DRAWNULL,DIFF1,RGB(250,0,0));
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORYELLOW;
DEA:=EMA(DIFF,9),COLORCYAN;
MACD:=2*(DIFF-DEA),COLORSTICK;
TR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
PDM:=SUM(IF(HD>0 AND HD>LD,HD,0),14);
MDM:=SUM(IF(LD>0 AND LD>HD,LD,0),14);
PDI:=PDM*100/TR1;
MDI:=MDM*100/TR1;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;//收盤價與N周期最低值做差,N周期最高值與N周期最低值做差,兩差之間做比值。
K:=SMA(RSV,3,1);//RSV的移動平均值
D:=SMA(K,3,1);//K的移動平均值
J:=3*K-2*D;
LC := REF(CLOSE,6);//前一周期收盤價
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;//當(dāng)根K線收盤價與前一周期收盤價做差,在該差值與0之間取最大值,做N1周期移動平均。收盤價與前一周期收盤價做差值,取該差值的N1周期移動平均值,兩平均值之間做比值。
RSI2:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
C4:=BARSLAST(REF(CROSS(MDI,PDI),1));
D4:=REF(C,C+1)<C AND REF(MDI,C4+1)>MDI AND CROSS(MDI,PDI);
A4:=BARSLAST(REF(CROSS(PDI,MDI),1));
B4:=REF(C,A4+1)>C AND REF(PDI,A4+1)<PDI AND CROSS(PDI,MDI);
MACD底背:IF(B1>0,1,0),COLORRED,NODRAW;
KDJ底背:IF(B2>0,1,0),COLORFF00FF,NODRAW;
RSI底背:IF(B3>0,1,0),COLORYELLOW,NODRAW;
DMI底背:IF(B4>0,1,0),COLORLIGHTRED,NODRAW;
MACD頂背:IF(D1>0,1,0),COLOR00FF00,NODRAW;
KDJ頂背:IF(D2>0,1,0),COLORFFCC66,NODRAW;
RSI頂背:IF(D3>0,1,0),COLORWHITE,NODRAW;
DMI頂背:IF(D4>0,1,0),COLORRED,NODRAW;

STICKLINE(B1>0,-0.1,0,2,0),COLORRED;
STICKLINE(B2>0,-0.1,-0.2,2,0),COLORFF00FF;
STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;
STICKLINE(B4>0,-0.1,-0.2,2,0),COLORLIGHTRED;
STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;
STICKLINE(D2>0,0.1,0.2,2,0),COLORFFCC66;
STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;
STICKLINE(D4>0,0.1,0.2,2,0),COLORRED;
?
?
?
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=CROSS(K,D);
S:=CROSSDOWN(K,D);
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA ?: =EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
金:=CROSS(DIFF,DEA);
死:=CROSSDOWN(DIFF,DEA);
DRAWCOLORKLINE(J&&金,COLORRED,0);
DRAWCOLORKLINE(S&&死,COLORGREEN,0);
?
麻煩老師講上邊兩個指標(biāo)改成博易的,謝謝

?

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

博易技術(shù)人員: DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
//DRAWBAND(DEA1,DRAWNULL,DIFF1,RGB(250,0,0));
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORYELLOW;
DEA:=EMA(DIFF,9),COLORCYAN;
MACD:=2*(DIFF-DEA),COLORSTICK;
TR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
PDM:=SUM(IF(HD>0 AND HD>LD,HD,0),14);
MDM:=SUM(IF(LD>0 AND LD>HD,LD,0),14);
PDI:=PDM*100/TR1;
MDI:=MDM*100/TR1;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;//收盤價與N周期最低值做差,N周期最高值與N周期最低值做差,兩差之間做比值。
K:=SMA(RSV,3,1);//RSV的移動平均值
D:=SMA(K,3,1);//K的移動平均值
J:=3*K-2*D;
LC := REF(CLOSE,6);//前一周期收盤價
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;//當(dāng)根K線收盤價與前一周期收盤價做差,在該差值與0之間取最大值,做N1周期移動平均。收盤價與前一周期收盤價做差值,取該差值的N1周期移動平均值,兩平均值之間做比值。
RSI2:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
C4:=BARSLAST(REF(CROSS(MDI,PDI),1));
D4:=REF(C,C+1)<C AND REF(MDI,C4+1)>MDI AND CROSS(MDI,PDI);
A4:=BARSLAST(REF(CROSS(PDI,MDI),1));
B4:=REF(C,A4+1)>C AND REF(PDI,A4+1)<PDI AND CROSS(PDI,MDI);
MACD底背:IF(B1>0,1,0),COLORRED,NODRAW;
KDJ底背:IF(B2>0,1,0),COLORFF00FF,NODRAW;
RSI底背:IF(B3>0,1,0),COLORYELLOW,NODRAW;
DMI底背:IF(B4>0,1,0),COLORRED,NODRAW;
MACD頂背:IF(D1>0,1,0),COLOR00FF00,NODRAW;
KDJ頂背:IF(D2>0,1,0),COLORFFCC66,NODRAW;
RSI頂背:IF(D3>0,1,0),COLORWHITE,NODRAW;
DMI頂背:IF(D4>0,1,0),COLORRED,NODRAW;
STICKLINE(B1>0,-0.1,0,2,0),COLORRED;
STICKLINE(B2>0,-0.1,-0.2,2,0),COLORFF00FF;
STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;
STICKLINE(B4>0,-0.1,-0.2,2,0),COLORRED;
STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;
STICKLINE(D2>0,0.1,0.2,2,0),COLORFFCC66;
STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;
STICKLINE(D4>0,0.1,0.2,2,0),COLORRED;
?
以上公式附圖保存顯示
?
?
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=CROSS(K,D);
S:=CROSS(D,K);
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA? :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
金:=CROSS(DIFF,DEA);
死:=CROSS(DEA,DIFF);
DRAWICON(J&&金,L,4);
DRAWICON(S&&死,H,5);
以上公式主圖保存顯示
?
? 來源 程序化久久網(wǎng)

 

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

可聯(lián)系技術(shù)人員 QQ: 262069696  點(diǎn)擊在線交流或微信號:cxh99cxh99  進(jìn)行 有償收費(fèi) 編寫!

怎么收費(fèi),代編流程等詳情請點(diǎn)擊閱讀!

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 日韩精品有码在线三上悠亚| 人妻无码一区二区三区AV| 亚洲精品国产福利片| 丁香六月激情综合| 男人一进一出桶女人视频| 国产精品视频区| 久久成人国产精品一区二区| 精品福利一区二区三区| 国模吧双双大尺度炮交gogo| 久久综合综合久久| 精品爆乳一区二区三区无码av| 国产精品久久久久久| 丰满岳乱妇在线观看中字无码| 男人j进女人p免费视频不要下载的| 国产小屁孩cao大人| 一级做受视频免费是看美女| 毛片视频网站在线观看| 国产在线高清理伦片a电影| 三级免费黄录像| 日韩精品免费一级视频| 亚洲欧美视频一区| 韩国毛片在线观看| 失禁h啪肉尿出来高h男男视频| 亚洲另类激情专区小说图片| 色与欲影视天天看综合网| 夜夜高潮夜夜爽夜夜爱爱一区| 五月天色婷婷丁香| 精品国产午夜福利在线观看| 国产精品无码av在线播放| 丰满人妻一区二区三区免费视频 | 色婷婷中文字幕| 天堂中文www资源在线| 九九久久久久午夜精选| 精品一区二区在线观看1080p| 国产真实交换多p免视频| 两个人一上一下剧烈运动| 欧美日韩一区二区在线视频 | 国产成人av一区二区三区在线观看 | 国产精品久久国产精麻豆99网站| 久久91这里精品国产2020| 果冻传媒mv在线观看入口免费|