A:=(COST(99.999)-COST(0.001))/10;
J0:=COST(0.001);
J1:=J0+A;
J2:=J0+2*A;
J3:=J0+3*A;
J4:=J0+4*A;
J5:=J0+5*A;
J6:=J0+6*A;
J7:=J0+7*A;
J8:=J0+8*A;
J9:=J0+9*A;
J10:=COST(99.999);
Q1:=WINNER(J1);
Q2:=WINNER(J2)-WINNER(J1);
Q3:=WINNER(J3)-WINNER(J2);
Q4:=WINNER(J4)-WINNER(J3);
Q5:=WINNER(J5)-WINNER(J4);
Q6:=WINNER(J6)-WINNER(J5);
Q7:=WINNER(J7)-WINNER(J6);
Q8:=WINNER(J8)-WINNER(J7);
Q9:=WINNER(J9)-WINNER(J8);
Q10:=1-WINNER(J9);
最大筹码区:=MAX(Q1,MAX(Q2,MAX(Q3,MAX(Q4,MAX(Q5,MAX(Q6,MAX(Q7,MAX(Q8,MAX(Q9,Q10)))))))));
筹码密集价:IF(最大筹码区=Q1,(J1+J0)/2,IF(最大筹码区=Q2,(J1+J2)/2,
IF(最大筹码区=Q3,(J3+J2)/2,IF(最大筹码区=Q4,(J4+J3)/2,
IF(最大筹码区=Q5,(J5+J4)/2,IF(最大筹码区=Q6,(J6+J5)/2,
IF(最大筹码区=Q7,(J7+J6)/2,IF(最大筹码区=Q8,(J8+J7)/2,
IF(最大筹码区=Q9,(J9+J8)/2,IF(最大筹码区=Q10,(J10+J9)/2,0)))))))))),NODRAW;
筹码密集度:(WINNER(筹码密集价*1.1)-WINNER(筹码密集价*0.9))*100;
日相对筹码价位:=(筹码密集价-COST(0.001))/(COST(99.999)-COST(0.001))*100;
年股价相对位:=(C-LLV(L,250))/(HHV(H,240)-LLV(L,250))*100;
年最大收益:=(C-LLV(L,250))/LLV(L,250)*100;
低位密集:=筹码密集度>70 AND 日相对筹码价位<40 AND 年股价相对位<50 AND 年最大收益<50;
STICKLINE(低位密集,0,50,0,0),COLORLIRED;
高位密集:=筹码密集度>70 AND 日相对筹码价位>60 AND 年股价相对位>80 AND 年最大收益>100;
STICKLINE(高位密集,50,100,0,0),COLORLIGREEN;
当前获利盘%:WINNER(C)*100,COLORWHITE;
STICKLINE(WINNER(C)>0.9 AND V/CAPITAL<3/100,0,100,0,0),COLORMAGENTA;
浮筹比例%:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,COLORCYAN,NODRAW;
~90%成本集中:(COST(95)-COST(5))/COST(99.9999)*100,COLORWHITE,NODRAW;
~70%成本集中:(COST(85)-COST(15))/COST(99.9999)*100,COLORWHITE,NODRAW;