最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 未来黑马选股公式改成同花顺的

    正文概述    2024-04-14 08:10:04  

    九毛八公式指标

    公式模块:

    这个选股指标是通达信的,麻烦老师改成同花顺的,谢谢了!

    {支撑线}
    高位支撑线:=SMA(C,8,1);
    VAR2:=CLOSE*vol;
    VAR3:=EMA((expma(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)
    +EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,13);
    以前低位支撑线:=VAR3*0.94;
    低位支撑线:=(高位支撑线+以前低位支撑线)/2;
    {中:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;}
    {涨停回马枪副}
    LC:=REF(CLOSE,1);
    操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
    PP2:=操作线<50 AND REF(操作线,1)>50 ;
    PP:=操作线<45 AND REF(操作线,1)>45 ;
    PP3:=操作线<20 AND REF(操作线,1)>20;
    涨停:=C/REF(C,1)>1.095;
    十三天内有涨停:=COUNT(涨停,13)>=1 AND NOT(涨停);
    涨停距今天数:=BArslAST(涨停);
    预警1:=PP AND 十三天内有涨停;
    AA:=REF(PP,1) AND 十三天内有涨停;
    BB:=REF(PP3,1) AND 十三天内有涨停;
    回马枪副:=AA OR BB OR 预警1;
    {wr>80}
    WR大于八十:=NOT(涨停) AND BETWEEN(C,REF(L,涨停距今天数)*1.01,REF(L,涨停距今天数)*0.987) AND 十三天内有涨停;
    {投机指标}
    短线资金:=100*(C-LLV(L,3))/(HHV(C,3)-LLV(L,3));
    TJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
    TJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
    TJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
    长期资金:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
    {涨停副与投机同时低点}
    涨停副低点K:=操作线<35 AND REF(操作线,1)>35 AND 十三天内有涨停;
    投机低点K:=TJ1<60 AND TJ3>=45 AND 长期资金>=55 AND 短线资金<REF(短线资金,1)
    AND 十三天内有涨停;
    昨日双低:=(REF(涨停副低点K=1,1) AND REF(投机低点K=1,1));
    前日双低:=REF((REF(涨停副低点K=1,1) AND REF(投机低点K=1,1)),1);
    买了1:=昨日双低 AND 操作线>=REF(操作线,1);
    买了2:=前日双低 AND NOT(REF(买了1,1)) AND 操作线>=REF(操作线,1);
    双低买入:=(买了1=1 OR 买了2=1);
    {涨停副和一品}
    涨停副表现:=操作线<REF(LLV(操作线,涨停距今天数),1) AND 涨停距今天数>=3 AND 涨停距今天数<14;
    ST:=(CLOSE/OPEN-1)*100;
    ZF:=(C/REF(C,1)-1)*100;
    SX1:=ST>3 AND ST=HHV(ST,6);
    SX2:=ZF>3 AND ZF=HHV(ZF,6);
    SX3:=ZF>=9 AND CLOSE=HIGH;
    烧香:=IF(SX1 OR SX2 OR SX3,1,0);
    DYSJ:=BARSLAST(烧香);
    跟踪:=IF(DYSJ<=13 AND COUNT(C>REF(L,DYSJ),DYSJ)>=DYSJ-1,DYSJ,0);
    关注:=IF(DYSJ>=4 AND COUNT(C>REF(C,DYSJ),3)>=3,REF(C,DYSJ),REF(L,DYSJ));
    BF1:=LOW<关注*1.01 AND COUNT(LOW<关注*1.01,跟踪)=1;
    BF2:=LOW<关注 AND COUNT(LOW<关注,跟踪)=1;
    拜佛:=BF1 OR BF2;
    涨停副拜佛:=涨停副表现 AND 拜佛;
    {信号汇总}
    买入信号:=回马枪副 OR 双低买入 OR 涨停副拜佛 OR WR大于八十;
    {价格限制}
    价一A:=((O>=高位支撑线 AND L<=高位支撑线) OR (O<高位支撑线 AND C>高位支撑线)) AND C>=REF(C,1);
    价一B:=C>=高位支撑线 AND L<=高位支撑线 AND C<REF(C,1);
    价二A:=O>=低位支撑线 AND L<低位支撑线 AND C>=REF(C,1);
    价二B:=((C>=低位支撑线 AND L<低位支撑线) OR (O>高位支撑线 AND C<高位支撑线 AND C>低位支撑线)) AND REF(C,1);
    价三A:=(L-0.05)<=高位支撑线 AND C>=高位支撑线 AND C<REF(C,1);
    价三B:=(L-0.05)<=高位支撑线 AND C>=高位支撑线 AND REF(C<O,1) AND (C-REF(C,1))/REF(C,1)*100<1.5;
    价四:=BETWEEN(C,高位支撑线,低位支撑线) AND BETWEEN(O,高位支撑线,低位支撑线);
    {天数限制}
    单阳:=C>=REF(C,1)*(1+9.5/100) AND VOL>REF(VOL,1);
    高不破价:=REF(C,BARSLAST(单阳));
    低不破价:=REF(L,BARSLAST(单阳));
    至少两天:=COUNT((C<O OR C<REF(C,1)),BARSLAST(单阳))>=2;
    {涨跌限制};
    涨跌限制阴:=(REF(C,1)-C)/C<0.035 AND C<REF(C,1);
    涨跌限制阳:=C/REF(C,1)<1.03 AND C>REF(C,1);
    涨跌限制:=涨跌限制阴 OR 涨跌限制阳;
    {信号加限制}
    真正买A:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND (价一A OR 价一B) AND C>=低不破价 AND 至少两天;
    真正买B:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND (价二A OR 价二B) AND C>=低不破价 AND 至少两天;
    真正买C:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND (价三A OR 价三B) AND C>=低不破价 AND 至少两天;
    真正买D:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND 价四 AND C>=低不破价 AND 至少两天;
    买进有信号:(真正买A OR 真正买B OR 真正买C OR 真正买D) AND 操作线<60 AND 十三天内有涨停;

    //{支撑线}
    高位支撑线:=SMA(C,8,1);
    VAR2:=CLOSE*VOL;
    VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)
    +EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,13);
    以前低位支撑线:=VAR3*0.94;
    低位支撑线:=(高位支撑线+以前低位支撑线)/2;
    //{涨停回马枪副}
    LC:=REF(CLOSE,1);
    操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
    PP2:=操作线<50 AND REF(操作线,1)>50 ;
    PP:=操作线<45 AND REF(操作线,1)>45 ;
    PP3:=操作线<20 AND REF(操作线,1)>20;
    涨停:=C/REF(C,1)>1.095;
    十三天内有涨停:=COUNT(涨停,13)>=1 AND NOT(涨停);
    涨停距今天数:=BARSLAST(涨停);
    预警1:=PP AND 十三天内有涨停;
    AA:=REF(PP,1) AND 十三天内有涨停;
    BB:=REF(PP3,1) AND 十三天内有涨停;
    回马枪副:=AA OR BB OR 预警1;
    //{WR>80}
    WR大于八十:=NOT(涨停) AND BETWEEN(C,REF(L,涨停距今天数)*1.01,REF(L,涨停距今天数)*0.987) AND 十三天内有涨停;
    //{投机指标}
    短线资金:=100*(C-LLV(L,3))/(HHV(C,3)-LLV(L,3));
    TJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
    TJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
    TJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
    长期资金:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
    //{涨停副与投机同时低点}
    涨停副低点K:=操作线<35 AND REF(操作线,1)>35 AND 十三天内有涨停;
    投机低点K:=TJ1<60 AND TJ3>=45 AND 长期资金>=55 AND 短线资金<REF(短线资金,1)
    AND 十三天内有涨停;
    昨日双低:=(REF(涨停副低点K=1,1) AND REF(投机低点K=1,1));
    前日双低:=REF((REF(涨停副低点K=1,1) AND REF(投机低点K=1,1)),1);
    买了1:=昨日双低 AND 操作线>=REF(操作线,1);
    买了2:=前日双低 AND NOT(REF(买了1,1)) AND 操作线>=REF(操作线,1);
    双低买入:=(买了1=1 OR 买了2=1);
    //{涨停副和一品}
    涨停副表现:=操作线<REF(LLV(操作线,涨停距今天数),1) AND 涨停距今天数>=3 AND 涨停距今天数<14;
    ST:=(CLOSE/OPEN-1)*100;
    ZF:=(C/REF(C,1)-1)*100;
    SX1:=ST>3 AND ST=HHV(ST,6);
    SX2:=ZF>3 AND ZF=HHV(ZF,6);
    SX3:=ZF>=9 AND CLOSE=HIGH;
    烧香:=IF(SX1 OR SX2 OR SX3,1,0);
    DYSJ:=BARSLAST(烧香);
    跟踪:=IF(DYSJ<=13 AND COUNT(C>REF(L,DYSJ),DYSJ)>=DYSJ-1,DYSJ,0);
    关注:=IF(DYSJ>=4 AND COUNT(C>REF(C,DYSJ),3)>=3,REF(C,DYSJ),REF(L,DYSJ));
    BF1:=LOW<关注*1.01 AND COUNT(LOW<关注*1.01,跟踪)=1;
    BF2:=LOW<关注 AND COUNT(LOW<关注,跟踪)=1;
    拜佛:=BF1 OR BF2;
    涨停副拜佛:=涨停副表现 AND 拜佛;
    //{信号汇总}
    买入信号:=回马枪副 OR 双低买入 OR 涨停副拜佛 OR WR大于八十;
    //{价格限制}
    价一A:=((O>=高位支撑线 AND L<=高位支撑线) OR (O<高位支撑线 AND C>高位支撑线)) AND C>=REF(C,1);
    价一B:=C>=高位支撑线 AND L<=高位支撑线 AND C<REF(C,1);
    价二A:=O>=低位支撑线 AND L<低位支撑线 AND C>=REF(C,1);
    价二B:=((C>=低位支撑线 AND L<低位支撑线) OR (O>高位支撑线 AND C<高位支撑线 AND C>低位支撑线)) AND REF(C,1);
    价三A:=(L-0.05)<=高位支撑线 AND C>=高位支撑线 AND C<REF(C,1);
    价三B:=(L-0.05)<=高位支撑线 AND C>=高位支撑线 AND REF(C<O,1) AND (C-REF(C,1))/REF(C,1)*100<1.5;
    价四:=BETWEEN(C,高位支撑线,低位支撑线) AND BETWEEN(O,高位支撑线,低位支撑线);
    //{天数限制}
    单阳:=C>=REF(C,1)*(1+9.5/100) AND VOL>REF(VOL,1);
    高不破价:=REF(C,BARSLAST(单阳));
    低不破价:=REF(L,BARSLAST(单阳));
    至少两天:=COUNT((C<O OR C<REF(C,1)),BARSLAST(单阳))>=2;
    //{涨跌限制};
    涨跌限制阴:=(REF(C,1)-C)/C<0.035 AND C<REF(C,1);
    涨跌限制阳:=C/REF(C,1)<1.03 AND C>REF(C,1);
    涨跌限制:=涨跌限制阴 OR 涨跌限制阳;
    //{信号加限制}
    真正买A:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND (价一A OR 价一B) AND C>=低不破价 AND 至少两天;
    真正买B:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND (价二A OR 价二B) AND C>=低不破价 AND 至少两天;
    真正买C:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND (价三A OR 价三B) AND C>=低不破价 AND 至少两天;
    真正买D:=长期资金>=55 AND 涨跌限制 AND (买入信号 OR REF(买入信号,1)) AND 价四 AND C>=低不破价 AND 至少两天;
    买进有信号:(真正买A OR 真正买B OR 真正买C OR 真正买D) AND 操作线<60 AND 十三天内有涨停;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 未来黑马选股公式改成同花顺的 加入收藏