AV:=if(INDEXC=C,amount/10000000000,100*V/(capital-AJB));
kk:=if(INDEXC=C,300,100);
SK:=IF(SUM(AV,0)<kk,BARSCOUNT(C),SUMBARS(AV,kk));
SV:=SUM(V,SK);
筹:=IF(INDEXC=c OR SV=0,MA(c,SK),SUM(AMOUNT,SK)/SV/100),LINETHICK1,color18A4FF,LINEDOT;
平均成本:EMA(((COST(85)+COST(15))/2+COST(50))/2,3),COLOR9900FF,LINETHICK3;
FF:=ABS(筹-平均成本)/平均成本;
DD:=DMA(筹,FF);
上:(1+8/100)*DD,LINEDOT,COLORYELLOW;
下:(1-8/100)*DD,LINEDOT,COLORYELLOW;
中:(上+下)/2,COLORWHITE,LINEDOT;
天:(1+16/100)*DD,COLORGRAY;
地:(1-16/100)*DD,COLORGRAY;
疯牛:(1+24/100)*DD,LINETHICK,COLORMAGENTA;
极地:(1-24/100)*DD,LINETHICK,COLORGRAY;
PARTLINE(C>疯牛,疯牛),COLORWHITE,LINETHICK2,CIRCLEDOT;
PARTLINE(C<极地,极地),COLORWHITE,LINETHICK2,CIRCLEDOT;
PARTLINE(操盘线>=七妹,操盘线),COLOR9900FF,LINETHICK2;
PARTLINE(操盘线<七妹,操盘线),COLOR00bb00,LINETHICK2;
合:=2*EMA(LLV(均价,7),10)-均价;
空线:=3*合-2*SMA(合,10,1)*1,COLORGREEN;
x1:=REF(C,1);
x2:=SMA(MAX(C-x1,0),6,1)/SMA(ABS(C-x1),6,1)*100;
x3:=((3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-
2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1)-50)*1.032+50);