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

麻煩老師改成博易大師指標,感謝老師 [博易POBO]

咨詢內容:

麻煩老師改成博易大師指標,感謝老師

input:M(14,3,40),N(6,3,30);
TYP := (HIGH + LOW + CLOSE)/3;
cci:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),STICK,colorgreen;
Wcci:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),colorblack,LINETHICK2;
DRAWICON((ABS(CCI) >= 200),CCI,12);
tcci:(TYP-MA(TYP,n))/(0.015*AVEDEV(TYP,n)),colorred;
EMA34:=EMA(CLOSE,34);
PARTLINE((CLOSE >= EMA34),100),colorFF00;
PARTLINE((CLOSE >=EMA34 ),(0 - 100)),colorFF00;
PARTLINE((CLOSE < EMA34),100),colorFF;
PARTLINE((CLOSE < EMA34),(0 - 100)),colorFF;
前差值:abs(ref(cci,1)-ref(cci,2)),LINETHICK0;
差值:ABS(ref(CCI,1)-CCI),LINETHICK0;
200,LINEDOT,colorFFFF00;
-200,LINEDOT,colorFFFF00;
100,LINEDOT,colorFFFF00;
-100,LINEDOT,colorFFFF00;
PI:=ATAN(1)*4;
PERIODS:=30;
HIGHHIGH:=HHV(HIGH,PERIODS);
LOWLOW:=LLV(LOW,PERIODS);
RANGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;
EMA34:=EMA(CLOSE,34);
X1_EMA34:=0;
X2_EMA34:=1;
Y1_EMA34:=0;
LSMA25:=FORCAST(CLOSE,25);
X1_LSMA25:=0;
X2_LSMA25:=1;
Y1_LSMA25:=0;
ARRAY:=CCI;
HIGHBARS:=BARSLAST(NOT(ARRAY>0));
LOWBARS:=BARSLAST(NOT(ARRAY<0));
UPCONDITION:=BARSLAST(HIGHBARS>=6 AND SUM(ARRAY>100,5)>0);
DNCONDITION:=BARSLAST(LOWBARS>=6 AND SUM(ARRAY<-100,5)>0);
UPTREND:=ARRAY>0 AND UPCONDITION<DNCONDITION;
DNTREND:=ARRAY<0 AND UPCONDITION>DNCONDITION;
TRTREND:=HIGHBARS>=5 AND NOT(UPTREND) OR LOWBARS>=5 AND NOT(DNTREND);
STICKLINE(UPTREND,0,CCI,3,0),colorFF0000;
STICKLINE(DNTREND,0,CCI,3,0),colorFF;
STICKLINE(TRTREND,0,CCI,3,0),colorFFFF;
STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,3,0),color808080;
PARTLINE(CLOSE>LSMA25,0),LINETHICK3,colorFF00;
PARTLINE(CLOSE<LSMA25,0),LINETHICK3,colorFF;
PARTLINE(CLOSE=LSMA25,0),LINETHICK3,colorFFFF;
DRAWICON(ABS(CCI)>=200,CCI,12);
TM:=IF(DATATYPE=1,1,IF(DATATYPE=2,5,IF(DATATYPE=3,15,IF(DATATYPE=4,30,IF(DATATYPE=5,60,240)))));
ALERT1:=IF(DATATYPE=1,10,IF(DATATYPE=2,34,IF(DATATYPE=3,100,IF(DATATYPE=4,180,IF(DATATYPE=5,300,600)))));
TIMEFRAME:=TM;
ALERT:=ALERT1;
STIME:=TIMETOT0(CURRENTTIME);
SSTIME:=TIMEFRAME*60-MOD(STIME,TIMEFRAME*60);
SSTEP:=300/TIMEFRAME/60;
STICKLINE(ISLASTBAR,0,300,6,1),SHIFT2,color10000;
STICKLINE(ISLASTBAR AND SSTIME>ALERT,300,SSTIME*SSTEP,6,0),SHIFT2,colorFFFF00;
STICKLINE(ISLASTBAR AND SSTIME<ALERT,300,SSTIME*SSTEP,6,0),SHIFT2,colorFF;
DRAWNUMBER(ISLASTBAR,300,TIMEFRAME*60,0),SHIFT3;
DRAWNUMBER(ISLASTBAR,SSTIME*SSTEP,SSTIME,0),SHIFT3;
DRAWNUMBER(ISLASTBAR,ALERT*SSTEP,ALERT,0),SHIFT3;
STICKLINE(ISLASTBAR,0,0,6,1),SHIFT6,color10000;
DRAWNUMBER(ISLASTBAR,-20,-REF(CCI,1)+CCI,3),SHIFT3;

?

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

