趋势线1: IF(close>0,EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),0),LINETHICK2,COLOR0000FF;
趋势线2: IF(close>0,EMA(REF(趋势线1,1),3),0),LINETHICK2,COLOR00FFFF;
均线: EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK2,COLORFF0000;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,9*0.5,0),COLORFF5B00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8*0.5,0),COLORFF6C00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7*0.5,0),COLORFF7B00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6*0.5,0),COLORFF9C00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5*0.5,0),COLORFFBE00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.5*0.5,0),COLORFFCC00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5*0.5,0),COLORFFFF00;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,9*0.5,0),COLOR070084;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8*0.5,0),COLOR0000A3;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7*0.5,0),COLOR0000B7;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6*0.5,0),COLOR0000CD;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5*0.5,0),COLOR0000E9;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3*0.5,0),COLOR0754E9;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.5*0.5,0),COLOR076EF3;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1*0.5,0),COLOR077BF3;
STICKLINE(CLOSE>OPEN,OPEN,LOW,1*0.5,0),COLOR0726CA;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,1*0.5,0),COLOR0726CA;
STICKLINE(OPEN>CLOSE,CLOSE,LOW,1*0.5,0),COLORDE9100;
STICKLINE(OPEN>CLOSE,OPEN,HIGH,1*0.5,0),COLORDE9100;
AA1:= AMOUNT/VOL;
BB1:= LOW<AA1*0.9;
CC1:= (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
DD1:= LOW<MA(CLOSE,5)*0.921;
EE1:= VOL<MA(VOL,5)*1.5;
FF1:= BB1 AND CC1 AND DD1 AND EE1;
买: FILTER(FF1,3) ,LINETHICK0,COLORFFFFFF;
到5%:= IF((CLOSE-REF((OPEN+CLOSE)/2,BARSLAST(买)))/REF((OPEN+CLOSE)/2,BARSLAST(买))>=0.05,1,0);
到10%:= IF((CLOSE-REF((OPEN+CLOSE)/2,BARSLAST(买)))/REF((OPEN+CLOSE)/2,BARSLAST(买))>=0.1,1,0);
到15%:= IF((CLOSE-REF((OPEN+CLOSE)/2,BARSLAST(买)))/REF((OPEN+CLOSE)/2,BARSLAST(买))>=0.15,1,0);
到20%:= IF((CLOSE-REF((OPEN+CLOSE)/2,BARSLAST(买)))/REF((OPEN+CLOSE)/2,BARSLAST(买))>=0.2,1,0);
到10%位置:= IF(到5%=1,1.07,1.045);
到15%位置:= IF(到10%+到5%=2,1.095,IF(到10%+到5%=1,1.07,1.045));
DRAWTEXT(到15% AND REF(到15%,1)=0 AND COUNT(到15%,BARSLAST(买))=1 ,HIGH*1.015,'▼'),COLOR00FFFF;
DRAWTEXT(到15% AND REF(到15%,1)=0 AND COUNT(到15%,BARSLAST(买))=1 ,HIGH*到15%位置,'15%'),COLOR00FFFF;
DRAWTEXT(到20% AND REF(到20%,1)=0 AND COUNT(到20%,BARSLAST(买))=1 ,HIGH*1.015,'▼'),COLOR00FFFF;
DRAWTEXT(到20% AND REF(到20%,1)=0 AND COUNT(到20%,BARSLAST(买))=1 ,HIGH*1.045,'20%'),COLOR00FFFF;
DRAWTEXT(到10% AND REF(到10%,1)=0 AND COUNT(到10%,BARSLAST(买))=1 ,HIGH*1.015,'▼'),COLOR00FFFF;
DRAWTEXT(到10% AND REF(到10%,1)=0 AND COUNT(到10%,BARSLAST(买))=1 ,HIGH*到10%位置,'10%'),COLOR00FFFF;
DRAWTEXT(买 ,LOW*0.99,'▲'),COLOR0000FF;
DRAWTEXT(买 ,LOW*0.96,'买'),COLOR0000FF;
DRAWTEXT(到5% AND REF(到5%,1)=0 AND COUNT(到5%,BARSLAST(买))=1 ,HIGH*1.015,'▼'),COLOR00FFFF;
DRAWTEXT(到5% AND REF(到5%,1)=0 AND COUNT(到5%,BARSLAST(买))=1 ,HIGH*1.045,'5%'),COLOR00FFFF;