海面:=20;
海天分界线:=50;
天际:=80;
个股趋势:3*SMA((C-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,20,1)
-2*SMA(SMA((C-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,20,1),15,1),LINETHICK5,COLOR00DDDD;
持币:IF(个股趋势<REF(个股趋势,1),个股趋势,DRAWNULL),LINETHICK5,COLORFFFF00;
VAR1:=(2*C+H+L)/4;
VAR2:=LLV(LOW,30);
VAR3:=HHV(HIGH,30);
B:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,8);
B1:=EMA(B,8);
STICKLINE(B>0 AND B-B1>=0,79,80,10,0),COLOR000080,LINETHICK8;
STICKLINE(B>0 AND B-B1<0,79,80,10,0),COLOR00FF00,LINETHICK8;
STICKLINE(B>0 AND B-B1>=0,49,50,10,0),COLOR000080,LINETHICK8;
STICKLINE(B>0 AND B-B1<0,49,50,10,0),COLOR00FF00,LINETHICK8;
STICKLINE(B>0 AND B-B1>=0,19,20,10,0),COLOR000080,LINETHICK8;
STICKLINE(B>0 AND B-B1<0,19,20,10,0),COLOR00FF00,LINETHICK8;