同花顺副图设置问题的解决的方法
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
解答:
网友求助:
请老师帮助同花顺副图指标【决策操盘密码】的曲线属性应该怎样设置?我弄了半天就是不显示图形。
Var1=MONEY/VOL;
A=SMA(Var1,5,1)-SMA(Var1,55,1);
B=SMA((A-SMA(A,5,1)),5,1);
IF(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1))
RETURN ("colorred");
IF(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1))
RETURN ("colorwhite");
IF(A<REF(A,3) AND B<REF(B,3))
RETURN ("colorgreen");
IF(A>REF(A,1) AND B<REF(B,1))
RETURN ("colorwhite");
IF(A<REF(A,1) AND B>REF(B,1))
RETURN ("colorwhite");
RETURN "colorgreen";
解答如下:
Var1:=AMOUNT/VOL;
A:=SMA(Var1,5,1)-SMA(Var1,55,1);
B:=SMA((A-SMA(A,5,1)),5,1);
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),L,H,0.5,0),COLOR0000FF;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,1),COLOR0000FF;
STICKLINE(CROSS(CLOSE,MA(CLOSE,5)) AND A>REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR0000FF;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),L,H,0.5,0),COLORFFFFFF;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,1),COLORFFFFFF;
STICKLINE(A<REF(A,3) AND B<REF(B,3),L,H,0.5,0),COLOR00FF00;
STICKLINE(A<REF(A,3) AND B<REF(B,3),C,O,8,0),COLOR000000;
STICKLINE(A<REF(A,3) AND B<REF(B,3),C,O,8,1),COLOR00FF00;
STICKLINE(A>REF(A,1) AND B<REF(B,1),L,H,0.5,0),COLORFFFFFF;
STICKLINE(A>REF(A,1) AND B<REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(A>REF(A,1) AND B<REF(B,1),C,O,8,1),COLORFFFFFF;
STICKLINE(A<REF(A,1) AND B>REF(B,1),L,H,0.5,0),COLORFFFFFF;
STICKLINE(A<REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(A<REF(A,1) AND B>REF(B,1),C,O,8,1),COLORFFFFFF;
A:=SMA(Var1,5,1)-SMA(Var1,55,1);
B:=SMA((A-SMA(A,5,1)),5,1);
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),L,H,0.5,0),COLOR0000FF;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,1),COLOR0000FF;
STICKLINE(CROSS(CLOSE,MA(CLOSE,5)) AND A>REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR0000FF;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),L,H,0.5,0),COLORFFFFFF;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,8,1),COLORFFFFFF;
STICKLINE(A<REF(A,3) AND B<REF(B,3),L,H,0.5,0),COLOR00FF00;
STICKLINE(A<REF(A,3) AND B<REF(B,3),C,O,8,0),COLOR000000;
STICKLINE(A<REF(A,3) AND B<REF(B,3),C,O,8,1),COLOR00FF00;
STICKLINE(A>REF(A,1) AND B<REF(B,1),L,H,0.5,0),COLORFFFFFF;
STICKLINE(A>REF(A,1) AND B<REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(A>REF(A,1) AND B<REF(B,1),C,O,8,1),COLORFFFFFF;
STICKLINE(A<REF(A,1) AND B>REF(B,1),L,H,0.5,0),COLORFFFFFF;
STICKLINE(A<REF(A,1) AND B>REF(B,1),C,O,8,0),COLOR000000;
STICKLINE(A<REF(A,1) AND B>REF(B,1),C,O,8,1),COLORFFFFFF;
选股票看什么指标最好 >股票指标网
精彩评论