请老师修改成博易大师源码这是文华的指标 [博易POBO]
咨询内容:
//EMA26:EMA(CLOSE,LONG),NODRAW;
DIFF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
均线差值:DIFF;
DEA: =EMA(DIFF,M);
差值的均值:DEA;
MACD:=2*(DIFF-DEA);
//MACDAVG:=MA(MACD,N);
//MACDAVGS:MACDAVG;
2*(DIFF-DEA),COLORSTICK;
POLYLINE((MOD(BARPOS,N1)=0 || ISLASTBAR),MACD,COLORGRAY);
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD>REF(MACD,N1) ,MACD,'涨'),COLORRED;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD<REF(MACD,N1) ,MACD,'跌'),COLORGREEN;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD=REF(MACD,N1) ,MACD,'平'),COLORGRAY;
//POLYLINE(BARSLAST(MOD(BARPOS,N1)=0),MACD,COLORRED);
//POLYLINE(MOD(BARPOS,N1)=0 && MACD<REF(MACD,N1),MACD,COLORGREEN);
//POLYLINE(MOD(BARPOS,N1) =0&& MACD=REF(MACD,N1),MACD,COLORYELLOW);
//DRAWLINE(MACD>0,MACD, MACD<=0,REF(MACD,1),COLORRED);
//MOD(MINUTE,10)
DRAWICON(CROSS(DIFF,DEA),DIFF,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2);
//EMA26:EMA(CLOSE,LONG),NODRAW;
N1:=10;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
均线差值:DIFF;
DEA:=EMA(DIFF,9);
差值的均值:DEA;
MACD:=2*(DIFF-DEA);
//MACDAVG:=MA(MACD,N);
//MACDAVGS:MACDAVG;
2*(DIFF-DEA),COLORSTICK;
POLYLINE((MOD(BARPOS,N1)=0 || ISLASTBAR),MACD),COLORGRAY;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD>REF(MACD,N1) ,MACD,'涨'),COLORRED;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD<REF(MACD,N1) ,MACD,'跌'),COLORGREEN;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD=REF(MACD,N1) ,MACD,'平'),COLORGRAY;
//POLYLINE(BARSLAST(MOD(BARPOS,N1)=0),MACD,COLORRED);
//POLYLINE(MOD(BARPOS,N1)=0 && MACD<REF(MACD,N1),MACD,COLORGREEN);
//POLYLINE(MOD(BARPOS,N1) =0&& MACD=REF(MACD,N1),MACD,COLORYELLOW);
//DRAWLINE(MACD>0,MACD, MACD<=0,REF(MACD,1),COLORRED);
//MOD(MINUTE,10)
DRAWICON(CROSS(DIFF,DEA),DIFF,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2); 老师跟文华的还是邮差距但是谢谢 来源 程序化久久网
请老师修改成博易大师源码这是文华的指标
//EMA12:EMA(CLOSE,SHORT),NODRAW;//EMA26:EMA(CLOSE,LONG),NODRAW;
DIFF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
均线差值:DIFF;
DEA: =EMA(DIFF,M);
差值的均值:DEA;
MACD:=2*(DIFF-DEA);
//MACDAVG:=MA(MACD,N);
//MACDAVGS:MACDAVG;
2*(DIFF-DEA),COLORSTICK;
POLYLINE((MOD(BARPOS,N1)=0 || ISLASTBAR),MACD,COLORGRAY);
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD>REF(MACD,N1) ,MACD,'涨'),COLORRED;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD<REF(MACD,N1) ,MACD,'跌'),COLORGREEN;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD=REF(MACD,N1) ,MACD,'平'),COLORGRAY;
//POLYLINE(BARSLAST(MOD(BARPOS,N1)=0),MACD,COLORRED);
//POLYLINE(MOD(BARPOS,N1)=0 && MACD<REF(MACD,N1),MACD,COLORGREEN);
//POLYLINE(MOD(BARPOS,N1) =0&& MACD=REF(MACD,N1),MACD,COLORYELLOW);
//DRAWLINE(MACD>0,MACD, MACD<=0,REF(MACD,1),COLORRED);
//MOD(MINUTE,10)
DRAWICON(CROSS(DIFF,DEA),DIFF,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: //EMA12:EMA(CLOSE,SHORT),NODRAW;//EMA26:EMA(CLOSE,LONG),NODRAW;
N1:=10;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
均线差值:DIFF;
DEA:=EMA(DIFF,9);
差值的均值:DEA;
MACD:=2*(DIFF-DEA);
//MACDAVG:=MA(MACD,N);
//MACDAVGS:MACDAVG;
2*(DIFF-DEA),COLORSTICK;
POLYLINE((MOD(BARPOS,N1)=0 || ISLASTBAR),MACD),COLORGRAY;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD>REF(MACD,N1) ,MACD,'涨'),COLORRED;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD<REF(MACD,N1) ,MACD,'跌'),COLORGREEN;
DRAWTEXT((MOD(BARPOS,N1)=0 || ISLASTBAR) && MACD=REF(MACD,N1) ,MACD,'平'),COLORGRAY;
//POLYLINE(BARSLAST(MOD(BARPOS,N1)=0),MACD,COLORRED);
//POLYLINE(MOD(BARPOS,N1)=0 && MACD<REF(MACD,N1),MACD,COLORGREEN);
//POLYLINE(MOD(BARPOS,N1) =0&& MACD=REF(MACD,N1),MACD,COLORYELLOW);
//DRAWLINE(MACD>0,MACD, MACD<=0,REF(MACD,1),COLORRED);
//MOD(MINUTE,10)
DRAWICON(CROSS(DIFF,DEA),DIFF,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2); 老师跟文华的还是邮差距但是谢谢 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容