主图
MA25:=MA(C,25);
EMA135:=EMA(C,135);
EMA250:=EMA(C,250);
涨停:=C>=ZTPRICE(REF(C,1),0.1);
LINE1:=MA25; {简单移动平均线 25日}
LINE2:=EMA250; {指数移动平均线 250日}
LINE3:=EMA135; {指数移动平均线 135日}
STICKLINE(NOT(涨停) AND C>LINE1 AND C>O,C,O,3,1),COLOR15CFD9;
STICKLINE(NOT(涨停) AND C<LINE1,C,O,3,0),COLORD32C5E;
STICKLINE(涨停,C,O,3,1),COLOR00FFFF;
STICKLINE(涨停,L,H,0.3,1),COLOR00FFFF;
STICKLINE( C>LINE1 AND H>=REF(H,1),LINE1*1.02,LINE1,0.3,0),COLOR00FFFF;
STICKLINE( C<LINE1,H,LINE1,0.3,0),COLORFF8080;
L01A:LINE1,LINETHICK3,COLOR0000FF;
L01B:IF(C<LINE1,LINE1,DRAWNULL),LINETHICK3,COLOR00FF00;
DRAWICON(CROSS(LINE2,C),LINE2,23);
DRAWICON(CROSS(LINE3,C),LINE3,23);
牛熊135A: LINE3,LINETHICK3,COLOR000080;
牛熊135B: IF(C<LINE3,LINE3,DRAWNULL),LINETHICK3,COLOR008000;
牛熊250A: LINE2,LINETHICK3,COLORC0C0C0;
牛熊250B: IF(C<LINE2,LINE2,DRAWNULL),LINETHICK3,COLORFF0080;
副图1
筹码20日:=PPART(20)*100;
筹码60日:=PPART(60)*100;
筹码90日:=PPART(90)*100;
涨停:=C>=ZTPRICE(REF(C,1),0.1);
DRAWBAND(筹码20日,RGB(255,246,143),0,0);
DRAWBAND(筹码60日,RGB(238,201,0),0,0);
DRAWBAND(筹码90日,RGB(205,173,0),0,0);
获利盘:=WINNER(C)*100 ;
90,DOTLINE,LINETHICK1,COLORC0C0C0; {90%获利线}
100,DOTLINE,LINETHICK1,COLORC0C0C0; {100%获利线}
C1:=获利盘;
C1A:IF(C1<90,C1,DRAWNULL),POINTDOT,LINETHICK5,COLOR00FF00;
C1B:IF(C1>=90 ,C1,DRAWNULL),POINTDOT,LINETHICK8,COLOR0080FF;
C1C:IF(涨停,C1,DRAWNULL),POINTDOT,LINETHICK8,COLORFF00FF;
{标注涨停板}
TJ01:= C1>90 AND 涨停;
DRAWTEXT(涨停,88,VARCAT(VAR2STR(BARSLASTCOUNT(涨停),0),'B')),COLOR0000FF;
DRAWTEXT(ISLASTBAR,102,''); {辅助显示};
副图2
PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));
ZLL:=(VOL / CAPITAL);
HSL1:=IF((ZLL > 10),10,ZLL);
HSL:=((XVL / 20) / 1.15);
攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
STICKLINE(((HSL * 0.4) >= 0),0,ABS((HSL * 0.4) +LLJX),2.3,0),COLORYELLOW;
STICKLINE(((HSL * 0.4) < 0),0,ABS((HSL * 0.4) +LLJX),2.3,0),COLOR00FF00;
资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;
资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;
资金进出:=(HSL*0.4+LLJX),LINETHICK0;
万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;
资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT,NODRAW;
进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW,NODRAW;
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
STICKLINE((资金流量 > 0),0,ABS(资金流量),1,0),COLOR0000FF;
STICKLINE((资金流量 < 0),0,ABS(资金流量),1,0),COLORFF3300;
副图3选股一体
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
SS1:=FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5);
SM01:=MA((2*C+H+L)/4,5);
SM02:=SM01*(200-102)/100;
SM03:=(1-7/100)*DMA(C,ABS((2*C+H+L)/4-MA(C,20))/MA(C,20));
SM04:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
SM05:=3*SMA(SM04,3,1)-2*SMA(SMA(SM04,3,1),3,1);
SM06:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));
SM07:=SM02<SM03&&SM05>REF(SM05,1)&&REF(SM05,1)<REF(SM05,2)&&SM06<-100
&&SM06>REF(SM06,1);
AA:=STICKLINE(SM07,0,0.5,2,0),COLORYELLOW;
买点:=SM07,COLORRED,LINETHICK3;
选股:SS1 AND 买点;