您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

kd、布林、macd指标改写 [博易POBO]

咨询内容: kd、布林、macd指标改写 您好:我有几个指标是在文华财经上使用的 ,现在想改写在博易大师上使用,请帮助改写,非常感谢!
赢顺云kd
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORRED;
D:SMA(K,M2,1),COLORBLUE;
J:3*K-2*D,COLORMAGENTA;
FILLRGN(K>D,K,D,RGB(255,0,0));
FILLRGN(K<D,D,K,RGB(0,255,0));
DRAWICON(CROSS(K,D),K,'ICO8');
DRAWICON(CROSS(D,K),D,'ICO9');
判:REF((D*3-K*2)*(HHV(H,(N-1))-LLV(L,(N-1)))/100+LLV(L,(N-1)),1),NODRAW,COLORRED;
预20:REF(LLV(L,(N-1))+(HHV(H,(N-1))-LLV(L,(N-1)))*(M1*20-(M1-1)*K)/100,1),NODRAW,COLORRED;
预50:REF(LLV(L,(N-1))+(HHV(H,(N-1))-LLV(L,(N-1)))*(M1*50-(M1-1)*K)/100,1),NODRAW,COLORBLUE;
预80:REF(LLV(L,(N-1))+(HHV(H,(N-1))-LLV(L,(N-1)))*(M1*80-(M1-1)*K)/100,1),NODRAW,COLORMAGENTA;
JC:=D>K;
SC:=K>D;
金叉天数:BARSLAST(JC),NODRAW,COLORBLUE;
死叉天数:BARSLAST(SC),NODRAW,COLORRED;
IF(COUNT(K>80,1)=1,90,NULL),CROSSDOT,COLORLIGHTRED;
IF(COUNT(K<20,1)=1,10,NULL),CROSSDOT,RGB(0,120,0);
IF(COUNT(K>80,3)=3,90,NULL),CIRCLEDOT,COLORLIGHTRED;
IF(COUNT(K<20,3)=3,10,NULL),CIRCLEDOT,RGB(0,120,0);
 
赢顺云macd
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORRED,LINETHICK1;
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
STICKLINE(MACD>0&&MACD>REF(MACD,1),0,MACD,COLORRED,0);
STICKLINE(MACD>0&&MACD<=REF(MACD,1),0,MACD,COLORGREEN,0);
STICKLINE(MACD<0&&MACD>REF(MACD,1),0,MACD,COLORMAGENTA,0);
STICKLINE(MACD<0&&MACD<=REF(MACD,1),0,MACD,COLORBLUE,0);
 
赢顺云布林轨道
MID:MA(CLOSE,N),LINETHICK2;
TMP2:-STD(CLOSE,N);
TOP:MID+(P/10)*TMP2,LINETHICK2,COLORBLACK;
BOTTOM:MID-(P/10)*TMP2,LINETHICK2,COLORBLUE;
MA5:MA(CLOSE,5),COLORMAGENTA;
MA13:MA(CLOSE,0),LINETHICK2,COLORBLUE;
MA60:MA(CLOSE,60),COLORLIGHTRED,LINETHICK1;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
DRAWICON(CURRBARSCOUNT=5,H*1.001,1);
DRAWICON(CURRBARSCOUNT=20,H*1.001,1);
DRAWICON(CURRBARSCOUNT=60,H*1.001,'ICO1');
DRAWCOLORLINE(MID>REF(MID,1),MID,COLORRED,COLORGREEN),LINETHICK2;
下面我再上传效果图给您看看做参考。谢谢!

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: 没人回复我的问题,真是可怜!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORRED;
D:SMA(K,M2,1),COLORBLUE;
J:3*K-2*D,COLORMAGENTA;
FILLRGN(K>D,K,D),COLOR0000FF;
FILLRGN(K<D,D,K),COLOR00FF00;
DRAWICON(CROSS(K,D),K,4);
DRAWICON(CROSS(D,K),D,5);
判:REF((D*3-K*2)*(HHV(H,(N-1))-LLV(L,(N-1)))/100+LLV(L,(N-1)),1),NODRAW,COLORRED;
预20:REF(LLV(L,(N-1))+(HHV(H,(N-1))-LLV(L,(N-1)))*(M1*20-(M1-1)*K)/100,1),NODRAW,COLORRED;
预50:REF(LLV(L,(N-1))+(HHV(H,(N-1))-LLV(L,(N-1)))*(M1*50-(M1-1)*K)/100,1),NODRAW,COLORBLUE;
预80:REF(LLV(L,(N-1))+(HHV(H,(N-1))-LLV(L,(N-1)))*(M1*80-(M1-1)*K)/100,1),NODRAW,COLORMAGENTA;
JC:=D>K;
SC:=K>D;
金叉天数:BARSLAST(JC),NODRAW,COLORBLUE;
死叉天数:BARSLAST(SC),NODRAW,COLORRED;
IF(COUNT(K>80,1)=1,90,DRAWNULL),CROSSDOT,COLORRED;
IF(COUNT(K<20,1)=1,10,DRAWNULL),CROSSDOT,COLOR007800;
IF(COUNT(K>80,3)=3,90,DRAWNULL),CIRCLEDOT,COLORRED;
IF(COUNT(K<20,3)=3,10,DRAWNULL),CIRCLEDOT,COLOR007800; 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容