以下是多周期确认之积底背指标公式源码和使用说明
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);
:=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
本次最高价:=HHV(H,BARSLAST(JC
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)
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)
VAR9:=VAR5 9ANDVAR8;
VARA:=100*WINNER(OPEN);
VARB:=100*WINNER(CLOSE);
VARC:=VARB-VARA;
VARD:=VARC
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)
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多周期确认之积底背选股指标公式截图