修改均线 [文华财经]
-
咨询内容:
M5:MA(C,5);
M10:MA(C,10);
M30:MA(C,30);
X1:=M5>M10&&M10>M30;
X2:=M5<M10&&M10<M30;
DRAWLINE(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),HHV(H,BARSLASTCOUNT(X1)),1,LLV(L,BARSLASTCOUNT(X1)),COLORRED);
DRAWLINE3(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),HHV(H,BARSLASTCOUNT(X1)),BARSLASTCOUNT(X1)-1,
1,LLV(L,BARSLASTCOUNT(X1)),BARSLASTCOUNT(X1)-1,0),COLORRED;
DRAWSL(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),HHV(H,BARSLASTCOUNT(X1)),0,-BARSLASTCOUNT(X1)+1,0,COLORRED); DRAWSL(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),LLV(L,BARSLASTCOUNT(X1)),0,-BARSLASTCOUNT(X1)+1,0,COLORRED);
DRAWLINE(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),HHV(H,BARSLASTCOUNT(X2)),1,LLV(L,BARSLASTCOUNT(X2)),COLORGREEN); DRAWLINE3(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),HHV(H,BARSLASTCOUNT(X2)),BARSLASTCOUNT(X2)-1, 1,LLV(L,BARSLASTCOUNT(X2)),BARSLASTCOUNT(X2)-1,0),COLORGREEN;
DRAWSL(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),HHV(H,BARSLASTCOUNT(X2)),0,-BARSLASTCOUNT(X2)+1,0,COLORGREEN); DRAWSL(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),LLV(L,BARSLASTCOUNT(X2)),0,-BARSLASTCOUNT(X2)+1,0,COLORGREEN);
DRAWCOLORKLINE(C>REF(C,1)*1.04,COLORMAGENTA,0); DRAWCOLORKLINE(C<REF(C,1)*0.96,COLORGREEN,0);
老师 帮我把这个指标的均线 全部变成ema的形式 30的均线变成60的 谢谢来源:程序化99
-
文华技术人员:
参考:
M5:EMA(C,5);
M10:EMA(C,10);
M30:EMA(C,60);
X1:=M5>M10&&M10>M30;
X2:=M5<M10&&M10<M30;
DRAWLINE(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),HHV(H,BARSLASTCOUNT(X1)),1,LLV(L,BARSLASTCOUNT(X1)),COLORRED);
DRAWLINE3(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),HHV(H,BARSLASTCOUNT(X1)),BARSLASTCOUNT(X1)-1,
1,LLV(L,BARSLASTCOUNT(X1)),BARSLASTCOUNT(X1)-1,0),COLORRED;
DRAWSL(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),HHV(H,BARSLASTCOUNT(X1)),0,-BARSLASTCOUNT(X1)+1,0,COLORRED);
DRAWSL(BARSLASTCOUNT(X1)>5&&REFX(X1=0,1),LLV(L,BARSLASTCOUNT(X1)),0,-BARSLASTCOUNT(X1)+1,0,COLORRED);
DRAWLINE(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),HHV(H,BARSLASTCOUNT(X2)),1,LLV(L,BARSLASTCOUNT(X2)),COLORGREEN);
DRAWLINE3(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),HHV(H,BARSLASTCOUNT(X2)),BARSLASTCOUNT(X2)-1,
1,LLV(L,BARSLASTCOUNT(X2)),BARSLASTCOUNT(X2)-1,0),COLORGREEN;
DRAWSL(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),HHV(H,BARSLASTCOUNT(X2)),0,-BARSLASTCOUNT(X2)+1,0,COLORGREEN);
DRAWSL(BARSLASTCOUNT(X2)>5&&REFX(X2=0,1),LLV(L,BARSLASTCOUNT(X2)),0,-BARSLASTCOUNT(X2)+1,0,COLORGREEN);
DRAWCOLORKLINE(C>REF(C,1)*1.04,COLORMAGENTA,0);
DRAWCOLORKLINE(C<REF(C,1)*0.96,COLORGREEN,0);
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容