九毛八公式指标
公式模块:
请老师帮助同花顺副图指标【决策操盘密码】的曲线属性应该怎样设置?我弄了半天就是不显示图形。
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;