M:=1.2;
TATR:=34;
N2:=TATR*1.05;
N3:=TATR+3;
AA1:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:IF(AA1>1,1,AA1)*100,COLORLIBLUE,NODRAW;
AA2:=REFDATE(HHV(V,100)/2,DATE);
STICKLINE(CURRBARSCOUNT=TATR,AA2*1.9,AA2*1.5,100,1),COLOR00DDDD;
STICKLINE(CURRBARSCOUNT=TATR,AA2*1.88,AA2*1.52,量能饱和度,0),COLOR0033FF;
STICKLINE(CURRBARSCOUNT=TATR,AA2*1.82,AA2*1.58,量能饱和度,0),COLOR0077FF;
STICKLINE(CURRBARSCOUNT=TATR,AA2*1.76,AA2*1.64,量能饱和度,0),COLOR0099FF;
STICKLINE(CURRBARSCOUNT=TATR,AA2*1.7,AA2*1.7,量能饱和度,0),COLORFFDD55;
DRAWTEXT(CURRBARSCOUNT=N3,AA2*1.82,'量能饱和度'),COLORBLUE;
volUME:VOL,VOLSTICK;
BB1:=12;
BB2:=26;
BB3:=9;
BB4:=EMA(CLOSE,BB1)-EMA(CLOSE,BB2);
BB5:=EMA(BB4,BB3);
macd:=(BB4-BB5)*2,COLORSTICK;
STICKLINE(BB4>BB5,0,VOL,3,0),COLORRED;
STICKLINE(BB4< BB5,0,VOL,3,0),COLORGREEN;
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
STICKLINE(J>D,VOL/2,VOL,3,0),COLORRED;
STICKLINE(J< D,VOL/2,VOL,3,0),COLORGREEN;
VAED:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
obv1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAED),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=MA(C,3);
限制:=IF(OBV3>=VOL,VOL,IF(OBV3< VOL,OBV3,0));
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,限制,2,0),COLORYELLOW;
MAVOL5:MA(VOLUME,5),LINETHICK1,COLORFFFFFF;
资金异动135:MA(VOLUME,135),LINETHICK2,COLORFF80FF;
主力洗盘35:MA(VOL,35),LINETHICK2,COLORFFFF80;
TT:=240/FROMOPEN;
比:=TT;
AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);
LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;
ZGD2:=CONST(ZGD);
ZDD:=LLV(L211,80);
ZDD2:=CONST(ZDD);
VAR4:=MA(CLOSE,20);
VAR5:=(CLOSE > MA(CLOSE,5));
VAR6:=(MA(CLOSE,5) > MA(CLOSE,10));
VAR7:=(CLOSE > MA(CLOSE,10));
VAR8:=(MA(CLOSE,5) > MA(CLOSE,20));
VAR9:=(CLOSE > MA(CLOSE,20));
VAR10:=REF(VAR4,1);
VAR11:=(VAR4 > VAR10);
VARVX:=(((((IF(VAR5,10,(0 - 10)) + IF(VAR6,10,(0 - 10))) + IF(VAR7,10,(0 - 10))) + IF(VAR8,10,(0 - 10))) + IF(VAR9,10,(0 - 10))) + IF(VAR11,10,(0 - 10)));
VARW:=(CLOSE / INDEXC);
VARW1:=MA(VARW,5);
VARW2:=MA(VARW,10);
VARW3:=MA(VOL,5);
VARW4:=MA(VOL,10);
J1:=CONST(IF( VARVX > 0,200,100));
J2:=CONST(IF( VARVX > 0,00,100));
J3:=CONST(IF( VARVX > 0,100,100));
ZGD3:=ZGD2;
ZDD3:=ZDD2;
ZGD4:=ZGD2;
VAR21:=CONST(IF(((crOSS(VARVX,1) AND (VARW3 >= VARW4)) AND (VARW >= VARW1)),1,0)),NODRAW;
VAR22:=CONST(IF(((CROSS(VARVX,1) AND (VARW3 < VARW4)) AND (VARW >= VARW1)),1,0));
VAR23:=CONST(IF(((CROSS(VARVX,1) AND (VARW3 > VARW4)) AND (VARW < VARW1)),1,0));
VAR24:=CONST(IF(((CROSS(VARVX,1) AND (VARW3 <= VARW4)) AND (VARW < VARW1)),1,0));
VAR25:=CONST(IF(((CROSS(1,VARVX) AND (VARW3 >= VARW4)) AND (VARW >= VARW1)),1,0));
VAR26:=CONST(IF(((CROSS(1,VARVX) AND (VARW3 < VARW4)) AND (VARW >= VARW1)),1,0));
VAR27:=CONST(IF(((CROSS(1,VARVX) AND (VARW3 >= VARW4)) AND (VARW < VARW1)),1,0));
VAR28:=CONST(IF(((CROSS(1,VARVX) AND (VARW3 < VARW4)) AND (VARW < VARW1)),1,0));
VAR29:=CONST(IF(((((VARVX >= 1) AND (REF(VARVX,1) > 0)) AND (VARW3 >= VARW4)) AND (VARW >= VARW1)),1,0));
VAR210:=CONST(IF(((((VARVX >= 1) AND (REF(VARVX,1) > 0)) AND (VARW3 < VARW4)) AND (VARW >= VARW1)),1,0));
VAR211:=CONST(IF(((((VARVX >= 1) AND (REF(VARVX,1) > 0)) AND (VARW3 >= VARW4)) AND (VARW < VARW1)),1,0)),NODRAW;
VAR212:=CONST(IF(((((VARVX >= 1) AND (REF(VARVX,1) > 0)) AND (VARW3 < VARW4)) AND (VARW < VARW1)),1,0));
VAR213:=CONST(IF(((((VARVX < 1) AND (REF(VARVX,1) < 0)) AND (VARW3 >= VARW4)) AND (VARW >= VARW1)),1,0));
VAR214:=CONST(IF(((((VARVX < 1) AND (REF(VARVX,1) < 0)) AND (VARW3 < VARW4)) AND (VARW >= VARW1)),1,0));
VAR215:=CONST(IF(((((VARVX < 1) AND (REF(VARVX,1) < 0)) AND (VARW3 >= VARW4)) AND (VARW < VARW1)),1,0));
VAR216:=CONST(IF(((((VARVX < 1) AND (REF(VARVX,1) < 0)) AND (VARW3 < VARW4)) AND (VARW < VARW1)),1,0));
DAPATATR:=CONST(IF((CROSS(VARVX,1) AND (VARW3 >= VARW4)),1,0));
VAR32:=CONST(IF((CROSS(VARVX,1) AND (VARW3 < VARW4)),1,0));
VAR33:=CONST(IF((CROSS(1,VARVX) AND (VARW3 >= VARW4)),1,0));
VAR34:=CONST(IF((CROSS(1,VARVX) AND (VARW3 < VARW4)),1,0));
VAR35:=CONST(IF((((VARVX >= 1) AND (REF(VARVX,1) > 0)) AND (VARW3 >= VARW4)),1,0));
VAR36:=CONST(IF((((VARVX >= 1) AND (REF(VARVX,1) > 0)) AND (VARW3 < VARW4)),1,0));
VAR37:=CONST(IF((((VARVX < 1) AND (REF(VARVX,1) < 0)) AND (VARW3 >= VARW4)),1,0));
VAR38:=CONST(IF((((VARVX < 1) AND (REF(VARVX,1) < 0)) AND (VARW3 < VARW4)),1,0));
MFI:=(HIGH-LOW)*1000000/(VOL*比);
绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM1:=CONST(绿灯);
衰退:=MFI< REF(MFI,1)AND VOL*比< REF(VOL,1);
MMM2:=CONST(衰退);
伪装:=MFI>=REF(MFI,1)AND VOL*比< REF(VOL,1);
MMM3:=CONST(伪装);
蛰伏:=MFI< REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM4:=CONST(蛰伏);
WJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,WJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);
V7:=(V2*V5);
V8:=(V3*V5);
V9:=(V4*V5);
买盘1:=DYNAINFO(23)*比;
卖盘1:=DYNAINFO(22)*比;
买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));
卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));
买盘:=IF(ISLASTBAR AND PERIOD=5 AND C< 300,买盘1,买盘2);
卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C< 300,卖盘1,卖盘2);
量大:=(卖盘+买盘)/REF(VOL,1)>2;
MMM5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;
MMM6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
MMM7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
MMM8:=CONST(买量大);
VAR51:=IF(VAR21=1,0.06+0.06,0.06);
VAR52:=IF(VAR22=1,VAR51+0.06,VAR51);
VAR53:=IF(VAR23=1,VAR52+0.06,VAR52);
VAR54:=IF(VAR24=1,VAR53+0.06,VAR53);
VAR55:=IF(VAR25=1,VAR54+0.06,VAR54);
VAR56:=IF(VAR26=1,VAR55+0.06,VAR55);
VAR57:=IF(VAR27=1,VAR56+0.06,VAR56);
VAR58:=IF(VAR28=1,VAR57+0.06,VAR57);
VAR59:=IF(VAR29=1,VAR58+0.06,VAR58);
VAR510:=IF(VAR210=1,VAR59+0.06,VAR59);
VAR511:=IF(VAR211=1,VAR510+0.06,VAR510);
VAR512:=IF(VAR212=1,VAR511+0.06,VAR511);
VAR513:=IF(VAR213=1,VAR512+0.06,VAR512);
VAR514:=IF(VAR214=1,VAR513+0.06,VAR513);
VAR515:=IF(VAR215=1,VAR514+0.06,VAR514);
VAR516:=IF(VAR216=1,VAR515+0.06,VAR515);
VAR517:=IF(DAPATATR=1,VAR516+0.06,VAR516);
VAR518:=IF(VAR32=1,VAR517+0.06,VAR517);
VAR519:=IF(VAR33=1,VAR518+0.06,VAR518);
VAR520:=IF(VAR34=1,VAR519+0.06,VAR519);
VAR521:=IF(VAR35=1,VAR520+0.06,VAR520);
VAR522:=IF(VAR36=1,VAR521+0.06,VAR521);
VAR523:=IF(VAR37=1,VAR522+0.06,VAR522);
VAR524:=IF(VAR38=1,VAR523+0.06,VAR523);
VAR525:=IF(MMM1=1,VAR524+0.06,VAR524);
VAR526:=IF(MMM2=1,VAR525+0.06,VAR525);
VAR527:=IF(MMM3=1,VAR526+0.06,VAR526);
VAR528:=IF(MMM4=1,VAR527+0.06,VAR527);
VAR529:=IF(MMM5=1,VAR528+0.03,VAR528);
VAR530:=IF(MMM6=1,VAR529+0.03,VAR529);
VAR531:=IF(MMM7=1,VAR530+0.03,VAR530);
VAR532:=IF(MMM8=1,VAR531+0.03,VAR531);
DRAWTEXT_FIX(VAR21=1 ,0.10,0,0,'量能理想,明显走强,中线参与,仓位控制在70%左右。'),COLORFF00FF;
DRAWTEXT_FIX(VAR22=1 ,0.10,0,0,'走势趋强,量能不足,短线进场,仓位控制在50%左右。'),COLORFF00FF;
DRAWTEXT_FIX(VAR23=1 ,0.10,0,0,'量价良好,并无明显走强,短线可进场,仓位50%左右。'),COLORFF00FF;
DRAWTEXT_FIX(VAR24=1 ,0.10,0,0,'形态尚可,量能不足,未全走强,短入,仓位30%左右。'),COLORFF00FF;
DRAWTEXT_FIX(VAR25=1 ,0.10,0,0,'形态已变坏,走势尚可,重仓者减大半,清仓者%观望。'),COLOR00FFFF;
DRAWTEXT_FIX(VAR26=1 ,0.10,0,0,'随股价下跌,明显缩量,考虑股价风险,减持或清仓。'),COLOR00FFFF;
DRAWTEXT_FIX(VAR27=1 ,0.10,0,0,'该股放量下跌,走势明显偏弱,不抢反弹,离场观望。'),COLORFFFFFF;
DRAWTEXT_FIX(VAR28=1 ,0.10,0,0,'该股缩量下跌,走势偏弱无力,人气散失,离场观望。'),COLORFFFF00;
DRAWTEXT_FIX(VAR29=1 ,0.10,0,0,'该股形态良好,强势明显,量能充足,可以继续持有。'),COLOR00FFFF;
DRAWTEXT_FIX(VAR210=1,0.10,0,0,'上行趋势不变,强势依然,量能开始转弱,注意风险。'),COLOR00FFFF;
DRAWTEXT_FIX(VAR211=1,0.10,0,0,'该股仍然具备上涨潜力,但股性偏弱,可以考虑减仓。'),COLORFFFFFF;
DRAWTEXT_FIX(VAR212=1,0.10,0,0,'该股走势趋弱,量能明显不足,减大部分筹码或空仓。'),COLORFFFF00;
DRAWTEXT_FIX(VAR213=1,0.10,0,0,'该股形态不佳,注意成交量变化,但目前不适合参与。'),COLORFFFF00;
DRAWTEXT_FIX(VAR214=1,0.10,0,0,'该股趋势不明,股价偏弱,注意量能变化,暂不参与。'),COLORFFFF00;
DRAWTEXT_FIX(VAR215=1,0.10,0,0,'有走强迹象,但量能不足,趋势不明朗,不适合操作。'),COLORFFFF00;
DRAWTEXT_FIX(VAR216=1,0.10,0,0,'该股走势太弱,主动性买盘弱,没有太大的参与价值。'),COLORFFFFFF;
DRAWTEXT_FIX(DAPATATR,0.10,0.05,0,'总势量能理想,70%仓位, 若最佳买点,否则谨慎介入。'),COLOR00FF00;
DRAWTEXT_FIX(VAR32,0.10,0.05,0,'总势趋强,量不足,若前轮下跌,短进50%,量大加仓。'),COLORFF00FF;
DRAWTEXT_FIX(VAR33,0.10,0.05,0,'总势形态走坏,重仓者可减去大部分仓位或放空筹码。'),COLORAAAAAA;
DRAWTEXT_FIX(VAR34,0.10,0.05,0,'总势缩量调整,注意VAR3系统风险,短线可清仓观望。'),COLORFFFFFF;
DRAWTEXT_FIX(VAR35,0.10,0.05,0,'总势走势良好,量能理想,可继续持有或加仓强势股。'),COLOR00FFFF;
DRAWTEXT_FIX(VAR36,0.10,0.05,0,'总势形态良好,但量能稍显不足,随时准备减仓调仓。'),COLOR00FF00;
DRAWTEXT_FIX(VAR37,0.10,0.05,0,'总势趋势不明,注意成交量变化,目前暂不适宜进场。'),COLORFFFFFF;
DRAWTEXT_FIX(VAR38,0.10,0.05,0,'总势趋势向下,量能萎缩,短线可杀跌,不适合进场。'),COLORFFFFFF;
DRAWTEXT_FIX(MMM5,0.10,0.15,0,'★今天比昨天的成交量放大一倍以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM6,0.10,0.15,0,'★今天比昨天的成交量缩量一半以上。'),COLORYELLOW;
DRAWTEXT_FIX(MMM7,0.10,0.20,0,'☆该股今天卖出量大于买入量40%以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM8,0.10,0.20,0,'☆该股今天买入量大于卖出量40%以上。'),COLORYELLOW;