现价RAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE,COLOR545454;
VARR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
DRAWKLINE(H,O,L,C);
TJ:=VOL>=REF(V,1)*1.95 AND C>REF(C,1)*1.01;
STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORYELLOW;
倍量:VOL>=REF(V,1)*1.9 AND C>=O,NODRAW;
DRAWTEXT(倍量,LOW*0.99,''),COLORYELLOW;
STICKLINE(倍量,OPEN,CLOSE,0.5,0),COLORYELLOW;
K1:=SUMBARS(倍量,1);
STICKLINE(K1,REF(O,K1-1),REF(O,K1-1),10,0),COLORYELLOW;
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORYELLOW;
价涨不破:=LLV(L,3)>=REF(L,3);
三日量缩:=HHV(VOL,3)<REF(VOL,3);
梯量柱:=VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2);
梯黄金柱:=REF(梯量柱,3) AND 价涨不破 AND 三日量缩;
STICKLINE(梯量柱,OPEN,CLOSE,0.7,0),COLORLIRED;
STICKLINE(梯黄金柱,LLV(L,3),LLV(L,3),30,1),COLORD9D919;
缩倍柱:=REF(V,1)>=V*1.9 AND C/REF(C,1)>1.005;
STICKLINE(缩倍柱,C,O,0.5,0),COLORGREEN;
缩倍柱1:=REF(V,1)>=V*1.9 AND C/REF(C,1)<=1;
STICKLINE(缩倍柱1,C,O,0.5,0),COLORGREEN;
高量柱:=C/REF(C,1)>=1.03 AND VOL=HHV(VOL,35);
STICKLINE(高量柱,OPEN,CLOSE,0.7,0),COLORRED;
VAR2:=1*AMOUNT;
月天量:=VAR2=HHV(VAR2,20);
季天量:=VAR2=HHV(VAR2,60);
百天量:=VAR2=HHV(VAR2,100);
年天量:=VAR2=HHV(VAR2,240);
天量: (季天量 OR 百天量 OR 年天量),NODRAW;
DRAWTEXT(天量,LOW*0.95,''),COLORRED;
STICKLINE(天量,OPEN,CLOSE,0.5,0),COLORRED;
K11:=SUMBARS(天量,1);
STICKLINE(K11,REF(C,K11-1),REF(C,K11-1),10,0),COLORRED;
双阴出货:=FILTER(COUNT(C<O,2)=2 AND L<REF(C,1),5);
DRAWTEXT(双阴出货,H,'!'),COLORGREEN;
A:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C>O;
B:=ABS(MIN(C,O)-L)/ABS(MAX(C,O)-MIN(C,O))>1.7 AND C<O;
STICKLINE(A,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(B,OPEN,CLOSE,3,0),COLOR00FF00;
STICKLINE(CLOSE>OPEN,(CLOSE+OPEN)/2,(CLOSE+OPEN)/2,2,1),COLORRED;
昨中价位:REF(OPEN,1)+REF(CLOSE,1)/2,COLORYELLOW,NODRAW;
上三分之一位: (MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),NODRAW;
下三分之一位: (MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;{资金}
TM:=V-MA(V,10);{量填满}
一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
DRAWTEXT(一穿三,L-0.012,''),COLORFF00FF;
STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;
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)),COLORD9D919,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORD9D919;
{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;
STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;};
前期低位:REF(LOW,BARSLAST(LD)),COLORFF00FF,POINTDOT;
STICKLINE(CLOSE,前期高位,前期高位,10,0),COLORGREEN;
STICKLINE(CLOSE,前期低位,前期低位,10,0),COLORGREEN;
顶:=MAX(C,O);底:=MIN(C,O);
峰:=顶=REFX(HHV(顶,5),2);
谷:=底=REFX(LLV(底,5),2);
超跌:=C/HHV(顶,20)<0.7;
刹车:=谷 AND 超跌;
DRAWTEXT(刹车,2*L-顶,'刹车'),COLORFF00FF;
凹间峰:=COUNT(刹车,8)>0 AND 峰;
DRAWTEXT(凹间峰,2*H-底,''),COLORFF00FF;
凹间峰顶:=REF(顶,BARSLAST(凹间峰));
换档:=COUNT(凹间峰,8)>0 AND 谷;
DRAWTEXT(换档,2*L-H,'换档'),COLORGREEN;
上车:=COUNT(换档,8)>0 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))=1;
DRAWTEXT(上车,凹间峰顶,'←←←上车'),COLORFF00FF;
DRAWNUMBER(COUNT(凹间峰,2)=1 AND COUNT(凹间峰,1)=0,凹间峰顶,凹间峰顶),COLORBLUE;
DRAWTEXT(C<凹间峰顶 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))<1,凹间峰顶,''),COLORGREEN;
买线:=EMA(C,4);
卖线:=EMA(SLOPE(C,20)*10+C,35);
DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,''),COLORGREEN;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,''),COLOR00FF00 ;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+
13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7
*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
ZZ:=(O+H+L)/3;
YC:=(H+L)/2;
YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;
今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;
明日买点:YCHJX,LINETHICK0;
昨测今日买点:REF(YCHJX,1),LINETHICK0;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),''),COLOR00FF00;
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF; |