VAR100:1;
多线:27,NODRAW;
空线:55,NODRAW;
生命线:EMA(CLOSE,55),NODRAW;
bs:1,NODRAW;
MA7:=MA(CLOSE,1);
转强:=(6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/(6+5+4+3+2+1);
转弱:=(6*LOW+5*REF(LOW,1)+4*REF(LOW,2)+3*REF(LOW,3)+2*REF(LOW,4)+1*REF(LOW,5))/(6+5+4+3+2+1);
BB2:=IF(CLOSE>REF(转强,1),1,IF(CLOSE<REF(转弱,1),(-1),0));
DD2:=BARSLAST(NOT(BB2=0));
B:=IF(BB2=0,REF(BB2,DD2),BB2);
中短:=IF(B=(-1),MA(HIGH,6)*VAR100,MA(LOW,6));
B点持股:BARSLASTCOUNT(MA7>中短);
S点持币:BARSLASTCOUNT(MA7<中短);