主力筹码:=C;
gspt1:=3*SMA((主力筹码-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((主力筹码-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
gspt2:=(gspt1-LLV(gspt1,27))/(HHV(gspt1,27)-LLV(gspt1,27))*4*25;
gspt3:=(gspt1-LLV(gspt1,9))/(HHV(gspt1,9)-LLV(gspt1,9))*4*25;
gspt4:=(主力筹码-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
gspt5:=SMA(gspt4,3,1);
gspt6:=SMA(gspt5,3,1);
gspt7:=INTPART(gspt5);
gspt8:=INTPART(gspt6);
gspt9:=gspt7+gspt8;
gspt10:=gspt9-REF(gspt9,1);
gspt11:=EMA(WINNER(主力筹码)*70,3);
gspt12:=EMA((WINNER(主力筹码*1.1)-WINNER(主力筹码*0.9))*80,3);
gspt13:=gspt12/(gspt11+gspt12)*100;
gspt14:=gspt11/(gspt11+gspt12)*100;
gspt15:=EMA(gspt13,55);
gspt16:=EMA(gspt14,55);
主力:IF(gspt14<=10,gspt14,gspt14),NODRAW,COLORMAGENTA;
STICKLINE(gspt10>0 AND gspt10>REF(gspt10,1),100,gspt10+100,2.5,0),COLOR0000AA;
STICKLINE(gspt10>0 AND gspt10>REF(gspt10,1),100,gspt10+100,2,0),COLOR0000BB;
STICKLINE(gspt10>0 AND gspt10>REF(gspt10,1),100,gspt10+100,1.5,0),COLOR0000CC;
STICKLINE(gspt10>0 AND gspt10>REF(gspt10,1),100,gspt10+100,1,0),COLOR1111DC;
STICKLINE(gspt10>0 AND gspt10>REF(gspt10,1),100,gspt10+100,0.5,0),COLOR0000EE;
STICKLINE(gspt10>0 AND gspt10>REF(gspt10,1),100,gspt10+100,0.1,0),COLORRED;
STICKLINE(gspt10< 0 AND gspt10>REF(gspt10,1),100,gspt10+100,2.5,0),COLORFF9900;
STICKLINE(gspt10< 0 AND gspt10>REF(gspt10,1),100,gspt10+100,2,0),COLORFFBB00;
STICKLINE(gspt10< 0 AND gspt10>REF(gspt10,1),100,gspt10+100,1.5,0),COLORFFCC00;
STICKLINE(gspt10< 0 AND gspt10>REF(gspt10,1),100,gspt10+100,1,0),COLORFFDD00;
STICKLINE(gspt10< 0 AND gspt10>REF(gspt10,1),100,gspt10+100,0.5,0),COLORFFEE00;
STICKLINE(gspt10< 0 AND gspt10>REF(gspt10,1),100,gspt10+100,0.1,0),COLORCYAN;
STICKLINE(gspt10< 0 AND gspt10<=REF(gspt10,1),100,gspt10+100,2.5,0),COLOR007700;
STICKLINE(gspt10< 0 AND gspt10<=REF(gspt10,1),100,gspt10+100,2,0),COLOR009900;
STICKLINE(gspt10< 0 AND gspt10<=REF(gspt10,1),100,gspt10+100,1.5,0),COLOR00BB00;
STICKLINE(gspt10< 0 AND gspt10<=REF(gspt10,1),100,gspt10+100,1,0),COLOR00DD00;
STICKLINE(gspt10< 0 AND gspt10<=REF(gspt10,1),100,gspt10+100,0.5,0),COLOR00F000;
STICKLINE(gspt10< 0 AND gspt10<=REF(gspt10,1),100,gspt10+100,0.2,0),COLORGREEN;
STICKLINE(gspt10=0 AND REF(gspt10,1)>=0,100,gspt10+100,8,0),COLORBROWN;
STICKLINE(gspt10=0 AND REF(gspt10,1)< 0,100,gspt10+100,8,0),COLORWHITE;
STICKLINE(gspt15>REF(gspt15,1),gspt13,gspt15,2.5,0),COLOR555555;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14>20,gspt14,20,2.5,0),COLOR880088;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14>20,gspt14,20,2,0),COLOR880088;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14>20,gspt14,20,1.5,0),COLORAA00AA;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14>20,gspt14,20,1,0),COLORCC00CC;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14>20,gspt14,20,0.5,0),COLOREE00EE;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14>20,gspt14,20,0.1,0),COLORFF44FF;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14>20,gspt14,20,2.5,0),COLORFF9900;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14>20,gspt14,20,2,0),COLORFFBB00;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14>20,gspt14,20,1.5,0),COLORFFCC00;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14>20,gspt14,20,1,0),COLORFFDD00;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14>20,gspt14,20,0.5,0),COLORFFEE00;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14>20,gspt14,20,0.1,0),COLORCYAN;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14< 20,gspt14,0,2.5,0),COLOR0000AA;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14< 20,gspt14,0,2,0),COLOR0000BB;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14< 20,gspt14,0,1.5,0),COLOR0000CC;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14< 20,gspt14,0,1,0),COLOR0000DD;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14< 20,gspt14,0,0.5,0),COLOR0000EE;
STICKLINE(gspt14>REF(gspt14,1) AND gspt14< 20,gspt14,0,0.1,0),COLORRED;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14< 20,gspt14,0,2.5,0),COLORAA0000;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14< 20,gspt14,0,1.5,0),COLORCC0000;
STICKLINE(gspt14<=REF(gspt14,1) AND gspt14< 20,gspt14,0,0.5,0),COLORBLUE;
STICKLINE(gspt16>REF(gspt16,1),gspt14,gspt16,2.5,0),COLOR117777;
STICKLINE(gspt16>REF(gspt16,1),gspt14,gspt16,2,0),COLOR119999;
STICKLINE(gspt16>REF(gspt16,1),gspt14,gspt16,1.5,0),COLOR11BBBB;
STICKLINE(gspt16>REF(gspt16,1),gspt14,gspt16,1,0),COLOR11DDDD;
STICKLINE(gspt16>REF(gspt16,1),gspt14,gspt16,0.5,0),COLOR44FFFF;
STICKLINE(gspt16>REF(gspt16,1),gspt14,gspt16,0.1,0),COLOR44FFFF;
STICKLINE(gspt14>gspt16 AND gspt16>50,gspt14,gspt16,2.5,0),COLOR0000AA;
STICKLINE(gspt14>gspt16 AND gspt16>50,gspt14,gspt16,1.5,0),COLOR0022CC;
STICKLINE(gspt14>gspt16 AND gspt16>50,gspt14,gspt16,0.5,0),COLOR0055FF;
STICKLINE(gspt14>gspt16 AND gspt16< 50 AND gspt14>50 AND gspt16>REF(gspt16,1),gspt14,50,2.5,0),COLOR0000AA;
STICKLINE(gspt14>gspt16 AND gspt16< 50 AND gspt14>50 AND gspt16>REF(gspt16,1),gspt14,50,1.5,0),COLOR071378;
STICKLINE(gspt14>gspt16 AND gspt16< 50 AND gspt14>50 AND gspt16>REF(gspt16,1),gspt14,50,1.5,0),COLOR0022CC;
STICKLINE(gspt14>gspt16 AND gspt16< 50 AND gspt14>50 AND gspt16>REF(gspt16,1),gspt14,50,1,0),COLOR0022CC;
STICKLINE(gspt14>gspt16 AND gspt16< 50 AND gspt14>50 AND gspt16>REF(gspt16,1),gspt14,50,0.5,0),COLOR0055FF;
STICKLINE(gspt14>gspt16 AND gspt16< 50 AND gspt14>50 AND gspt16>REF(gspt16,1),gspt14,50,0.1,0),COLOR4070FF;
STICKLINE(gspt14>80,gspt14,gspt14-(gspt14-80)/2,2.5,0),COLOR00AA00;
STICKLINE(gspt14>80,gspt14,gspt14-(gspt14-80)/2,1.5,0),COLOR00CC00;
STICKLINE(gspt14>80,gspt14,gspt14-(gspt14-80)/2,0.5,0),COLORGREEN;
STICKLINE(gspt10>0 AND gspt10<=REF(gspt10,1),100,gspt10+100,2.5,0),COLOR117777;
STICKLINE(gspt10>0 AND gspt10<=REF(gspt10,1),100,gspt10+100,2,0),COLOR119999;
STICKLINE(gspt10>0 AND gspt10<=REF(gspt10,1),100,gspt10+100,1.5,0),COLOR11BBBB;
STICKLINE(gspt10>0 AND gspt10<=REF(gspt10,1),100,gspt10+100,1,0),COLOR11DDDD;
STICKLINE(gspt10>0 AND gspt10<=REF(gspt10,1),100,gspt10+100,0.5,0),COLOR44FFFF;
STICKLINE(gspt10>0 AND gspt10<=REF(gspt10,1),100,gspt10+100,0.1,0),COLOR44FFFF;
STICKLINE(gspt14<=10,gspt14,0,5,0),COLORYELLOW;