分时均线
分时主图【分时均线】
a1:=1;
a2:=DYNAINFO(14);
a5:=DYNAINFO(17);
a6:=(MA(CLOSE,0)) * a1;
a7:=(MA(a6,0)) * a1;
a8:=a6 - a7;
MA30:=EMA(CLOSE,30);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
现价:=CLOSE;
PARTLINE(C,C>=REF(C,1),RGB(255,0,0),C<=REF(C,1),RGB(0,255,0)),LINETHICK2;
强弱:=EMA(CLOSE,900);
STICKLINE((MA30>强弱),MA30,强弱,1,0),colorred;
STICKLINE((MA30<强弱),MA30,强弱,1,0),colorffff00;
分时压力:HHV(H,480),DOTLINE,coloryellow;
STICKLINE(FILTER(CROSS(C,REF(分时压力,1)),10),C*0.99,C,8,0),COLORGREEN;
T:=BARSCOUNT(C);
TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME0>39600 ,240) ;
DRAWTEXT(TP,L,'★突破'),colorffff00;
HHV(h,T),DOTLINE,coloryellow;
DP:=EMA(INDEXC,240)/EMA(C,480);
大盘对比:INDEXC/DP,colorCyan,linethick2;
N:=150;
BU:=BARSLAST((CLOSE = HHV(CLOSE,N)));
SE:=BARSLAST((CLOSE = LLV(CLOSE,N)));
KK1:=SE;
KK2:=BU;
DRAWICON(CROSS(KK1,KK2),(OPEN * 0.9999),1);
VAR1AA:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1AA-REF(VAR1AA,1))/REF(VAR1AA,1)*1000;
JJ:=DYNAINFO(11);
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10;
神:=EMA(财,M1);
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ3:=CROSS(财,神) AND 财<-0.3;
STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;
STJ02:=控盘>0;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;
有庄:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
DRAWICON(有庄,REF(CLOSE,1)*0.98,7),ALIGN1;
VAR0:=VOL/CLOSE/2;
VAR1:=SUM(IF(VAR0 > 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);
VAR2:=SUM(IF(VAR0 > 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);
VAR3:=SUM(IF(VAR0 < 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);
VAR4:=SUM(IF(VAR0 < 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);
机构买盘:=VAR1;
机构卖盘:=VAR2;
散户买盘:=VAR3;
散户卖盘:=VAR4;
上穿1:=CROSS(散户买盘,散户卖盘);
上穿2:=CROSS(机构买盘,机构卖盘);
选股:=上穿1 OR 上穿2;
N1:=150;
BU:=BARSLAST((CLOSE = HHV(CLOSE,N1)));
SE:=BARSLAST((CLOSE = LLV(CLOSE,N1)));
KK1:=SE;
KK2:=BU;
买入:=CROSS(KK1,KK2);
均线:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0)));
均线H:=(均线*1.007 );
均线L:=(均线/1.005 );
放量:=sum(VOL,6)>REF(ma(VOL,30),1)*10;
横盘:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)<1;
横涨:=横盘 AND 放量 AND (C>均线H);
横跌:=横盘 AND 放量 AND CROSS(均线L,C) ;
突破:=FILTER(横涨,100);
VERTLINE(突破,3),COLORFF00FF,LINETHICK2; |