五星操盘线改编选股指标公式源码下载分享

五星操盘线原来是主图操盘指标,经改编作为选股指标公式源码下载分享如下:

日线锁定:=(PERIOD==5) AND (C>0) AND V>0; 

引力:=(MA(C,30)+MA(C,72))/2; 

下轨:=引力*0.73; 

下轨75:=引力*0.75; 

下轨71:=引力*0.71; 

下轨68:=引力*0.68; 

过滤周期:=1; 

VAR1:=EMA(EMA(CLOSE,9),9); 

控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;

资金:=EMA(EMA(CLOSE,8),8); 

资金抬轿:=(资金-REF(资金,1))/REF(资金,1)*1000; 

有庄控盘:=资金抬轿>0; 无庄控盘:=资金抬轿<=0; 买线:=EMA(C,3);

卖线:=EMA(SLOPE(C,22)*20+C,54); 

BU1:=CROSS(买线,卖线);  

SEL1:=CROSS(卖线,买线); 

BU2:=IFF(BU1 AND 有庄控盘,1,IFF(COUNT(BU1 AND 无庄控盘,BARSLAST(SEL1)+1)==1 AND  CROSS(资金抬轿,0),1,0)); 

BU:=BU2 AND COUNT(BU2,BARSLAST(SEL1)+1)==1;   

SEL:=SEL1 AND COUNT(SEL1,BARSLAST(BU)+1)==1;  

BUNEW:=BU; 

止损条件:=CLOSE/REF(OPEN,BARSLAST(BU))<(1-7/100) AND COUNT(BU,BARSLAST(BU)+1)==1 AND COUNT(SEL,BARSLAST(BU)+1)==0; 

SELNEW:=IFF(止损条件 AND COUNT(止损条件,BARSLAST(BU)+1)==1,1,IFF(SEL AND COUNT(止损条件,BARSLAST(BU)+1)==0,1,0));

重新买入:=COUNT(止损条件,BARSLAST(BUNEW)+1)>=1 AND CROSS(C,0.965*REF(O,BARSLAST(BUNEW))); 

不在同一天1:=((重新买入 AND SELNEW)==0); BUNEW2:=((BUNEW AND COUNT(SELNEW,过滤周期)==0) OR 重新买入) AND 不在同一天1; 

二次止损:=(CLOSE/REF(OPEN,BARSLAST(重新买入))<(1-7/100) AND COUNT(重新买入,BARSLAST(重新买入)+1)==1 AND COUNT(SEL,BARSLAST(重

新买入)+1)==0); 

重新卖出:=(SEL AND COUNT(重新买入,BARSLAST(BUNEW2)+1)==1) OR (二次止损 AND SUM(二次止损,0)==1); 

不在同一天2:=((重新卖出 AND BUNEW2)==0); 

SELNEW2:=((SELNEW AND COUNT(SELNEW,BARSLAST(BUNEW2)+1)==1) OR 重新卖出) AND 不在同一天2; 

BUNEW3:=BUNEW2 AND COUNT(BUNEW2,BARSLAST(SELNEW2)+1)==1; 

SELNEW3:=SELNEW2 AND COUNT(SELNEW2,BARSLAST(BUNEW3)+1)==1; 

D:=BARSLAST(BUNEW3)+1>=1 AND COUNT(SELNEW3,BARSLAST(BUNEW3)+1)==0; 

修正部分定位:=IFF(COUNT(SELNEW3,BARSCOUNT(C))==0 AND COUNT(BUNEW3,BARSCOUNT(C))==0,1,0); 

上市修正B:=修正部分定位 AND CROSS(控盘,0);

上一页 12 下一页
  • 阅读  
  • 隐藏边栏
    A+
发布日期:2020-07-06  所属分类:指标源码  来源:炒股技术学习网