主图
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
TYX5:=EMA((C+L+O+H)/4,21);
W00:=COST(1);
W10:=COST(10);
W20:=COST(20);
W30:=COST(30);
W40:=COST(40);
W50:=COST(50);
W60:=COST(60);
W70:=COST(70);
W80:=COST(80);
W90:=COST(90);
W100:=COST(99);
W5:=COST(5);
W15:=COST(15);
W25:=COST(25);
W35:=COST(35);
W45:=COST(45);
W55:=COST(55);
W65:=COST(65);
W75:=COST(75);
W85:=COST(85);
W95:=COST(95);
C5:=W5-W00;
C10:=W10-W5;
C15:=W15-W10;
C20:=W20-W15;
C25:=W25-W20;
C30:=W30-W25;
C35:=W35-W30;
C40:=W40-W35;
C45:=W45-W40;
C50:=W50-W45;
C55:=W55-W50;
C60:=W60-W55;
C65:=W65-W60;
C70:=W70-W65;
C75:=W75-W70;
C80:=W80-W75;
C85:=W85-W80;
C90:=W90-W85;
C95:=W95-W90;
C100:=W100-W95;
ZX:=MIN(C5,MIN(C10,MIN(C15,MIN(C20,MIN(C25,MIN(C30,MIN(C35,MIN(C40,MIN
(C45,MIN(C50,MIN(C55,MIN(C60,MIN(C65,MIN(C70,MIN(C75,MIN(C80,MIN(C85,MIN
(C90,MIN(C95,C100)))))))))))))))))));
STICKLINE(ZX=C5,W00,W5,5,0),COLORFF8800;
STICKLINE(ZX=C10,W10,W5,5,0),COLORFF8800;
STICKLINE(ZX=C15,W15,W10,5,0),COLORFF8800;
STICKLINE(ZX=C20,W20,W15,5,0),COLORFF8800;
STICKLINE(ZX=C25,W25,W20,5,0),COLORFF8800;
STICKLINE(ZX=C30,W30,W25,5,0),COLORFF8800;
STICKLINE(ZX=C35,W35,W30,5,0),COLORFF8800;
STICKLINE(ZX=C40,W40,W35,5,0),COLORFF8800;
STICKLINE(ZX=C45,W45,W40,5,0),COLORFF8800;
STICKLINE(ZX=C50,W50,W45,5,0),COLORFF8800;
STICKLINE(ZX=C55,W55,W50,5,0),COLORFF8800;
STICKLINE(ZX=C60,W60,W55,5,0),COLORFF8800;
STICKLINE(ZX=C65,W65,W60,5,0),COLORFF8800;
STICKLINE(ZX=C70,W70,W65,5,0),COLORFF8800;
STICKLINE(ZX=C75,W75,W70,5,0),COLORFF8800;
STICKLINE(ZX=C80,W80,W75,5,0),COLORFF8800;
STICKLINE(ZX=C85,W85,W70,5,0),COLORFF8800;
STICKLINE(ZX=C90,W90,W85,5,0),COLORFF8800;
STICKLINE(ZX=C95,W95,W90,5,0),COLORFF8800;
STICKLINE(ZX=C100,W100,W95,5,0),COLORFF8800;
筹宽:=W100-W00;
J90:=W90-W60;
J80:=W80-W50;
J70:=W70-W40;
J60:=W60-W30;
J50:=W50-W20;
J40:=W40-W10;
J30:=W30-W00;
STICKLINE(J90/筹宽<0.08,W90,W60,5,0),COLOR74D9A4;
STICKLINE(J80/筹宽<0.08,W80,W50,5,0),COLOR74D9A4;
STICKLINE(J70/筹宽<0.08,W70,W40,5,0),COLOR74D9A4;
STICKLINE(J60/筹宽<0.08,W60,W30,5,0),COLOR74D9A4;
STICKLINE(J50/筹宽<0.08,W50,W20,5,0),COLOR74D9A4;
STICKLINE(J40/筹宽<0.08,W40,W10,5,0),COLOR74D9A4;
JJ90:=W90-W70;
JJ80:=W80-W60;
JJ70:=W70-W50;
JJ60:=W60-W40;
JJ50:=W50-W30;
JJ40:=W40-W20;
JJ30:=W30-W10;
STICKLINE(JJ90/筹宽<0.05,W90,W70,5,0),COLORFFFF00;
STICKLINE(JJ80/筹宽<0.05,W80,W60,5,0),COLORFFFF00;
STICKLINE(JJ70/筹宽<0.05,W70,W50,5,0),COLORFFFF00;
STICKLINE(JJ60/筹宽<0.05,W60,W40,5,0),COLORFFFF00;
STICKLINE(JJ50/筹宽<0.05,W50,W30,5,0),COLORFFFF00;
STICKLINE(JJ40/筹宽<0.05,W40,W20,5,0),COLORFFFF00;
STICKLINE(JJ30/筹宽<0.05,W30,W10,5,0),COLORFFFF00;
{空心红}
STICKLINE(C<TYX5 AND C>O,H,L,0,0),COLORRED;
STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED;
{深绿}
STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR007700;
STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR005500;
STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR006600;
STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007700;
{蓝}
STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44;
STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700;
STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22;
STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44;
{黄}
STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;
STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;
STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;
STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;
{粉红}
STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;
STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;
STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;
STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;
{亮灰}
STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999;
STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555;
STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777;
STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;
{深红}
STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;
STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;
STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;
STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;
{涨跌停K线}
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF
(C,1)),OPEN,CLOSE,1.5,0),COLORYELLOW;
STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF
(C,1)),OPEN,CLOSE,1.5,0),COLORWHITE;
{突破}
STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1.5,0),COLORMAGENTA;
幅图1
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
DX_1:=MA(VOL,35);
DX_6:=IF(OPEN>CLOSE,OPEN,CLOSE);
黑心柱:=VOL>2*DX_1 AND (CLOSE<OPEN OR (HIGH-DX_6>0.5*(HIGH-LOW) AND (HIGH-LOW)/REF(CLOSE,1)>0.05)),COLORFF6633;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,COLORCD52FF,LINETHICK0;
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLOR0000FF,STICK;
主动卖盘:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00E521,STICK;
买卖比:=主动买盘/主动卖盘,COLORYELLOW;
买比:=主动买盘/V;
卖比:=主动卖盘/V;
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);
买入资金:=买入量*CLOSE/100;
卖出资金:=卖出量*CLOSE/100;
资金进出:=买入资金-卖出资金;
资金买卖:=买入资金+卖出资金;
买卖资金比:=买入资金/卖出资金;
买资金比:=买入资金/资金买卖;
卖资金比:=卖出资金/资金买卖;
挂单买盘:=MA(主动买盘,3);
挂单卖盘:=(MA(主动卖盘,3));
TIMELT:=IF(DATE>=1230326,0,1);
STICKLINE((主动买盘 > 0) AND TIMELT,0,主动买盘,2.86,0),COLOR6058FF;
STICKLINE((主动卖盘 > 0) AND TIMELT,0,主动卖盘,2.86,0),COLORFFFF00;
{量能生命线}
BLZ:=VOL>REF(V,1)*1.9;
BLZ1:=VOL<REF(LLV(VOL,13),1);
BLZ2:=VOL<REF(LLV(VOL,55),1);
倍量柱:=BLZ,COLORYELLOW;
DRAWICON(倍量柱,VOL*1.18,18),COLORYELLOW;{倍量}
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
生命线:=FILTER(HJZ3,5),STICK,COLORRED;{黄金柱}{生命线}
DRAWICON(生命线,VOL*1.06,23),COLORRED;{生命线}
{新VOL}
DVAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(DVAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(DVAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 - (DVAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (DVAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
买卖差:=(买盘 + 卖盘);
量比:=(VOL / MA(VOL,5));
JX1:=BARSSINCE(买盘);
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);
鬼比:=(卖盘 / VAR30);
VAR2:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR2) * VOL);
VAR7:=((VAR4 / VAR2) * VOL);
VAR8:=((VAR5 / VAR2) * VOL);
VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));
VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);
VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));
VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));
VARD:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);
VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,买盘) + 买盘) / 2);
VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,买盘) + 买盘) / 2);
VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,买盘) + 买盘) / 2);
VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,卖盘) + 卖盘) / 2);
三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);
三日下攻:=MA(VAR50,JY2);
上攻均量:=MA(买盘,JY1);
下攻均量:=MA(卖盘,JY1);
换手率:=((VOL / CAPITAL) * 100);
DRAWICON((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率 > 1)),(VOL * 1.01),25)*TIMELT,COLOR00FFFF;{量变}
DRAWICON((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率 > 1)),(VOL * 1.1),24)*TIMELT,COLOR00FFFF;{量变}
T6:=(VAR8>VAR6) AND (VAR8>VAR7) AND 买盘>0,COLORWHITE;
T61:=(VAR8>VAR6) AND (VAR8>VAR7) AND 买盘>0,COLORWHITE;
T7:=(VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE > OPEN) AND 买盘>0,COLORYELLOW;
T71:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE > OPEN) AND 买盘>0),COLORYELLOW;
T8:=((VAR7 > VAR6) AND (VAR7 > VAR8) AND 买盘>0),COLORMAGENTA;
T81:=((VAR7 > VAR6) AND (VAR7 > VAR8) AND 买盘>0),COLORMAGENTA;
T9:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买盘>0),COLORFF6633,COLORCYAN;
T91:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买盘>0),COLORFF6633,COLORCYAN;
T10:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买卖差<0),COLORGREEN;
T101:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买卖差<0),COLORFF6633,COLORGREEN;
T11:=(黑心柱),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T6 AND TIMELT,0.6,0,0,'★机会风险提示:【洗盘】庄家找底振荡,轻度洗盘,伺机建仓'),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T7 AND TIMELT,0.6,0,0,'★机会风险提示:【建仓】主力吸筹进货并且成交量出现黄金柱,跟随进货等起航'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T8 AND TIMELT,0.6,0,0,'★机会风险提示:【高抛】主力高抛低吸或低吸高抛')COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T9 AND TIMELT,0.6,0,0,'★机会风险提示:【减仓】主力低位深度洗盘或高位出货坚决'),COLORFF6633;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T10 AND TIMELT,0.6,0.16,0,'★机会风险提示:【清仓】趋势破,庄家撤退'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T11 AND TIMELT,0.6,0.33,0,'★★★机会风险提示:【主力黑心,请控制风险】'),COLORYELLOW;
主力启动线:MA(VOL,5),COLORRED,LINETHICK1;
主力洗盘线:MA(VOL,35),LINETHICK1,COLORYELLOW;
资金异动线:MA(VOL,135),LINETHICK1,COLORMAGENTA;
DRAWICON(CROSS(主力启动线,主力洗盘线) AND V>主力洗盘线 AND V>资金异动线 AND 主力洗盘线<资金异动线,V,10);
{UNDEFINED高低距------------------------}
DRAWRECTREL(460,1000,0,0,RGB(10,0,0)),COLORBLUE;{UNDEFINED活动框};
{柱图}
SATTOL:=(V/C)/(HHV(V,1)/HHV(C,1));
买卖量:=IF(SATTOL>1,1,SATTOL),COLORLIBLUE,NODRAW;
SATBU:=(主动买盘/C)/(HHV(主动买盘,1)/HHV(C,1));
主动买盘量:=IF(SATBU>1,1,SATBU*买比),COLORLIBLUE,NODRAW;
SATSEL:=(主动卖盘/C)/(HHV(主动卖盘,1)/HHV(C,1));
主动卖盘量:=IF(SATSEL>1,1,SATSEL*卖比),COLORLIBLUE,NODRAW;
SATGDBU:=(挂单买盘/C)/(HHV(挂单买盘,1)/HHV(C,1));
挂单买盘量:=IF(SATGDBU>1,1,SATGDBU*买比),COLORLIBLUE,NODRAW;
SATGDSEL:=(挂单卖盘/C)/(HHV(挂单卖盘,1)/HHV(C,1));
挂单卖盘量:=IF(SATGDSEL>1,1,SATGDSEL*卖比),COLORLIBLUE,NODRAW;
SATZJBU:=(买入资金/C)/(HHV(买入资金,1)/HHV(C,1));
买入资金量:=IF(SATZJBU>1,1,SATZJBU*买资金比),COLORLIBLUE,NODRAW;
SATZJSEL:=(卖出资金/C)/(HHV(卖出资金,1)/HHV(C,1));
卖出资金量:=IF(SATZJSEL>1,1,SATZJSEL*卖资金比),COLORLIBLUE,NODRAW;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:=(IF(SAT>1,1,SAT)),COLORRED,NODRAW;
图长度像素:=80*0.5*TIMELT;
当日买卖量图:=(买卖量)*图长度像素+230*0.8;
当日主动买量图:=(主动买盘量)*图长度像素+230*0.8;
当日主动卖量图:=(主动卖盘量)*图长度像素+230*0.8;
当日挂单买盘图:=(挂单买盘量)*图长度像素+230*0.8;
当日挂单卖盘图:=(挂单卖盘量)*图长度像素+230*0.8;
买入资金图:=(买入资金量)*图长度像素+230*1.86;
卖出资金图:=(卖出资金量)*图长度像素+230*1.86;
量能饱和度图:=(量能饱和度)*图长度像素+230*1.86;
DRAWRECTREL(120,90,CONST(当日买卖量图),25,RGB(255,0,255)*TIMELT);
DRAWRECTREL(120,230,CONST(当日主动买量图),165,RGB(255,0,0)*TIMELT);
DRAWRECTREL(120,365,CONST(当日主动卖量图),305,RGB(0,255,0)*TIMELT);
DRAWRECTREL(120,665,CONST(当日挂单买盘图),605,RGB(255,0,0)*TIMELT);
DRAWRECTREL(120,825,CONST(当日挂单卖盘图),760,RGB(0,255,0)*TIMELT);
DRAWRECTREL(370,230,CONST(买入资金图),170,RGB(255,0,0)*TIMELT);
DRAWRECTREL(370,365,CONST(卖出资金图),310,RGB(0,255,0)*TIMELT);
DRAWRECTREL(460,76,370,0,RGB(150,10,250));
DRAWRECTREL(460,76,370+CONST(量能饱和度*(460-370)),0,RGB(0,100,0));
DRAWTEXT_FIX(1,0.0,0.0,0,STRCAT(STRCAT('当日买卖量(手):',CON2STR(VOL,0)),' ')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.0,0.15,0,STRCAT(STRCAT('当日买量:',CON2STR(主动买盘,0)),' ')),COLORRED;
DRAWTEXT_FIX(1,0.0,0.3,0,STRCAT(STRCAT('当日卖量:',CON2STR(主动卖盘,0)),' ')),COLORGREEN;
DRAWTEXT_FIX(1,0.0,0.45,0,STRCAT(STRCAT('当日买卖比:',CON2STR(买卖比,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.0,0.6,0,STRCAT(STRCAT('当日挂单买盘:',CON2STR(挂单买盘,0)),' ')),COLORRED;
DRAWTEXT_FIX(1,0.0,0.75,0,STRCAT(STRCAT('当日挂单卖盘:',CON2STR(挂单卖盘,0)),' ')),COLORGREEN;
DRAWTEXT_FIX(1,0.2360,0.15,0,STRCAT(STRCAT('买入资金累计万元: ',CON2STR(买入资金,0)),' ')),COLORRED;
DRAWTEXT_FIX(1,0.2360,0.3,0,STRCAT(STRCAT('卖出资金累计万元: ',CON2STR(卖出资金,0)),' ')),COLORGREEN;
DRAWTEXT_FIX(1,0.236,0.45,0,STRCAT(STRCAT('资金进出万元: ',CON2STR(资金进出,0)),' ')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.236,0.6,0,STRCAT(STRCAT('买卖资金比: ',CON2STR(买卖资金比,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.236,0,0,STRCAT(STRCAT('量能饱和度:',CON2STR(量能饱和度,2)),'%')),COLORYELLOW;
幅图2
X_1:=CLOSE-REF(CLOSE,1);
X_2:=100*EMA(EMA(X_1,5),3)/EMA(EMA(ABS(X_1),5),3);
X_3:=100*EMA(EMA(X_1,13),8)/EMA(EMA(ABS(X_1),13),8);
X_4:=X_2>X_3;
X_5:=IF(X_4,6,0);
X_6:=EMA(CLOSE,8)-EMA(CLOSE,13);
X_7:=EMA(X_6,5);
X_8:=X_6>X_7;
X_9:=IF(X_8,1,0);
X_10:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4;
X_11:=CLOSE>X_10;
X_12:=IF(X_11,5,0);
X_13:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
X_14:=SMA(X_13,3,1);
X_15:=SMA(X_14,3,1);
X_16:=X_14>X_15;
X_17:=IF(X_16,2,0);
X_18:=REF(CLOSE,1);
X_19:=SMA(MAX(CLOSE-X_18,0),5,1)/SMA(ABS(CLOSE-X_18),5,1)*100;
X_20:=SMA(MAX(CLOSE-X_18,0),13,1)/SMA(ABS(CLOSE-X_18),13,1)*100;
X_21:=X_19>X_20;
X_22:=IF(X_21,3,0);
X_23:=(-(HHV(HIGH,13)-CLOSE))/(HHV(HIGH,13)-LLV(LOW,13))*100;
X_24:=SMA(X_23,3,1);
X_25:=SMA(X_24,3,1);
X_26:=X_24>X_25;
X_27:=IF(X_26,4,0);
X_28:=X_8+X_16+X_21+X_26+X_11+X_4-3;
【持股】:X_28>0,NODRAW,COLORMAGENTA;
【持币】:X_28<0,NODRAW,COLORGREEN;
【变盘】:X_28=0,NODRAW,COLORYELLOW;
0,COLORYELLOW;
STICKLINE(【持股】,0,X_28,2,0),COLORMAGENTA;
STICKLINE(【持币】,0,ABS(X_28),2,0),COLORGREEN;
STICKLINE(【变盘】,0,1,2,0),COLORYELLOW;
DRAWICON(【持股】 AND REF(X_28,1)<=0,-0.8,7);
DRAWICON(【持币】 AND REF(X_28,1)>=0,-0.8,8);
【必买】:【持股】 AND REF(X_28,1)<=0 AND CROSS(CLOSE,EMA(CLOSE,5)) AND CROSS(CLOSE,EMA(CLOSE,10)) AND CROSS(CLOSE,EMA(CLOSE,20)) AND LOW>REF(LOW,1) AND MACD.MACD>0,NODRAW,COLORRED;
STICKLINE(【必买】,-0.5,0,3,0),COLORRED;
STICKLINE(【必买】,-0.5,-1,3,0),COLORYELLOW;
幅图3
X_1:=(CLOSE*2+HIGH+LOW)/4;
X_2:=EMA(X_1,13)-EMA(X_1,21);
X_3:=EMA(X_2,5);
X_4:=2*(X_2-X_3)*3.8;
X_5:=IF(DATE>=1221218,0,1);
STICKLINE(X_4>0 AND X_5,0,X_4,3,0),COLORRED;
STICKLINE(X_4<0 AND X_5,0,X_4,3,0),COLORCYAN;
X_6:=AMOUNT/VOL/100;
X_7:=MA(X_6,13);
X_8:=EMA(VOL,13);
X_9:=EMA(AMOUNT,13);
X_10:=X_9/X_8/100;
X_11:=(CLOSE-X_10)/X_10*100;
X_12:=EMA(VOL/CAPITAL*100,13);
STICKLINE(X_12>6.1 AND X_11>5,X_4*0.5,0,3,0),COLORYELLOW;
STICKLINE(X_12>3.8 AND X_11>5,X_4*0.5,0,3,0),COLORYELLOW;
STICKLINE(X_12>2.1 AND X_11>5,X_4*0.5,0,3,0),COLORYELLOW;
STICKLINE(X_12>1.8 AND X_11>5,X_4*0.5,0,3,0),COLORYELLOW;
幅图4
去停牌:=DYNAINFO(13)>0;
MA3:=MA(C,3);
MA5:=MA(C,5);
上轨:=XS.LUP;
CY:=EMA((EMA(C*V,3)/EMA(V,3)+EMA(C*V,6)/EMA(V,6)
+EMA(C*V,12)/EMA(V,12)+EMA(C*V,24)/EMA(V,24))/4,18);
支撑:=1.06*CY;
涨停:=C>REF(C,1)*1.098 AND C=H;
神龙回调1:=REF(COUNT(MA5>上轨,7)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
神龙回调2:=REF(COUNT(MA5>上轨,7)>=1 AND CROSS(C,MA5),1) AND C<上轨 AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
神龙回调3:=REF(COUNT(EVERY(涨停 AND C>O,3),6)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
预警:( 神龙回调1 OR神龙回调2 OR神龙回调3)AND 去停牌 ;