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

老師您好,謝謝您,請您幫我改一下指標,謝謝 [博易POBO]

咨詢內容:

老師您好,謝謝您,請您幫我改一下指標,謝謝

SHORT:=12;
LONG:=26;
M:=9;
CAPITAL:=GETPRICE1('流通股本');
CURRBARSCOUNT:=DATACOUNT-BARPOS+1; ?
DIF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
KK:=IF(DIF>DEA,5,-5);
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));
{計算出金叉死叉時的DIFF值}
DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));
{計算出明日MACD=MACD時的DIFF值}
DIF拐頭價:(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORGREEN,LINETHICK1,POINTDOT;
金死叉價:(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;
柱變向價:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;
黃銖消失見頂:=IF(柱變向價>=DIF拐頭價,柱變向價,NULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
拐頭價:IF(DIF拐頭價<柱變向價,DIF拐頭價,NULL), COLORRED,LINETHICK4;
DRAWNUMBER1(DIF<DEA,DIF拐頭價,BARSLAST(CROSS(DEA,DIF))+1,0),COLORCYAN,NODRAW;
DRAWNUMBER1(DIF>DEA,DIF拐頭價,BARSLAST(CROSS(DIF,DEA))+1,0),COLORWHITE,NODRAW;
ZJ:拐頭價,COLOR0000FF;
HY:=金死叉價,COLORFF00FF;
IF(ZJ > REF(ZJ,1),ZJ,NULL),COLORRED,LINETHICK2;
IF(ZJ < REF(ZJ,1),ZJ,NULL),COLORGREEN,LINETHICK2;
IF(HY > REF(HY,1),HY,NULL),COLORMAGENTA,LINETHICK2,NODRAW;
IF(HY < REF(HY,1),HY,NULL),COLORBLUE,LINETHICK2,NODRAW;
STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;
STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;
STICKLINE(CLOSE = ZJ,H,L,3,0),COLORWHITE;
STICKLINE(CLOSE < ZJ,H,L,0,0),COLORYELLOW;
STICKLINE(CLOSE < ZJ,O,C,2.5,0),COLORYELLOW;
STICKLINE(C<HY AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C<HY AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C<HY AND C>O,O,C,2.8,1),COLORCYAN;
STICKLINE(C<HY AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C<HY AND C<=O,O,C,2.8,0),COLORCYAN;
HD0:=CROSS(DIF,DEA);
金收:REF(L,BARSLAST(HD0)),COLORYELLOW,DOT;
DRAWNUMBER1(ISLASTBAR,金收,金收,0),COLORCYAN;
LD0:=CROSS(DEA,DIF);
死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOT;
{分時中的收盤標記}
IF(HOUR=15,H*1.008,NULL),POINTDOT,COLORFFFAAA,LINETHICK7;
IF(HOUR=15,H*1.008,NULL),POINTDOT,COLOR000FFF,LINETHICK5;
HSL:=V/CAPITAL*100;
DRAWNUMBER1(CURRBARSCOUNT=1 AND HSL,C,HSL,0),COLOR00FFFF;
AMOUNT:=AVPRICE*V;
分時均價:AMOUNT/VOL/100,COLORWHITE,NODRAW;
?

?

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

博易技術人員: SHORT:=12;
LONG:=26;
M:=9;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1; ?
DIF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
KK:=IF(DIF>DEA,5,-5);
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));
{計算出金叉死叉時的DIFF值}
DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));
{計算出明日MACD=MACD時的DIFF值}
DIF拐頭價:(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORGREEN,LINETHICK1,POINTDOT;
金死叉價:(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;
柱變向價:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;
黃銖消失見頂:=IF(柱變向價>=DIF拐頭價,柱變向價,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
拐頭價:IF(DIF拐頭價<柱變向價,DIF拐頭價,DRAWNULL), COLORRED,LINETHICK4;
DRAWNUMBER(DIF<DEA,DIF拐頭價,BARSLAST(CROSS(DEA,DIF))+1,0),COLORCYAN,NODRAW;
DRAWNUMBER(DIF>DEA,DIF拐頭價,BARSLAST(CROSS(DIF,DEA))+1,0),COLORWHITE,NODRAW;
ZJ:拐頭價,COLOR0000FF;
HY:=金死叉價,COLORFF00FF;
IF(ZJ > REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;
IF(ZJ < REF(ZJ,1),ZJ,DRAWNULL),COLORGREEN,LINETHICK2;
IF(HY > REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2,NODRAW;
IF(HY < REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK2,NODRAW;
STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;
STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;
STICKLINE(CLOSE = ZJ,H,L,3,0),COLORWHITE;
STICKLINE(CLOSE < ZJ,H,L,0,0),COLORYELLOW;
STICKLINE(CLOSE < ZJ,O,C,2.5,0),COLORYELLOW;
STICKLINE(C<HY AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C<HY AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C<HY AND C>O,O,C,2.8,1),COLORCYAN;
STICKLINE(C<HY AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C<HY AND C<=O,O,C,2.8,0),COLORCYAN;
HD0:=CROSS(DIF,DEA);
金收:REF(L,BARSLAST(HD0)),COLORYELLOW,POINTDOT;
DRAWNUMBER(ISLASTBAR,金收,金收,0),COLORCYAN;
LD0:=CROSS(DEA,DIF);
死收:REF(H,BARSLAST(LD0)),COLOR00FF00,POINTDOT;
{分時中的收盤標記}
IF(HOUR=15,H*1.008,DRAWNULL),POINTDOT,COLORFFFAAA,LINETHICK7;
IF(HOUR=15,H*1.008,DRAWNULL),POINTDOT,COLOR000FFF,LINETHICK5;
HSL:=V/CAPITAL*100;
DRAWNUMBER(CURRBARSCOUNT=1 AND HSL,C,HSL,0),COLOR00FFFF;
分時均價:AMOUNT/VOL/100,COLORWHITE,NODRAW; 謝謝老師;感謝 來源 程序化久久網(wǎng)

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯(lián)系技術人員 QQ: 262069696  點擊在線交流或微信:cxhjy888 進行 有償收費 編寫!(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,謝謝您!)

怎么收費,代編流程等詳情請點擊閱讀,或QQ微信聯(lián)系我們!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 美女把尿口扒开给男人桶视频| 99精品人妻少妇一区二区| 精品丝袜国产自在线拍亚洲| 日韩在线视频精品| 国产91在线看| a级情欲片在线观看hd| 欧美日韩中文在线视频| 国产女人的高潮大叫毛片| XX性欧美肥妇精品久久久久久| 日本一区二区三区免费观看| 午夜成人无码福利免费视频| chinesehd国产刺激对白| 日韩亚洲翔田千里在线| 亚洲熟妇AV乱码在线观看| 四虎国产精品永久在线播放| 好大好硬别停老师办公室视频| 亚洲熟妇AV乱码在线观看| 老师您的兔子好软水好多动漫视频 | 一级成人a毛片免费播放| 热99re久久精品香蕉| 国产乱人伦偷精品视频不卡| 在线精品91青草国产在线观看| 最近中文字幕无吗免费高清| 人人爽人人爽人人爽人人片av| 色噜噜狠狠色综合日日| 夜夜揉揉日日人人青青| 亚洲AV高清在线观看一区二区| 狠狠色狠狠色综合日日不卡| 国产日韩精品欧美一区喷水| av一本久道久久波多野结衣 | 91在线激情在线观看| 孪生兄弟3ph尴尬| 久久丁香五月天综合网| 男人桶爽女人30分钟视频动态图| 国产精品免费av片在线观看| 久久6这里只有精品| 欧洲一级毛片免费| 亚洲熟妇av一区| 秋霞鲁丝片无码av| 四虎国产精品永久在线看| 国产成人yy免费视频|