用法:当K线出现黄金K线时,可关注追踪,出现白金K线时,可以买入。
M1:=5;M2:=10;M3:=20;M4:=30;M5:=60;M6:=240;
MA5:MA(CLOSE,M1),COLORWHITE;
MA10:MA(CLOSE,M2),COLORYELLOW;
MA20:MA(CLOSE,M3),COLORRED;
MA30:MA(CLOSE,M4),COLORBLUE;
MA60:MA(CLOSE,M5),COLORGREEN;
MA240:MA(CLOSE,M6),COLORMAGENTA,DOTLINE,LINETHICK1;
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,5);
VAR3:=EMA(CLOSE,10);
VAR4:=EMA(CLOSE,20);
VAR5:=EMA(CLOSE,30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;
VAR9:=EMA(VAR7,8);
STICKLINE(VAR7REF(加码价,1);
STICKLINE(加码条件,HIGH,LOW,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,OPEN,CLOSE,2.5,0),COLOR0033FF;
STICKLINE(加码条件,OPEN,CLOSE,2.1,0),COLOR00BEFF;
STICKLINE(加码条件,OPEN,CLOSE,1.7,0),COLOR13BCFF;
STICKLINE(加码条件,OPEN,CLOSE,1.3,0),COLOR13D1FF;
STICKLINE(加码条件,OPEN,CLOSE,0.9,0),COLOR00D6FF;
STICKLINE(加码条件,OPEN,CLOSE,0.4,0),COLOR13E5FF;
STICKLINE(加码条件,OPEN,CLOSE,0,0),COLOR00F6FC;
TIM:=IF(C,1,0);
缩倍柱:=(VOL*1.95=1.95*REF(VOL,1))*TIM;
四日前倍量柱:=(REF(VOL,3)>1.95*REF(VOL,4))*TIM;
DRAWTEXT(百日低量,HIGH*1.01,’↙百日低量’),COLORRED;
年:=YEAR,NODRAW;
月:=MONTH,NODRAW;
星期:=WEEKDAY,NODRAW;
日1:=DATETODAY(DATE);
上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
自然日:=日1-DATETODAY(上市日)+1;
ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1)
OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
本周第几天:=BARSLAST(ZB)+1;
本月第几天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1;
MA01:=REF(C,本周第几天);
MA02:=REF(MA01,本周第几天);
MA03:=REF(MA02,本周第几天);
MA04:=REF(MA03,本周第几天);
MA05:=REF(MA04,本周第几天);
MA06:=REF(MA05,本周第几天);
MA07:=REF(MA06,本周第几天);
MA08:=REF(MA07,本周第几天);
MA09:=REF(MA08,本周第几天);
十周价:=(C+MA01+MA02+MA03+MA04+MA05+MA06+MA07+MA08+MA09)/10;
出击突破:REFDATE(十周价,DATE),COLORFF0080,DOTLINE;
DRAWTEXT(ISLASTBAR,出击突破,’ 出击突破’),COLORFF0080;
DRAWICON(CROSS(C,出击突破),L-0.16,9);
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
B2:=FILTER(A2,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;