补充赢·顺移到赢智出错 [文华财经]
- 咨询内容:
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
A4:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(CLOSE,A4+1)>CLOSE AND REF(DIFF,A4+1)<DIFF AND CROSS(DIFF,DEA);
A5:= BARSLAST(REF(CROSS(DEA,DIFF),1));
B2:= REF(CLOSE,A5+1)<CLOSE AND REF(DIFF,A5+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(FILTER(B2>0,5),OPEN*0.97,'1顶'),COLORGREEN;
DRAWTEXT(FILTER(B1>0,5),CLOSE*0.97,'1底'),COLORGREEN;
DIFF1:= EMA(CLOSE,36) - EMA(CLOSE,78);
DEA1:= EMA(DIFF1,27);
MACD1:=2*(DIFF1-DEA1),COLORSTICK;
A41:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));
B11:=REF(CLOSE,A41+1)>CLOSE AND REF(DIFF1,A41+1)<DIFF1 AND CROSS(DIFF1,DEA1);
A51:= BARSLAST(REF(CROSS(DEA1,DIFF1),1));
B21:= REF(CLOSE,A51+1)<CLOSE AND REF(DIFF1,A51+1)>DIFF1 AND CROSS(DEA1,DIFF1);
DRAWTEXT(FILTER(B21>0,5),OPEN*0.8,'3顶'),COLORGREEN;
DRAWTEXT(FILTER(B11>0,5),CLOSE*0.8,'3底'),COLORGREEN;
DIFF2:= EMA(CLOSE,120) - EMA(CLOSE,260);
DEA2:= EMA(DIFF2,90);
MACD2:=2*(DIFF2-DEA2),COLORSTICK;
A42:=BARSLAST(REF(CROSS(DIFF2,DEA2),1));
B12:=REF(CLOSE,A42+1)>CLOSE AND REF(DIFF2,A42+1)<DIFF2 AND CROSS(DIFF2,DEA2);
A52:= BARSLAST(REF(CROSS(DEA2,DIFF2),1));
B22:= REF(CLOSE,A5+1)<CLOSE AND REF(DIFF2,A5+1)>DIFF2 AND CROSS(DEA2,DIFF2);
DRAWTEXT(FILTER(B2>0,5),OPEN*0.8,'10顶'),COLORGREEN;
DRAWTEXT(FILTER(B1>0,5),CLOSE*0.8,'10底'),COLORGREEN;
DIFF3:= EMA(CLOSE,360) - EMA(CLOSE,780);
DEA3:= EMA(DIFF,270);
MACD3:=2*(DIFF3-DEA3),COLORSTICK;
A43:=BARSLAST(REF(CROSS(DIFF3,DEA3),1));
B13:=REF(CLOSE,A4+1)>CLOSE AND REF(DIFF3,A4+1)<DIFF3 AND CROSS(DIFF3,DEA3);
A53:= BARSLAST(REF(CROSS(DEA3,DIFF3),1));
B23:= REF(CLOSE,A5+1)<CLOSE AND REF(DIFF3,A5+1)>DIFF3 AND CROSS(DEA3,DIFF3);
DRAWTEXT(FILTER(B2>0,5),OPEN*0.8,'30顶'),COLORGREEN;
DRAWTEXT(FILTER(B1>0,5),CLOSE*0.8,'30底'),COLORGREEN;
AUTOFILTER;老师,这个指标移到赢智也变成跟他叠加的k线也是一条线,麻烦看看,我就是只用这2个指标,这2个不能用,我没法看盘,很难用赢智,但我还是喜欢她的程序化的东西,很想用起来,已经郁闷了很久,几天终于鼓足勇气提问了,一定看看哦
- 文华技术人员:
应该是您画线取值与k线值相差太大的原因,您设置为独立坐标试试。
- 文华客服:
请教一下哪里设独立坐标
- 网友回复:
您加载后,右键——》设置指标及模型,点击该模型,在右上角坐标处改为 独立坐标
此主题相关图片如下:66.jpg
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容