JQCB:=EMA(CLOSE,3);
H1:=HIGH;
HH:=HHV(HIGH,21);
L1:=LOW;
LL:=LLV(LOW,21);
IF H1[DATACOUNT]=HH[DATACOUNT] THEN BEGIN
IF L1[DATACOUNT]=LL[DATACOUNT] THEN BEGIN
END;
END;
顶:HH,PRECISION2,color8293;
底:LL,PRECISION2,color8900;
DSCJ1:=PEAKBARS(3,N,1);
DSCJ2:=TROUGHBARS(3,N,1);
DSCJ3:=PEAKBARS(2,N,1);
分界:MA(EMA(MAX(CLOSE,OPEN),3),DSCJ1+1),LINETHICK0,PRECISION2,colorFFB900;
点石:MA(LLV(JQCB,3),DSCJ2+1),LINETHICK0,PRECISION2,colorFF00FF;
成金:MA(HHV(JQCB,1),DSCJ3+1),LINETHICK0,PRECISION2,colorFFFF;
F:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
P1:=IF(CLOSE<REF(OPEN,1) AND F<0,1,0);
P3:=IF(CLOSE>REF(OPEN,1) AND F>0,1,0);
P2:=IF(CLOSE<REF(OPEN,2) AND F<0,1,0);
P4:=IF(CLOSE>REF(OPEN,2) AND F>0,1,0);
买D5:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1;
卖D6:=P3=0 AND REF(P3,1)=1 AND P4=0 AND REF(P4,1)=1;
AS:=ZIG(3,3);
涨AL:=CROSS(AS,REF(AS,1));
跌AG:=CROSS(REF(AS,1),AS);
买点:=FILTER((TROUGHBARS(3,15,1)<4)=1,3);
卖点:=FILTER((PEAKBARS(3,15,1)<4)=1,3);
STICKLINE(OPEN>=CLOSE,HIGH,LOW,0,0),colorFFFF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),colorFFFF00;
STICKLINE(CLOSE>=OPEN,LOW,HIGH,0,0),color5050FF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0),color5050FF;
STICKLINE(买点,LOW,(OPEN+CLOSE)/2,0,0),colorFFFFFF;
STICKLINE(买点,CLOSE,(OPEN+CLOSE)/2,7,0),colorFFFFFF;
STICKLINE(卖点,HIGH,(OPEN+CLOSE)/2,0,0),colorFFFF;
STICKLINE(卖点,CLOSE,(OPEN+CLOSE)/2,7,0),colorFFFF;
STICKLINE(买D5 AND 涨AL,LOW,(OPEN+CLOSE)/2,0,0),colorFFFFFF;
STICKLINE(买D5 AND 涨AL,OPEN,(OPEN+CLOSE)/2,7,0),colorFFFFFF;
STICKLINE(卖D6 AND 跌AG,LOW,(OPEN+CLOSE)/2,0,0),color3EA63E;
STICKLINE(卖D6 AND 跌AG,OPEN,(OPEN+CLOSE)/2,7,0),color3EA63E;
PARTLINE(DSCJ1>0,分界),colorFFB900;
PARTLINE(DSCJ2>0,点石),colorFF00FF;
PARTLINE(DSCJ3>0,成金),LINEDOT,colorFFFF;
KS:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100);
RKS:=REF(KS,1);
MLS:=RKS/KS>=1.23 AND RKS>=8 AND CLOSE/REF(CLOSE,1)>=1.02;
超跌:STICKLINE(KS>=8,HIGH,LOW,0,1),LINETHICK1,colorFFFFFF;
STICKLINE(KS>=8,OPEN,CLOSE,7,1),LINETHICK1,colorFFFFFF;
反弹:STICKLINE(MLS=1,HIGH,LOW,0,1),LINETHICK1,colorFF00FF;
STICKLINE(MLS=1,OPEN,CLOSE,7,1),LINETHICK1,colorFF00FF;
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;
鼠仓:BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,color99FF;
DRAWTEXT(鼠仓,LOW*0.99,' 鼠仓'),color99FF;
STICKLINE(鼠仓,HIGH,LOW,2,0),color99FF;
STICKLINE(鼠仓,OPEN,CLOSE,2,0),color99FF;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);
STICKLINE(FB,LOW,LOW-0.09,4,0),colorFF;
DRAWTEXT(FB,LOW-0.58,'★红牛'),ALIGN0,colorFF;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛步'),PXDN2,colorFF00;
F:=COST(5);
J:=COST(95);
M:=COST(15);
B:=COST(85);
F1:=(J-F)/(F+J)*100;
M1:=(B-M)/(B+M)*100;
成本集中度90:=F1;
成本集中度70:=M1;
获利盘:=WINNER(CLOSE)*100;
套牢盘:=100*(1-WINNER(CLOSE));
日换手率:=VOL/CAPITAL*100;
TR:=CLOSE*2.5/100+CLOSE;
HD:=CLOSE-CLOSE*2.5/100;
浮筹筹码:=(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))/WINNER(HHV(HIGH,0))*100;
AA:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));
主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*(HIGH-OPEN+CLOSE-LOW),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,-AA*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,-AA*(HIGH-LOW),-VOL/2));
买卖比:=主动买盘/主动卖盘;
卖盘:=VOL-主动买盘;
卖盘大:=(卖盘-主动买盘)/卖盘>0.6;
买盘大:=(主动买盘-卖盘)/主动买盘>0.6;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
VD6:=VD1*VD5;
VD7:=VD2*VD5;
VD8:=VD3*VD5;
VD9:=VD4*VD5;
买入量:=VD9+VD8;
卖出量:=VD6+VD7;
卖量:=VOL-买入量;
卖量大:=(卖量-买入量)/卖量>0.4;
买量大:=(买入量-卖量)/买入量>0.4;
买入资金:=买入量*CLOSE/100;
卖出资金:=卖出量*CLOSE/100;
资金进出:=买入资金-卖出资金;
买卖资金比:=买入资金/卖出资金;
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'获利盘:'+NUMTOSTR(获利盘,2)+' \n'+'套牢盘:'+NUMTOSTR(套牢盘,2)+' \n'+'浮筹筹码:'+NUMTOSTR(浮筹筹码,2)+' \n'+'市场平均成本:'+NUMTOSTR(COST(50),2)+' \n'+'主力平均成本:'+NUMTOSTR(COST(4),2)+' \n'+'控盘平均成本:'+NUMTOSTR(COST(30),2)+' \n'+'拉升平均成本:'+NUMTOSTR(COST(75),2)+' \n'+'顶部平均成本:'+NUMTOSTR(COST(95),2)+' \n'+'底部平均成本:'+NUMTOSTR(COST(0.05),2)+' \n'+'成本集中度70:'+NUMTOSTR(成本集中度70,2)+' \n'+'成本集中度90:'+NUMTOSTR(成本集中度90,2)+' \n'+'买卖资金比:'+NUMTOSTR(买卖资金比,2)+' \n'+'当日买卖比:'+NUMTOSTR(买卖比,2)+' \n'+'当日买量:'+NUMTOSTR(买入量,2)+' \n'+'当日卖量:'+NUMTOSTR(卖出量,2)+' \n'+'当日买卖量:'+NUMTOSTR(VOL,2)+' \n'+'资金进出万元:'+NUMTOSTR(资金进出,2)+' \n'+'买入资金累计万元:'+NUMTOSTR(买入资金,2)+' \n'+'卖出资金累计万元:'+NUMTOSTR(卖出资金,2)+' \n'),ALIGN4,colorCCFFCC;
B:=BARSCOUNT(CLOSE)=SYSPARAM(2);
D:=BARSLAST(B);
HH:=HHV(HIGH,D);
换手率:=100*VOL/CAPITAL;
GJ:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
明阻力:=LOW+GJ-LOW+CLOSE-LOW;
明支撑:=LOW+CLOSE-GJ;
今阻力:=REF(明阻力,1);
今支撑:=REF(明支撑,1);
阻力位:=IF(CLOSE>200,CLOSE*1.01,CLOSE*1.07);
阻力位1:=IF(CLOSE<10,CLOSE*1.05,阻力位);
止损位:=IF(CLOSE>200,CLOSE*0.99,CLOSE*0.93);
止损位1:=IF(CLOSE<10,CLOSE*0.95,止损位);
DRAWTEXT(BARSTATUS=2,HH,'---------------------------------- '),ALIGN2,PXDN2,colorFFFFFF;
DRAWTEXT(BARSTATUS=2 AND CLOSE>=今支撑,HH,' 今支撑=:'+NUMTOSTR(今支撑,2)+' '),ALIGN2,PXDN50,colorFF00FF;
DRAWTEXT(BARSTATUS=2 AND CLOSE<今支撑,HH,' 今支撑=:'+NUMTOSTR(今支撑,2)+' '),ALIGN2,PXDN50,colorFF;
DRAWTEXT(BARSTATUS=2 AND CLOSE>=今阻力,HH,' 今阻力=:'+NUMTOSTR(今阻力,2)+' '),ALIGN2,PXDN20,colorFF;
DRAWTEXT(BARSTATUS=2 AND CLOSE<今阻力,HH,' 今阻力=:'+NUMTOSTR(今阻力,2)+' '),ALIGN2,PXDN20,colorFF00;
DRAWTEXT(BARSTATUS=2,HH,' 明阻力=:'+NUMTOSTR(明阻力,2)+' '),ALIGN2,PXDN20,colorFFFF;
DRAWTEXT(BARSTATUS=2,HH,' 明支撑=:'+NUMTOSTR(明支撑,2)+' '),ALIGN2,PXDN50,colorFFFF;
DRAWTEXT(BARSTATUS=2,HH,'---------------------------------- '),ALIGN2,PXDN70,colorFFFFFF;
DRAWTEXT(BARSTATUS=2 AND VOL>REF(VOL,1) AND MA(VOL,5)>REF(MA(VOL,5),1),HH,'今成交量大于昨,且有继续增大趋势'+' &nbs |