强弱 红色持股,黄色观望,绿色持币
源码
STICKLINE(C>0, -2.9,2.5,16,0),color111111;
STICKLINE(C>0, 2.17,2.5,16,0),color222222;
STICKLINE(C>0, -2.17,-2.5,16,0),color222222;
STICKLINE(C>0, 2.17,1.83,16,0),color333333;
STICKLINE(C>0, -2.17,-1.83,16,0),color333333;
STICKLINE(C>0, 1.5,1.83,16,0),color444444;
STICKLINE(C>0, -1.5,-1.83,16,0),color444444;
STICKLINE(C>0, 1.5,1.17,16,0),color555555;
STICKLINE(C>0, -1.5,-1.17,16,0),color555555;
STICKLINE(C>0, 0.83,1.17,16,0),color666666;
STICKLINE(C>0, -0.83,-1.17,16,0),color666666;
STICKLINE(C>0, 0.83,0.5,16,0),color777777;
STICKLINE(C>0, -0.83,-0.5,16,0),color777777;
STICKLINE(C>0, 0.17,0.5,16,0),color888888;
STICKLINE(C>0, -0.17,-0.5,16,0),color888888;
STICKLINE(C>0, -2.9,-2.5,16,0),color444444;
STICKLINE(C>0, 0.17,-0.17,16,0),color111111;
A5:=(C> MA(C,5));
A6:=(MA(C,5) > REF(MA(C,5),1));
AVX:=(IF(A5,1,- 1) + IF(A6,1,- 1));
m价2:=MA(avx,1);
STICKLINE(m价2>0,2.17,2.5,9,0),colorred;
STICKLINE(m价2<0 ,-2.17,-2.5,9,0),color00ff00;
STICKLINE(m价2=0 ,0.17,-0.17,9,0),coloryellow;
Aa:=IF(C>REF(C,1) OR (C=REF(C,1) AND C>O),1,-1);
cz1:=SUM(aa,0);
持股:=MA(cz1,6);
CZ:cz1-持股,COLORdddd00;
a:0.83,color222222;
b:-0.83,color222222;