博易技術人員: M:=14;
N:=6;
TYP := (HIGH + LOW + CLOSE)/3;
CCI:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),STICK,COLORGREEN;
WCCI:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORBLACK,LINETHICK2;
DRAWICON((ABS(CCI) >= 200),CCI,12);
TCCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORRED;
EMA34:=EMA(CLOSE,34);
PARTLINE((CLOSE >= EMA34),100),COLORRED;
PARTLINE((CLOSE >=EMA34 ),(0 - 100)),COLORRED;
PARTLINE((CLOSE < EMA34),100),COLORGREEN;
PARTLINE((CLOSE < EMA34),(0 - 100)),COLORGREEN;
前差值:ABS(REF(CCI,1)-REF(CCI,2)),LINETHICK0;
差值:ABS(REF(CCI,1)-CCI),LINETHICK0;
200,POINTDOT,COLORFFFF00;
-200,POINTDOT,COLORFFFF00;
100,POINTDOT,COLORFFFF00;
-100,POINTDOT,COLORFFFF00;
PI:=ATAN(1)*4;
PERIODS:=30;
HIGHHIGH:=HHV(HIGH,PERIODS);
LOWLOW:=LLV(LOW,PERIODS);
RANGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;
EMA34:=EMA(CLOSE,34);
X1_EMA34:=0;
X2_EMA34:=1;
Y1_EMA34:=0;
LSMA25:=FORCAST(CLOSE,25);
X1_LSMA25:=0;
X2_LSMA25:=1;
Y1_LSMA25:=0;
ARRAY1:=CCI;
HIGHBARS:=BARSLAST(NOT(ARRAY1>0));
LOWBARS:=BARSLAST(NOT(ARRAY1<0));
UPCONDITION:=BARSLAST(HIGHBARS>=6 AND SUM(ARRAY1>100,5)>0);
DNCONDITION:=BARSLAST(LOWBARS>=6 AND SUM(ARRAY1<-100,5)>0);
UPTREND:=ARRAY1>0 AND UPCONDITION<DNCONDITION;
DNTREND:=ARRAY1<0 AND UPCONDITION>DNCONDITION;
TRTREND:=HIGHBARS>=5 AND NOT(UPTREND) OR LOWBARS>=5 AND NOT(DNTREND);
STICKLINE(UPTREND,0,CCI,3,0),COLORFF0000;
STICKLINE(DNTREND,0,CCI,3,0),COLORGREEN;
STICKLINE(TRTREND,0,CCI,3,0),COLORYELLOW;
STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,3,0),COLOR808080;
PARTLINE(CLOSE>LSMA25,0),LINETHICK3,COLORRED;
PARTLINE(CLOSE<LSMA25,0),LINETHICK3,COLORGREEN;
PARTLINE(CLOSE=LSMA25,0),LINETHICK3,COLORYELLOW;
DRAWICON(ABS(CCI)>=200,CCI,12);
TM:=IF(DATAPERIOD=1,1,IF(DATAPERIOD=2,5,IF(DATAPERIOD=3,15,IF(DATAPERIOD=4,30,IF(DATAPERIOD=5,60,240)))));
ALERT1:=IF(DATAPERIOD=1,10,IF(DATAPERIOD=2,34,IF(DATAPERIOD=3,100,IF(DATAPERIOD=4,180,IF(DATAPERIOD=5,300,600)))));
TIMEFRAME:=TM;
ALERT:=ALERT1;
STIME:=TIMETOT0(CURRENTTIME);
SSTIME:=TIMEFRAME*60-MOD(STIME,TIMEFRAME*60);
SSTEP:=300/TIMEFRAME/60;
STICKLINE(ISLASTBAR,0,300,6,1),COLORBLUE;
STICKLINE(ISLASTBAR AND SSTIME>ALERT,300,SSTIME*SSTEP,6,0),COLORFFFF00;
STICKLINE(ISLASTBAR AND SSTIME<ALERT,300,SSTIME*SSTEP,6,0),COLORGREEN;
DRAWNUMBER(ISLASTBAR,300,TIMEFRAME*60,0);
DRAWNUMBER(ISLASTBAR,SSTIME*SSTEP,SSTIME,0);
DRAWNUMBER(ISLASTBAR,ALERT*SSTEP,ALERT,0);
STICKLINE(ISLASTBAR,0,0,6,1),COLORBLUE;
DRAWNUMBER(ISLASTBAR,-20,-REF(CCI,1)+CCI,3); 來源 程序化久久網

 

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

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

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 999久久久无码国产精品| 国产成人AV一区二区三区无码| 久久久久综合国产| 欧美黑人疯狂性受xxxxx喷水 | 国产精品美女一区二区视频| 中文字幕人妻无码一夲道| 最近在线观看视频2019| 人妻有码中文字幕| 老师让我她我爽了好久网站| 国产欧美久久久精品影院| 久久午夜福利无码1000合集| 欧美黑人又粗又大久久久| 友田真希息与子中文字幕| 国产乱码精品一区二区三区中 | 亚洲永久中文字幕在线| 精品国偷自产在线| 国产另ts另类人妖| 在线观看www日本免费网站| 奇米精品视频一区二区三区| 中文字幕资源在线| 明星女友开挂吧电视剧在线观看| 亚洲精品亚洲人成人网| 精品国产品香蕉在线观看75| 国产免费资源高清小视频在线观看| 2022最新国产在线| 天天操天天爽天天射| 中国明星16xxxxhd| 日本影片和韩国影片网站推荐| 亚洲伊人久久大香线蕉综合图片| 波多野结衣教师未删减版| 再深点灬舒服灬太大了ship | 在线国产一区二区| 一本无码人妻在中文字幕免费| 日本免费一区二区三区最新| 亚洲中久无码永久在线观看同| 波多野结衣和乡下公在线观看| 劲爆欧美第1页婷婷| 色妞www精品视频| 国产国语在线播放视频| 日韩视频第二页| 国产综合久久久久鬼色|