源码
估:=(2*CLOSE+LOW+HIGH)/4;
界:=SLOPE(CLOSE,21)*20+CLOSE;
文:=EMA(估,40)*0.85;
风险线:EMA(估,40)*1.15,POINTDOT,COLORFF33FF;
必卖线:EMA(估,55)*1.3,CIRCLEDOT,COLORYELLOW;
捞钱线:EMA(估,55),COLORWHITE,POINTDOT;
保本线:(捞钱线+文)/2,CIRCLEDOT,COLOR00FF33;
STICKLINE(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,OPEN,CLOSE,8,0),COLORRED;
STICKLINE(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,LOW,HIGH,0.5,0),COLORRED;
STICKLINE(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),LOW,HIGH,0.5,0),COLORYELLOW;
STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),OPEN,CLOSE,8,0),COLORGREEN;
STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),LOW,HIGH,0.5,0),COLORGREEN;
DRAWICON(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,保本线*0.97,4);
DRAWICON(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),LOW*0.97,8);
DRAWICON(FILTER(CROSS(必卖线,CLOSE),3),HIGH*1.03,5);
DRAWICON(FILTER(CROSS(风险线,CLOSE),2),HIGH*1.01,9);
DRAWTEXT((SYSPARAM(2) = BARPOS),CLOSE,('版块:' + BLKNAME)),ALIGN4,colorfffff;
Var1:=LLV(LOW,1095);
Var2:=HHV(HIGH,1095);
Var3:=Var2-Var1;
DRAWTEXT(BARPOS=SYSPARAM(3),Var2,'最高价 : '+NUMTOSTR(Var2,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(BARPOS=SYSPARAM(3),Var1,'最低价 : '+NUMTOSTR(Var1,2)),ALIGN2,COLORFFFF00;
H191:Var3*0.191+Var1,linethick2,COLORYELLOW;
DRAWTEXT(BARPOS=SYSPARAM(3),H191,'19.1% : '+NUMTOSTR(H191,2)),ALIGN2,COLORFFFF00;
H382: Var3*0.382+Var1,COLORGREEN;
DRAWTEXT(BARPOS=SYSPARAM(3),H382,'38.2% : '+NUMTOSTR(H382,2)),ALIGN2,COLORFFFF00;
H050: Var3*0.5+Var1,linethick2,COLORRED;
DRAWTEXT(BARPOS=SYSPARAM(3),H050,'50.0% : '+NUMTOSTR(H050,2)),ALIGN2,COLORFFFF00;
H618: Var3*0.618+Var1,COLORMAGENTA;
DRAWTEXT(BARPOS=SYSPARAM(3),H618,'61.8% : '+NUMTOSTR(H618,2)),ALIGN2,COLORFFFF00;
H809: Var3*0.809+Var1,linethick2,COLORYELLOW;
DRAWTEXT(BARPOS=SYSPARAM(3),H809,'80.9% : '+NUMTOSTR(H809,2)),ALIGN2,COLORFFFF00;
低价: Var1,COLORRED,linethick2;
高价: Var2,COLORRED,linethick2;