通達(dá)信代碼轉(zhuǎn)換成博奕大師指標(biāo) [博易POBO]
咨詢內(nèi)容:
DEA:EMA(DIFF,9),NODRAW;MACD:(DIFF-DEA),NODRAW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CURR:=CURRBARSCOUNT;
RM5:IF(CURR>3,REFX(DIFF,3),DRAWNULL),COLORRED;??
RM10:IF(CURR>3,REFX(DEA,3),DRAWNULL),COLORWHITE;??
ABSM5:=CONST(IF(DIFF-REF(DIFF,1)>0,ABS(DIFF-REF(DIFF,1)),0-ABS(DIFF-REF(DIFF,1))));??
?ABSM10:=CONST(IF(DEA-REF(DEA,1)>0,ABS(DEA-REF(DEA,1)),0-ABS(DEA-REF(DEA,1))));??
?R2M5:=IF(CURR=3,CONST(DIFF)+ABSM5,DRAWNULL);??
?R2M10:=IF(CURR=3,CONST(DEA)+ABSM10,DRAWNULL);??
?R1M5:=IF(CURR=2,CONST(DIFF)+2*ABSM5,DRAWNULL);??
?R1M10:=IF(CURR=2,CONST(DEA)+2*ABSM10,DRAWNULL);??
?R0M10:=IF(ISLASTBAR,CONST(DEA)+3*ABSM10,DRAWNULL);??
?DRAWLINE(CURR=4,RM5,CURR=3,R2M5,0),COLOR0000FF,DOTLINE;??
?DRAWLINE(CURR=4,RM10,CURR=3,R2M10,0),COLOR00FFFF,DOTLINE;??
?DRAWLINE(CURR=3,R2M10,CURR=2,R1M10,0),COLOR00FFFF,DOTLINE;?
?DRAWLINE(CURR=3,R2M5,CURR=2,R1M5,0),COLOR0000FF,DOTLINE;??
IF(RM5>RM10,RM5,DRAWNULL),COLORRED,LINETHICK2;
IF(RM5<RM10,RM5,DRAWNULL),COLORGREEN,LINETHICK2;
IF(RM5<0 AND RM5<RM10,RM5,DRAWNULL),COLORCC6600,LINETHICK2;
IF(RM5>0 AND RM5>RM10,RM5,DRAWNULL),LINETHICK2,COLORMAGENTA;
DEA:EMA(DIFF,9),NODRAW;MACD:(DIFF-DEA),NODRAW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CURR:=DATACOUNT;
RM5:IF(CURR>3,REFX(DIFF,3),DRAWNULL),COLORRED; ?
RM10:IF(CURR>3,REFX(DEA,3),DRAWNULL),COLORWHITE; ?
ABSM5:=IF(DIFF-REF(DIFF,1)>0,ABS(DIFF-REF(DIFF,1)),0-ABS(DIFF-REF(DIFF,1))); ?
?ABSM10:=IF(DEA-REF(DEA,1)>0,ABS(DEA-REF(DEA,1)),0-ABS(DEA-REF(DEA,1))); ?
?R2M5:=IF(CURR=3,DIFF+ABSM5,DRAWNULL); ?
?R2M10:=IF(CURR=3,DEA+ABSM10,DRAWNULL); ?
?R1M5:=IF(CURR=2,DIFF+2*ABSM5,DRAWNULL); ?
?R1M10:=IF(CURR=2,DEA+2*ABSM10,DRAWNULL); ?
?R0M10:=IF(ISLASTBAR,DEA+3*ABSM10,DRAWNULL); ?
?DRAWLINE(CURR=4,RM5,CURR=3,R2M5,0),COLOR0000FF,POINTDOT; ?
?DRAWLINE(CURR=4,RM10,CURR=3,R2M10,0),COLOR00FFFF,POINTDOT; ?
?DRAWLINE(CURR=3,R2M10,CURR=2,R1M10,0),COLOR00FFFF,POINTDOT;?
?DRAWLINE(CURR=3,R2M5,CURR=2,R1M5,0),COLOR0000FF,POINTDOT; ?
AA1:IF(RM5>RM10,RM5,DRAWNULL),COLORRED,LINETHICK2;
AA2:IF(RM5<RM10,RM5,DRAWNULL),COLORGREEN,LINETHICK2;
AA3:IF(RM5<0 AND RM5<RM10,RM5,DRAWNULL),COLORCC6600,LINETHICK2;
AA4:IF(RM5>0 AND RM5>RM10,RM5,DRAWNULL),LINETHICK2,COLORMAGENTA; 你好,好像顯示不了虛線部份 來源 程序化久久網(wǎng)
通達(dá)信代碼轉(zhuǎn)換成博奕大師指標(biāo)
DIFF:EMA(CLOSE,10)-EMA(CLOSE,26),NODRAW;DEA:EMA(DIFF,9),NODRAW;MACD:(DIFF-DEA),NODRAW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CURR:=CURRBARSCOUNT;
RM5:IF(CURR>3,REFX(DIFF,3),DRAWNULL),COLORRED;??
RM10:IF(CURR>3,REFX(DEA,3),DRAWNULL),COLORWHITE;??
ABSM5:=CONST(IF(DIFF-REF(DIFF,1)>0,ABS(DIFF-REF(DIFF,1)),0-ABS(DIFF-REF(DIFF,1))));??
?ABSM10:=CONST(IF(DEA-REF(DEA,1)>0,ABS(DEA-REF(DEA,1)),0-ABS(DEA-REF(DEA,1))));??
?R2M5:=IF(CURR=3,CONST(DIFF)+ABSM5,DRAWNULL);??
?R2M10:=IF(CURR=3,CONST(DEA)+ABSM10,DRAWNULL);??
?R1M5:=IF(CURR=2,CONST(DIFF)+2*ABSM5,DRAWNULL);??
?R1M10:=IF(CURR=2,CONST(DEA)+2*ABSM10,DRAWNULL);??
?R0M10:=IF(ISLASTBAR,CONST(DEA)+3*ABSM10,DRAWNULL);??
?DRAWLINE(CURR=4,RM5,CURR=3,R2M5,0),COLOR0000FF,DOTLINE;??
?DRAWLINE(CURR=4,RM10,CURR=3,R2M10,0),COLOR00FFFF,DOTLINE;??
?DRAWLINE(CURR=3,R2M10,CURR=2,R1M10,0),COLOR00FFFF,DOTLINE;?
?DRAWLINE(CURR=3,R2M5,CURR=2,R1M5,0),COLOR0000FF,DOTLINE;??
IF(RM5>RM10,RM5,DRAWNULL),COLORRED,LINETHICK2;
IF(RM5<RM10,RM5,DRAWNULL),COLORGREEN,LINETHICK2;
IF(RM5<0 AND RM5<RM10,RM5,DRAWNULL),COLORCC6600,LINETHICK2;
IF(RM5>0 AND RM5>RM10,RM5,DRAWNULL),LINETHICK2,COLORMAGENTA;
?
?來源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員: DIFF:EMA(CLOSE,10)-EMA(CLOSE,26),NODRAW;DEA:EMA(DIFF,9),NODRAW;MACD:(DIFF-DEA),NODRAW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CURR:=DATACOUNT;
RM5:IF(CURR>3,REFX(DIFF,3),DRAWNULL),COLORRED; ?
RM10:IF(CURR>3,REFX(DEA,3),DRAWNULL),COLORWHITE; ?
ABSM5:=IF(DIFF-REF(DIFF,1)>0,ABS(DIFF-REF(DIFF,1)),0-ABS(DIFF-REF(DIFF,1))); ?
?ABSM10:=IF(DEA-REF(DEA,1)>0,ABS(DEA-REF(DEA,1)),0-ABS(DEA-REF(DEA,1))); ?
?R2M5:=IF(CURR=3,DIFF+ABSM5,DRAWNULL); ?
?R2M10:=IF(CURR=3,DEA+ABSM10,DRAWNULL); ?
?R1M5:=IF(CURR=2,DIFF+2*ABSM5,DRAWNULL); ?
?R1M10:=IF(CURR=2,DEA+2*ABSM10,DRAWNULL); ?
?R0M10:=IF(ISLASTBAR,DEA+3*ABSM10,DRAWNULL); ?
?DRAWLINE(CURR=4,RM5,CURR=3,R2M5,0),COLOR0000FF,POINTDOT; ?
?DRAWLINE(CURR=4,RM10,CURR=3,R2M10,0),COLOR00FFFF,POINTDOT; ?
?DRAWLINE(CURR=3,R2M10,CURR=2,R1M10,0),COLOR00FFFF,POINTDOT;?
?DRAWLINE(CURR=3,R2M5,CURR=2,R1M5,0),COLOR0000FF,POINTDOT; ?
AA1:IF(RM5>RM10,RM5,DRAWNULL),COLORRED,LINETHICK2;
AA2:IF(RM5<RM10,RM5,DRAWNULL),COLORGREEN,LINETHICK2;
AA3:IF(RM5<0 AND RM5<RM10,RM5,DRAWNULL),COLORCC6600,LINETHICK2;
AA4:IF(RM5>0 AND RM5>RM10,RM5,DRAWNULL),LINETHICK2,COLORMAGENTA; 你好,好像顯示不了虛線部份 來源 程序化久久網(wǎng)
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 或微信:cxhjy888 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容