修改模型 [文华财经]
- 咨询内容:
这是一个日内的平均线指标,我想把它改成2日的均线指标 ,就是以2日为一个周期来做一个均线,在K线上使用, 请好心人帮帮忙啊
M:=EMA(REF(SETTLE,1),1);
A:=M-REF(M,1);
B:=REFX(A,1);
AB:=IFELSE(SETTLE>=M,1,-1);
DRAWSL(REFX(AB,1)=1,M,B,1,0,COLORMAGENTA);
DRAWSL(REFX(AB,1)=-1,M,B,1,0,COLORGREEN);
DRAWLINE(SETTLE<C&&C>O,H,SETTLE<C&&C>O,C,COLORRED);
DRAWLINE(SETTLE<C&&C>O,L,SETTLE<C&&C>O,O,COLORRED);
DRAWLINE(SETTLE<C&&C<O,H,SETTLE<C&&C<O,O,COLORRED);
DRAWLINE(SETTLE<C&&C<O,L,SETTLE<C&&C<O,C,COLORRED);
DRAWLINE(SETTLE<C&&C=O,L,SETTLE<C&&C=O,C,COLORRED);
DRAWLINE(SETTLE<C&&C=O,H,SETTLE<C&&C=O,C,COLORRED);
DRAWLINE(SETTLE>C&&C>O,H,SETTLE>C&&C>O,C,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C>O,L,SETTLE>C&&C>O,O,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C<O,H,SETTLE>C&&C<O,O,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C<O,L,SETTLE>C&&C<O,C,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C=O,L,SETTLE>C&&C=O,C,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C=O,H,SETTLE>C&&C=O,C,COLORLIGHTGREEN);
STICKLINE(SETTLE<=C&&C>=O,C,O,COLORRED,1);
STICKLINE(SETTLE<C&&C<O,C,O,COLORRED,0);
STICKLINE(SETTLE>C&&C>=O,C,O,COLORLIGHTGREEN,1);
STICKLINE(SETTLE>=C&&C<=O,C,O,COLORLIGHTGREEN,0); - 文华技术人员:
1、您的软件太旧了,请到官网下载新版软件使用
2、
M:=EMA(REF(SETTLE,1),2);
A:=M-REF(M,1);
B:=REFX(A,1);
AB:=IFELSE(SETTLE>=M,1,-1);
DRAWSL(REFX(AB,1)=1,M,B,1,0,COLORMAGENTA);
DRAWSL(REFX(AB,1)=-1,M,B,1,0,COLORGREEN);
DRAWLINE(SETTLE<C&&C>O,H,SETTLE<C&&C>O,C,COLORRED);
DRAWLINE(SETTLE<C&&C>O,L,SETTLE<C&&C>O,O,COLORRED);
DRAWLINE(SETTLE<C&&C<O,H,SETTLE<C&&C<O,O,COLORRED);
DRAWLINE(SETTLE<C&&C<O,L,SETTLE<C&&C<O,C,COLORRED);
DRAWLINE(SETTLE<C&&C=O,L,SETTLE<C&&C=O,C,COLORRED);
DRAWLINE(SETTLE<C&&C=O,H,SETTLE<C&&C=O,C,COLORRED);
DRAWLINE(SETTLE>C&&C>O,H,SETTLE>C&&C>O,C,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C>O,L,SETTLE>C&&C>O,O,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C<O,H,SETTLE>C&&C<O,O,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C<O,L,SETTLE>C&&C<O,C,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C=O,L,SETTLE>C&&C=O,C,COLORLIGHTGREEN);
DRAWLINE(SETTLE>C&&C=O,H,SETTLE>C&&C=O,C,COLORLIGHTGREEN);
STICKLINE(SETTLE<=C&&C>=O,C,O,COLORRED,1);
STICKLINE(SETTLE<C&&C<O,C,O,COLORRED,0);
STICKLINE(SETTLE>C&&C>=O,C,O,COLORLIGHTGREEN,1);
STICKLINE(SETTLE>=C&&C<=O,C,O,COLORLIGHTGREEN,0);
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容