廖英强吧 关注:3,253贴子:53,899
  • 7回复贴,共1

免费为大家写公式

取消只看楼主收藏回复

指标公式,选股公式都可以,你想要什么样的公式详细情况在后面跟帖,会写的都给你写(限同花顺,通达信)


IP属地:云南1楼2017-06-06 10:33回复

    100*(REF(OPEN,1)-REF(CLOSE,1))/REF(C,1)>=N AND C>=(REF(OPEN,1)-REF(CLOSE,1))*M+REF(CLOSE,1);
    用完有什么缺陷回我


    IP属地:云南10楼2017-06-07 10:55
    收起回复

      ZT:=REF(CLOSE,2)>=ZTPRICE(REF(CLOSE,3),0.1);
      HT:=REF(OPEN,1)>REF(CLOSE,1) AND C<REF(CLOSE,2) AND ABS((REF(C,2)-C))/REF(C,2)*100<HTFD;
      SL:=VOL<REF(VOL,1);
      SELECT:ZT AND HT AND SL;


      IP属地:云南13楼2017-06-08 16:04
      回复
        @haoldy
        DTPL:=MA(C,20)>MA(C,60) AND MA(C,60)>MA(C,120) AND MA(C,120)>MA(C,250);
        FLXD:=(REF(C,2)-REF(C,3))/REF(C,3)*100<=-1.5
        AND BETWEEN(REF(MONEY,2),REF(MONEY,3)*1.5,REF(MONEY,3)*2);
        SLSZ:=(REF(C,1)-REF(C,2))/REF(C,2)*100>=5
        AND REF(MONEY,1)<REF(MONEY,2);
        JTFL:=BETWEEN(MONEY,REF(MONEY,1)*1.015,REF(MONEY,1)*1.02);
        DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
        DEA := EMA(DIFF,9);
        MACD0:=DIFF>0 AND DEA>0;
        XG:DTPL AND FLXD AND SLSZ AND JTFL AND MACD0;
        测试后,5个条件单独测试都能找到满足条件的个股;
        所有条件合并在一起回测至2004年12月27日,整个市场满足条件仅有:
        弘业股份于2006年7月31日
        复星医药于2007年4月23日
        博瑞传播于2007年9月7日


        IP属地:云南18楼2017-06-12 15:30
        回复
          @谁注册在下的名

          参数:n 1 40 9 m1 2 10 3 m2 2 10 3 KVALUE 1 100 100
          RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
          K:=SMA(RSV,M1,1);
          D:=SMA(K,M2,1);
          KD:CROSS(K,D) AND K<KVALUE;
          cross(c,ma(c,20));


          IP属地:云南24楼2017-06-13 09:19
          收起回复
            @goldenxman,同花顺,通达信通用

            DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
            DEA := EMA(DIFF,9);
            MACD := 2*(DIFF-DEA);
            XG:MACD > REF(MACD,1)
            AND REF(MACD,1) > REF(MACD,2)
            AND LLV(MACD,N) == REF(MACD,2)
            AND MACD < 0;


            IP属地:云南32楼2017-06-16 20:58
            收起回复
              周末奉送,均线扣抵指标,免得自己数的麻烦。分同花顺版和通达信版
              同花顺版:
              参数:

              STICKLINE(CURRBARSCOUNT==MA1-OFFSET,1,0,8,0),colorwhite;
              DRAWTEXT(CURRBARSCOUNT==MA1-OFFSET,2*0.8,'5日');
              STICKLINE(CURRBARSCOUNT==MA2-OFFSET,1,0,8,0),coloryellow;
              DRAWTEXT(CURRBARSCOUNT==MA2-OFFSET,2*0.8,'10日');
              STICKLINE(CURRBARSCOUNT==MA3-OFFSET,1,0,8,0),COLORa62aa2;
              DRAWTEXT(CURRBARSCOUNT==MA3-OFFSET,2*0.8,'20日');
              STICKLINE(CURRBARSCOUNT==MA4-OFFSET,1,0,8,0),colorgreen;
              DRAWTEXT(CURRBARSCOUNT==MA4-OFFSET,2*0.8,'30日');
              STICKLINE(CURRBARSCOUNT==MA5-OFFSET,1,0,8,0),colorliblue;
              DRAWTEXT(CURRBARSCOUNT==MA5-OFFSET,2*0.8,'60日');
              STICKLINE(CURRBARSCOUNT==MA6-OFFSET,1,0,8,0),COLOR70dbdb;
              DRAWTEXT(CURRBARSCOUNT==MA6-OFFSET,2*0.8,'120日');
              STICKLINE(CURRBARSCOUNT==MA7-OFFSET,1,0,8,0),colorred;
              DRAWTEXT(CURRBARSCOUNT==MA7-OFFSET,2*0.8,'250日');
              通达信版:
              参数:

              2,DOTLINE,COLORGREEN;
              STICKLINE(CURRBARSCOUNT==M1-OFFSET,1,0,1.5,0),COLORWHITE;
              DRAWTEXT(CURRBARSCOUNT==M1-OFFSET,2*0.8,'5日');
              STICKLINE(CURRBARSCOUNT==M2-OFFSET,1,0,1.5,0),COLORYELLOW;
              DRAWTEXT(CURRBARSCOUNT==M2-OFFSET,2*0.8,'10日');
              STICKLINE(CURRBARSCOUNT==M3-OFFSET,1,0,1.5,0),COLORA62AA2;
              DRAWTEXT(CURRBARSCOUNT==M3-OFFSET,2*0.8,'20日');
              STICKLINE(CURRBARSCOUNT==M4-OFFSET,1,0,1.5,0),COLORGREEN;
              DRAWTEXT(CURRBARSCOUNT==M4-OFFSET,2*0.8,'30日');
              STICKLINE(CURRBARSCOUNT==M5-OFFSET,1,0,1.5,0),COLORLIBLUE;
              DRAWTEXT(CURRBARSCOUNT==M5-OFFSET,2*0.8,'60日');
              STICKLINE(CURRBARSCOUNT==M6-OFFSET,1,0,1.5,0),COLOR70DBDB;
              DRAWTEXT(CURRBARSCOUNT==M6-OFFSET,2*0.8,'120日');
              STICKLINE(CURRBARSCOUNT==M7-OFFSET,1,0,1.5,0),COLORRED;
              DRAWTEXT(CURRBARSCOUNT==M7-OFFSET,2*0.8,'250日');
              效果如下:


              IP属地:云南33楼2017-06-16 21:32
              收起回复
                @痴心绝对痴心对,只能用于通达信,同花顺不能用,原因不明,测了好多网上的各种复杂公式,都不是太理想,于是自己弄了,虽然语句不多,但感觉选出来的涵盖较全了,类似康得新,美的,格力,中兴这种都能选出来。缺点是没有缩量过前高的判别,用了后感觉回漏很多股票,朋友你还是选出来人工看成交量算了
                参数(说明:两个参数是前高产生的时间段,默认120,20,即高点产生于120天前~20天前之间)

                VOLAVG:=MA(VOL,5);
                A:=FINDHIGHBARS(H,ENDTIME,STARTTIME-ENDTIME,1);
                XG: C>FINDHIGH(H,ENDTIME,STARTTIME-ENDTIME,1);


                IP属地:云南36楼2017-06-21 11:34
                回复