盘前选股指标公式

   N1:=25;N2:=38;N3:=51;

    EM1:Ema(C,N1),COLORWHITE;

    EM2:EMA(C,N2),COLORRED;

    EM3:EMA(C,N3),COLORGREEN;

    TJ:=BETWEEN(EM2,EM1,EM3);

    DRAWICON(TJ=0,L,14);

    VAR1:=MA(LOW,1);

    VAR2:=MA(HIGH,2);

    VAR3:=MA(CLOSE,2);

    VAR4:=(VAR3-LLV(VAR1,9))/(HHV(VAR2,9)-LLV(VAR1,9))*100;

    VAR5:=SMA(VAR4,3,1);

    【阳】:SMA(VAR5,3,1),COLORRED,LINETHICK2;

    Y1:=SMA(【阳】,3,1);

    VAR6:=(HHV(VAR2,9)-VAR3)/(HHV(VAR2,9)-LLV(VAR1,9))*100;

    【阴】:SMA(VAR6,3,1),COLORYELLOW,LINETHICK2;

    Y2:=SMA(【阴】,3,1);

    VAR7:=REF(VAR3,1);

    VAR8:=SMA(MAX(VAR3-VAR7,0),13,1)/SMA(ABS(VAR3-VAR7),13,1)*100;

    VARB:=MA(INDEXC,3)*100/MA(INDEXC,10)-100;

    VARC:=MA(CLOSE,3)*100/MA(CLOSE,10)-100;

    VARD:=CLOSE*100/MA(CLOSE,10)-100;

    VARE:=IF(VARB>10,10,VARB);

    VARF:=IF(VARE<-10,-10,VARE);

    VAR10:=IF(VARC>10,10,VARC);

    VAR11:=IF(VAR10<-10,-10,VAR10);

    VAR12:=REF(VARB,1);

    VAR13:=100*(VAR3-REF(VAR3,1))/REF(VAR3,1);

    VAR14:=INDEXC;

    VAR15:=REF(VAR14,1);

    VAR16:=100*(VAR14-VAR15)/VAR14;

    VAR17:=MA(VAR13,3);

    VAR18:=MA(VAR16,3);

    VAR19:=(3*CLOSE+VAR1+OPEN+HIGH)/6;

    VAR1A:=(20*VAR19+19*REF(VAR19,1)+18*REF(VAR19,2)+17*REF(VAR19,3)+16*REF(

    VAR19,4)+15*REF(VAR19,5)+14*REF(VAR19,6)+13*REF(VAR19,7)+12*REF(VAR19,8)+

    11*REF(VAR19,9)+10*REF(VAR19,10)+9*REF(VAR19,11)+8*REF(VAR19,12)+7*REF(VA

    R19,13)+6*REF(VAR19,14)+5*REF(VAR19,15)+4*REF(VAR19,16)+3*REF(VAR19,17)+2

    *REF(VAR19,18)+REF(VAR19,20))/210;

    VAR1B:=MA(VAR1A,12);

    VAR1C:=EMA(VAR1A,5);

    VAR1D:=ABS(VAR1A-VAR1B);

    VAR1E:=REF(VAR3,1)*0.015;

    VAR1F:=REF(INDEXC,1);

    VAR24:=ZIG(3,10)>REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)<REF(ZIG(3,10),2);

    VAR25:=ZIG(3,10)<REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);

    VAR26:=MA(CLOSE,26);

    VAR27:=VAR26+2*STD(VAR3,26);

    VAR28:=VAR26-2*STD(VAR3,26);

    VAR29:=VAR26+2*STD(REF(VAR3,1),26);

    VAR2A:=VAR26-2*STD(REF(VAR3,1),26);

    VAR2B:=IF(VAR24ANDVAR1<VAR28,1,0);

    VAR2C:=IF(VAR25*VAR1ANDVAR2>VAR27,2,VAR2B);

    VAR2D:=IF(VAR2C=1,80,45);

    VAR2E:=IF(VAR2C=2,0,VAR2D);

    VAR2F:=VAR2E;

    D1:=EMA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)

    -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5);

    D2:=REF(D1,1);

    STICKLINE(D1>=REF(D1,1),D1,D2,5,0),COLOR0055AA;

    STICKLINE(D1<REF(D1,1),D1,D2,5,0),COLOR006600;

    {STICKLINE(D1>=REF(D1,1),D1,D2,2,0),COLOR0077CC;}

    STICKLINE(D1>=REF(D1,1),D1,D2,1,0),COLOR0099DD;

    {STICKLINE(D1<REF(D1,1),D1,D2,2,0),COLOR009900;}

    STICKLINE(D1<REF(D1,1),D1,D2,1,0),COLOR00BB00;

    【强弱】:SMA(MAX(VAR3-VAR7,0),5,1)/SMA(ABS(VAR3-VAR7),5,1)*100;

    DRAWTEXT(ISLASTBAR=1AND(CROSS(【强弱】,Y2)ORVAR2E>45),80,'短期吃货!

    '),COLORRED;

    DRAWTEXT(ISLASTBAR=1AND(CROSS(Y1,【强弱】)ORVAR2E<45),80,'短期出货!

    '),COLORGREEN;

    DRAWTEXT(ISLASTBAR=1ANDVAR17>VAR18,60,'个股强于大盘!'),COLORFF00FF;

    DRAWTEXT(ISLASTBAR=1ANDVAR12>VARF,50,'大盘处在下降通道'),COLORCCFF99;

    DRAWTEXT(ISLASTBAR=1ANDVAR18>=VAR17,60,'个股弱于大盘!'),COLOR00FFFF;

    DRAWTEXT(ISLASTBAR=1ANDVAR1A>VAR1BANDVAR1D>VAR1EAND

    NOT(CROSS(75,VAR8)),40,'持股待涨!'),COLOR0099FF;

    DRAWTEXT(ISLASTBAR=1ANDVAR1A<VAR1BANDVAR1D>VAR1EANDNOT(CROSS(【强

    弱】,20)),40,'下调减持!'),COLORFF9900;

    DRAWTEXT(ISLASTBAR=1ANDVAR1D<=VAR1E,40,'盘整阶段!'),COLORFF9900;

    DRAWTEXT(ISLASTBAR=1AND(INDEXC-VAR1F)/VAR1F>0.035,40,'出现井喷行情!

    '),COLORRED;

image.png

    盘中选股指标

    VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

    VAR2:=2*ABS(VAR1);

    VAR3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

    VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

    VAR5:=(HIGH+LOW+CLOSE)/3;

    VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14));

    VAR7:=(VAR5-MA(VAR5,70))/(0.015*AVEDEV(VAR5,70));

    VAR8:=IF(VAR6&gt;=150ANDVAR6&lt;200ANDVAR7&gt;=150ANDVAR7&lt;200,10,0);

    VAR9:=IF(VAR6&lt;=-150ANDVAR6&gt;-200ANDVAR7&lt;=-150ANDVAR7&gt;-200,-10,VAR8);

    VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

    VARB:=100-ABS(VARA);

    VARC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);

    VARD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);

    VARE:=REF(LOW,1)*0.9;

    VARF:=LOW*0.9;

    VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;

    VAR11:=EMA(VAR10,30);

    VAR12:=VAR11-CLOSE;

    VAR13:=REF(CLOSE,1);

    VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;

    VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;

    VAR16:=BARSCOUNT(CLOSE);

    VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;

    VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;

    VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;

    VAR1A:=(SMA(VAR19,4,1)-50)*2;

    VAR1B:=SMA(VAR1A,3,1);

    VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;

    VAR1D:=SMA(VAR1C,4,1);

    VAR1E:=SMA(VAR1D,3,1);

    VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;

    VAR20:=IF(VAR17&lt;=25ANDVAR18&lt;-95ANDVAR1F&gt;20ANDVAR1B&lt;-30ANDVAR1E&lt;30ANDVAR12&gt;=-0.25ANDVAR14&lt;22ANDVAR15&lt;28ANDVAR16&gt;50,80,0);

    情报:VAR3;

    天线:IF(VARB&lt;90,VARB,100);

    红军:IF(VAR1&gt;0,VAR1,0),COLORRED,LINESTICK;

    绿军:IF(VAR1&lt;0,VAR2,0),COLORGREEN,LINESTICK;

    导弹:VAR20;

    预警系统:IF(VAR7&gt;=200ANDVAR6&gt;=150,15,IF(VAR7&lt;=-200ANDVAR6&lt;=-150,-15,VAR9))+60;

    STICKLINE(VAR3&gt;=REF(VAR4,1),VAR3,VAR4,8,0);

    STICKLINE(VAR3&lt;REF(VAR4,1),VAR3,VAR4,8,0);

    VAR21:=CLOSE&gt;MA(CLOSE,20)ANDMA(CLOSE,20)&gt;=REF(MA(CLOSE,20),1);

    VAR22:=CLOSE&lt;MA(CLOSE,20)ANDMA(CLOSE,20)&lt;REF(MA(CLOSE,20),1);

    VAR23:=红军&gt;50AND预警系统&gt;60AND天线=100;

    VAR24:=红军&gt;48AND预警系统&gt;60AND天线&lt;100;

    VAR25:=绿军&gt;38AND预警系统&lt;55;

    VAR26:=导弹&gt;50AND天线&lt;90;

    VAR27:=VAR3&lt;REF(VAR4,1)ANDVOL&gt;REF(VOL,1)ANDCLOSE&gt;REF(CLOSE,1);

    VAR28:=VAR3&gt;=REF(VAR4,1)ANDCLOSE&lt;REF(CLOSE,1)AND预警系统=60AND导弹=0AND绿军&gt;=REF(绿军,1)ANDVARC&lt;REF(VARD,1);

    DRAWTEXT(VAR21ANDCOUNT(VAR21,30)=1,100,'上升通道,持股待长或高抛低吸!');

    DRAWTEXT(VAR22ANDCOUNT(VAR22,30)=1,90,'下降通道,小心无量阴跌!');

    DRAWTEXT(VAR23ANDCOUNT(VAR23,30)=1,70,'上涨过急,需要调整,短线先抛出!');

    DRAWTEXT(VAR24ANDCOUNT(VAR24,30)=1,80,'庄家出货,大跌在即,中线抛出!');

    DRAWTEXT(VAR25ANDCOUNT(VAR25,30)=1,50,'不必杀跌,应有小反弹,跌停除外!');

    DRAWTEXT(VAR26ANDCOUNT(VAR26,30)=1,30,'坚决抢反弹,但巨量封跌停除外');

    DRAWTEXT(VAR27ANDCOUNT(VAR27,30)=1,40,'有大资金进场迹象,关注!');

    DRAWTEXT(VAR28ANDCOUNT(VAR28,30)=1,20,'见顶回落');

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。