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;
趋势线1: EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),LINETHICK2,COLORred;
趋势线2: EMA(REF(趋势线1,1),3),LINETHICK2,COLOR00FFFF;
均线: EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK2,COLORblue;{COLORFF0000;}
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;
VAR1:= 100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR2:= 100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR3:= VAR1<REF(VAR2,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR3 AND COUNT(VAR3,30)=1,HIGH*1.095,'大资金'),COLOR008000;
DRAWTEXT(VAR3 AND COUNT(VAR3,30)=1,HIGH*1.06,'进▼场'),COLOR008000;
Y1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.09),0.9),3),1);
DRAWtext(CROSS(CLOSE,Y1),LOW,'买'),ColorYELLOW;
STICKLINE(CROSS(Y1,CLOSE),h*1.05,h,1,0),COLORwhite;
DRAWtext(CROSS(Y1,CLOSE),HIGH*1.05,'卖'),colorwhite;
SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2);
SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O;
MR:=SC AND COUNT(SS,2);
买1:=MR AND NOT(REF(MR,1));
STICKLINE(买1,L,L*0.95,1,0),COLORRED;
DRAWTEXT(买1,L*0.95, '必涨'),COLORRED;
VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);
STICKLINE(VAR3P>90,L,L*0.92,1,0),COLORFF00FF;
DRAWTEXT(VAR3P>90,LOW*0.92,'追'),COLORFF00FF;
VAR1Q:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2Q:=SMA(ABS(LOW-VAR1Q),13,1)/SMA(MAX(LOW-VAR1Q,0),10,1);
VAR3Q:=EMA(VAR2Q,10);
VAR4Q:=LLV(LOW,33);
VAR5Q:=EMA(IF(LOW<=VAR4Q,VAR3Q,0),5);
主力进场:=FILTER(VAR5Q>REF(VAR5Q,1),5);
DRAWTEXT(FILTER(VAR5Q>REF(VAR5Q,1),5),LOW*0.995,'↑'),COLORFF0000;
DRAWTEXT(FILTER(VAR5Q>REF(VAR5Q,1),5),LOW*0.96,'主力'),COLORFF0000;
STICKLINE(FILTER(VAR5Q>REF(VAR5Q,1),5),CLOSE,OPEN,5,0),COLORFF0000;
STICKLINE(FILTER(VAR5Q>REF(VAR5Q,1),5),LOW,HIGH,1,0),COLORFF0000;
|