以下是macd多周期确认之积底背选股指标公式源码和使用说明

MACD多周期确认之积底背选股指标公式源码:

   N:=9;M1:=3;M2:=3;P:=9;

   快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

   慢线:=SMA(快线,M1,1);

   ELI空:=Sma(慢线,M2,1);

   ELI牛股:=IF(BArslAst(crOSS(慢线,ELI空))<PANDCROSS(慢线,ELI空)AND慢线<20,90,0);

   LC:=REF(CLOSE,1);

   rsi:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(Abs(CLOSE-LC),4.1,1)*100;

   牛准反弹:=CROSS(RSI,11)*80;

   XG:牛准反弹ORELI牛股;

   N:=3;

   M:=9;

   M1:=3;

   DIF:=EMA(CLOSE,N)-EMA(CLOSE,M);

   DEA:=EMA(DIF,M1);

   JC:=DEA-DIF;

   绿柱面积:=IF(macd<0,SUM(MacD,BArslAST(JC<0)),0);

   红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(JC>0)),0);

   本次最低价:=LLV(L,BARSLAST(JC<0));

   本次最高价:=HHV(H,BARSLAST(JC>0));

   X1:=IF(MACD<0,BARSLAST(crOSS(DIF,DEA)),0);

   前次绿柱面积:=REF(绿柱面积,X1+1);

   前次最低价:=REF(本次最低价,X1+1);

   Y1:=IF((绿柱面积<0ANDAbs(绿柱面积)<ABS(前次绿柱面积)AND本次最低价<前次最低价),1,0);

   底背驰:=IF(CROSS(DIF,DEA),REF(Y1,1),0);

   积底背:底背驰;

   VAR1:=1;

   VAR2:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);

   VAR3:=(CLOSE-VAR2)/VAR2*100;

   VAR4:=REF(VAR3,1)<-40ANDVAR3>REF(VAR3,1)ANDREF(VAR3,1)<REF(VAR3,2)ANDVAR3-REF(VAR3,1)>2.5;

   VAR5:=(CLOSE-OPEN)/OPEN*100;

   VAR6:=REF(CLOSE,1);

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

   VAR8:=COUNT(VAR7<20,20)>=1;

   VAR9:=VAR5>9ANDVAR8;

   VARA:=100*WINNER(OPEN);

   VARB:=100*WINNER(CLOSE);

   VARC:=VARB-VARA;

   VARD:=VARC>=30;

   VARE:=CLOSE/MA(CLOSE,3)>=1.07ANDCLOSE=HHV(CLOSE,3)ANDMA(VOL,2)/MA(VOL,40)>=3ANDMA(VOL,2)=HHV(MA(VOL,2),3)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);

   VARF:=REF(CLOSE,1);

   VAR10:=SMA(MAX(CLOSE-VARF,0),5,1)/SMA(ABS(CLOSE-VARF),5,1)*100;

   VAR11:=COUNT(VAR10<20,20)>=1;

   VAR12:=VAREANDVAR11;

   VAR13:=MA(CLOSE,4);

   VAR14:=MA(CLOSE,10);

   VAR15:=MA(CLOSE,20);

   VAR16:=MA(CLOSE,25);

   VAR17:=COUNT(CROSS(VAR14,VAR15),2)=1;

   VAR18:=COUNT(CROSS(VAR13,VAR16),2)=1;

   VAR19:=VAR17ANDVAR18;

   VAR1A:=VAR12ANDVARDANDVAR19;

   VAR1B:=MA(CLOSE,80)-MA(CLOSE,10)/3;

   VAR1C:=CLOSE<VAR1BANDVOL/240>MA(VOL,5)/240ANDCLOSE>REF(CLOSE,1)*1.08ANDCLOSE<MA(CLOSE,13)*1.3;

   选股:VAR4ORVAR9ORVAR1AORVAR1C*VAR1;

MACD多周期确认之积底背选股指标公式截图

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