以下是同花顺XJS回调买入源码副图
V:=AMOUNT/VOL;
A:=SMA(V,5,1)-SMA(V,55,1);
B:=SMA((A-SMA(A,5,1)),5,1);
STICKLINE(C,H,L,0,1),colorgreen;
STICKLINE(C>=O,O,C,8,1),colorgreen;
STICKLINE(C<O,O,C,8,0),colorgreen;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),H,L,0,1),colorred;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C>=O,O,C,8,1),colorred;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C<O,O,C,8,0),colorred;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),H,L,0,1),colorwhite;//白色1
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C>=O,O,C,8,1),colorwhite;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C<O,O,C,8,0),colorwhite;
STICKLINE(A<REF(A,3) AND B<REF(B,3),H,L,0,1),colorgreen;
STICKLINE(A<REF(A,3) AND B<REF(B,3) AND C>=O,O,C,8,1),colorgreen;
STICKLINE(A<REF(A,3) AND B<REF(B,3) AND C<O,O,C,8,0),colorgreen;
STICKLINE(A>REF(A,1) AND B<REF(B,1),H,L,0,1),colorwhite;//白色2 也可以自己改为白色,我只是为了区别一下三种不同的白色,用了一个不同的颜色
STICKLINE(A>REF(A,1) AND B<REF(B,1) AND C>=O,O,C,8,1),colorwhite;
STICKLINE(A>REF(A,1) AND B<REF(B,1) AND C<O,O,C,8,0),colorwhite;
STICKLINE((A<REF(A,1) AND B>REF(B,1)),H,L,0,1),colorwhite;//白色3
STICKLINE((A<REF(A,1) AND B>REF(B,1)) AND C>=O,O,C,8,1),colorwhite;
STICKLINE((A<REF(A,1) AND B>REF(B,1)) AND C<O,O,C,8,0),colorwhite;
评论(0)