盘:CAPITAL/100000000;
WI:=WINNER(C);
wc:=SMA(WI,3,1);
bc:=-INTPART(LOG(wc));
Zc:=wc*POW(10,bc)*100;
c柱:Zc,ColorB4FD39;
wL:=SMA(WINNER(L),3,1);
bL:=-INTPART(LOG(wL));
ZL:=160-wL*POW(10,bL)*100;
L柱:-(ZL-160),ColorFF7979;
PARTLINE(160-L柱,1,RGB(250,20,120));
利:wi*100,colorred;
级:
IF(bc>0,-bc,IF(Zc<30,0,IF(Zc<60,1,IF(Zc<90,2,3))))+
IF(bL>0,-bL,IF(L柱<30,0,IF(L柱<60,1,IF(L柱<90,2,3)))),colorwhite;
STICKLINE(bc=0 AND Zc<=30,Zc,0,1,0),colorbrown;
STICKLINE(bc=0 AND Zc>30 AND Zc<=60,Zc,0,3,0),ColorFF00FF;
STICKLINE(bc=0 AND Zc>60 AND Zc<=90,Zc,0,6,0),colorred;
STICKLINE(bc=0 AND Zc>90,ZL,0,8,0),Color00FFFF;
STICKLINE(bc=1,Zc,0,1,0),ColorB07700;
STICKLINE(bc=2,Zc,0,3,0),Color008000;
STICKLINE(bc=3,Zc,0,9,0),colorcyan;
STICKLINE(bc=4,Zc,0,12,0),Color00FF00;
STICKLINE(bL>=5,Zc,0,16,0),ColorFF0000;
STICKLINE(bL=0 AND L柱<=30,ZL,160,1,0),colorbrown;
STICKLINE(bL=0 AND L柱>30 AND L柱<=60,ZL,160,3,0),ColorFF00FF;
STICKLINE(bL=0 AND L柱>60 AND L柱<=90,ZL,160,6,0),colorred;
STICKLINE(bL=0 AND L柱>90,ZL,160,9,0),Color00FFFF;
STICKLINE(bL=1,ZL,160,1,0),ColorB07700;
STICKLINE(bL=2,ZL,160,3,0),Color008000;
STICKLINE(bL=3,ZL,160,9,0),colorcyan;
STICKLINE(bL=4,ZL,160,15,0),Color00FF00;
STICKLINE(bL>=5,ZL,160,18,0),ColorFF0000;
STICKLINE(Zc>=ZL,ZL,Zc,9,0),ColorFF0080;
PARTLINE(160,1,RGB(80,80,80));
PARTLINE(0,1,RGB(80,80,80));
PARTLINE(80,1,RGB(80,80,80));