以下是macd金叉的选股公式大全源码和使用说明
使用说明
首先,计算12日(或其他适当的天数)的指数移动平均线(EMA12)。
然后,计算26日(或其他适当的天数)的指数移动平均线(EMA26)。
接下来,计算MACD线,即EMA12减去EMA26。
最后,计算MACD线的9日(或其他适当的天数)的指数移动平均线(信号线)。
当MACD线上穿信号线时,即MACD线从下方上穿信号线,形成金叉信号。
金叉信号被视为一种买入信号,暗示股票价格可能开始上涨。
在确认金叉信号之前,可以考虑其他技术指标和趋势确认工具,以增加信号的准确性。
例如,可以查看股票的相对强弱指标(RSI)是否处于合理的水平,以避免买入超买区域的股票。
此外,还可以观察价格走势和成交量等其他指标,以确认金叉信号的可靠性。
MACD金叉的选股公式大全源码:
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK2;
SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK2;
GG:=MA(HHH,5),LINETHICK2,COLORGREEN;
MM:=MA(CCC,5),LINETHICK2,COLORGREEN;
WW:=IF(QQ<GG,SS,MM),LINETHICK2,COLOR0000FF;
EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK2;
★买:=IF(EE-WW<5.6,200,0);
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
量:=EMA(vol,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金/量)/100);
提纯:=(((CLOSE-过滤)/过滤)*100);
黄金:=((提纯<(0))),COLORRED;
买AA:=黄金ANDRSVV<VARB2-2;
精准:=买AA>0;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX<0,2)ANDCROSS(DX,MA(DX,2)),1,0);
七胜:=FILTER(买=1,5);
REF(精准,1)AND七胜;
DIFA:=EMA(CLOSE,6)-EMA(CLOSE,13);
DEA:=EMA(DIFA,5);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
MK日金叉:=CROSS(DIFA,DEA)ANDCROSS(K,D);
MK日金叉共振:IF(MK日金叉,5,0);
1、0轴上方第一次金叉选股公式:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
xg:cross(diff,dea)anddea>-1.0anddea<0.5andCLOSE>ref(CLOSE,1)andCLOSE>=ma(c,60);
或:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
XG:DIF>0ANDDEA>0ANDCROSS(DIF,DEA);
2、0轴上方二次金叉的选股公式:
JC:IF(SUM(IF(MacD>0ANDCROSS(MACD.DIF,MACD.DEA),1,0),0)-HHV(IF(IF(CROSS(MACD.DEA,0),1,0),
SUM(IF(MACD>0ANDCROSS(MACD.DIF,MACD.DEA),1,0),0),0),0)=2ANDSUM(IF(MACD>0ANDCROSS(MACD.DIF,MACD.DEA),1,0),
0)>REF(SUM(IF(MACD>0ANDCROSS(MACD.DIF,MACD.DEA),1,0),0),1),10,0);
{选股设JC=10即可}
3.0轴下方一次金叉的选股公式:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
低位金叉:CROSS(DIFF,DEA)ANDDIFF<-0.1;
4、0轴下方二次金叉且第二次金叉高于第一次金叉:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
AA:=BArslAST(REF(CROSS(DIF,DEA),1));
二次金叉:CROSS(DIF,DEA)ANDDIF>REF(DIF,AA+1)ANDAA<20ANDDIF<0;
5、0轴下方二次金叉选股公式:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);{选股设JC=10即可}
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A:=IF(CROSS(0,DEA),1,0);
A1:=IF(DIFF<0ANDCROSS(DIFF,DEA),1,0);
SS:=IF(A,SUM(A1,0),0);
SSB:=HHV(SS,0);
SSS:=SUM(A1,0);
JC:IF(SSS-SSB=2ANDSSS>REF(SSS,1),10,0);
6、缩量横盘突破选股:
WH01:=(HHV(C,10)-LLV(C,10))/LLV(C,10)*100<=10;
WH02:=SUM(vol,10)/CAPITAL*100<45;
WH03:=REF(WH01,1);
WH04:=HHVBARS(HIGH,55)>20ORC=HHV(H,55);
WH05:=WH02ANDWH03ANDWH04ANDC>REF(HHV(H,10),1);
WH05ANDREF(NOT(WH05),1);
7、均线、kdj、MACD金叉的预警选股公式
完全符合以下条件:
1、5日线上穿10日线
2、MACD金叉
3、kdJ金叉(KDJ数值由9、3、3调整为8、2、2)
4、成交量指标金叉
通达信预警选股公式
A1:=CROSS(MA(C,5),MA(C,10));
A2:=CROSS(MACD.DIF,MACD.DEA);
A3:=CROSS(KDJ.K(8,2,2),KDJ.D(8,2,2));
A4:=CROSS(MA(V,5),MA(V,10));
XG:A1ANDA2ANDA3AND4;
三金叉选股完整源码,绝无未来函数
均线、成交量、MACD同时金叉
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
AA:=CROSS(MA1,MA2);
AAA:=COUNT(AA,3)>=1;
T1:=MA(VOL,5);
T2:=MA(VOL,10);
BB:=CROSS(T1,T2);
BBB:=COUNT(BB,3)>=1;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
CC:=CROSS(DIF,DEA);
CCC:=COUNT(CC,3)>=1;
三金:=AAAANDBBBANDCCC;
三金叉:FILTER(三金,3),COLORFF00FF;
使用说明:该选股公式适合超级短线,快进快出具有一定的风险因素,此时的股价往往处于拉高拔升阶段。
要求使用者特别关注股价所处的位置,如果过于高位防止庄家诱多。低位可大胆搏杀,短期回档被套也有回旋余地。
8、四线粘合
N1:=5;N2:=10;N3:=20;M:=1;
MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);
A3:=V>REF(V,1)*1.5ANDV>MA(V,5);
MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))<1+0.01*M
ANDC>OANDV>REF(V,1)ANDFINANCE(7)<=300000000
ANDA3ANDCAPITAL<=300000000;
9、均线粘合
M:=1;
M5:=MA(CLOSE,5);
M10:=MA(CLOSE,10);
M20:=MA(CLOSE,20);
K1:=MAX(MAX(M5,M10),MAX(M10,M20));
K2:=MIN(MIN(M5,M10),MIN(M10,M20));
A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.01*M;
A1:=(K1/K2-1)<0.005;
A2:=(K1/K2-1)<0.005;
A3:=V>REF(V,1)*1.5ANDV>MA(V,5);
XG:AANDA1ANDA2ANDA3;
10、多线粘合
V0:=EMA(C,5);
V1:=EMA(C,10);
V2:=EMA(C,15);
V3:=EMA(C,30);
V4:=EMA(C,60);
M1:=1000*V1/V4<=1015AND1000*V1/V4>=975;
M2:=1000*V2/V4<=1020AND1000*V2/V4>=980;
M3:=1000*V3/V4<=1015AND1000*V3/V4>=985;
M4:=M1ANDM2ANDM3ANDCROSS(V0,V1);
M5:=M1ANDM2ANDM3ANDCROSS(V0,V3);
M4ORM5;
11、MACD天天挣钱选股指标公式
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
XG:CROSS(REF(DEA,1),REF(DIFF,1))ANDCROSS(DIFF,DEA);
12、短线之王
VAR1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
CROSS(VAR1,-87)ANDOPEN<MA(CLOSE,5)ANDCLOSE>=1.099*REF(CLOSE,1)ANDINDEXC>0.98*REF(INDEXC,1)ANDCLOSE<=1.47*LLV
(CLOSE,58);
13、自用短线MACD副图
DIF:EMA(CLOSE,3)-EMA(CLOSE,7);
DEA:EMA(DIF,3);
MACD:(DIF),COLORSTICK;
DIF,COLORGREEN,LINETHICK2;
DEA,COLORGREEN,LINETHICK2;
线上金叉买:0,COLORGREEN,LINETHICK2;
IF(DIF>DEA,DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWICON(CROSS(DIF,DEA),DEA,25);
DRAWICON(CROSS(DEA,DIF),DEA,24);
14、MACD底位反转点
DIF:EMA(CLOSE,12)-EMA(CLOSE,135);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
反转:MACD<0ANDMACD>REF(MACD,1)ANDREF(MACD,1)<REF(MACD,2)
ANDREF(MACD,2)<REF(MACD,3)
ANDREF(MACD,3)<REF(MACD,4);
15.冠军MACD资金流向
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,7);
DEA:=EMA(DIFF,3);
MACD2:=2*(DIFF-DEA);
(CLOSE<0ANDCROSS(DIFF,0),H*1.3),COLOR000080,NODRAW;
(CLOSE<0ANDCROSS(MACD2,0),H*1.3),COLOR000080,NODRAW;
(CLOSE<0ANDCROSS(0,DIFF),H*1.3),COLOR808080,NODRAW;
(CLOSE<0ANDCROSS(0,MACD2),H*1.3),COLOR808080,NODRAW;
DU0:=CROSS(DIFF,0);
UD0:=CROSS(0,DIFF);
TDU0:=BARSLAST(DU0);
TUD0:=BARSLAST(UD0);
DU3:=REF(DU0,1);
UD3:=REF(UD0,1);
TDU3:=BARSLAST(DU3);
TUD3:=BARSLAST(UD3);
UDGLINE:=IF(TDU3<TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));
JDU0:=REF(CLOSE,1)<=REF(UDGLINE,1)ANDCLOSE>UDGLINEANDTDU0<TUD0;
JUD0:=REF(CLOSE,1)>=REF(UDGLINE,1)ANDCLOSE<UDGLINEANDTUD0<TDU0;
JDU1:=JDU0ANDCOUNT(JDU0,TDU0)=1;
JUD1:=JUD0ANDCOUNT(JUD0,TUD0)=1;
JDU2:=JDU1ANDREF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
JUD2:=JUD1ANDREF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
JDU3:=JDU1ANDREF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);
JUD3:=JUD1ANDREF(BARSLAST(JUD1),1)<REF(BARSLAST(JDU1),1);
bsLINE:=IF(BARSLAST(JDU2)<BARSLAST(JUD2),IF(REF(CROSS(0,MACD2),1),LLV(LOW,2),REF(LLV(LOW,2),BARSLAST(REF(CROSS
(0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1)))));
STICKLINE(MACD2>=0,0,MACD2,2,1),COLOR0000FF;
STICKLINE(MACD2>=0ANDMACD2<REF(MACD2,1),0,MACD2,2,0),COLOR0000FF;
STICKLINE(MACD2<0,0,MACD2,2,0),COLORFFFF00;
STICKLINE(MACD2<0ANDMACD2>REF(MACD2,1),0,MACD2,2,1),COLORFFFF00;
DIFIFF,LINETHICK2,COLOR0000FF;
MACDEA,COLORFF0000;
DEF:MACD2,LINETHICK0,COLORFFFF00;
STICKLINE(CLOSE>0,0,0,2,0),COLOR808080;
DEFUT:=BARSLAST(CROSS(MACD2,0));
DEFDT:=BARSLAST(CROSS(0,MACD2));
DEFUL:=IF(MACD2>=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1));
DEFDL:=IF(MACD2<0,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1));
DEFU2L:=REF(DEFUL,DEFUT+1);
DEFD2L:=REF(DEFDL,DEFDT+1);
DRAWICON(LLV(MACD2,4)>0ANDMACD2<REF(MACD2,1)ANDREF(MACD2,1)>REF(MACD2,2)ANDREF(MACD2,2)>REF(MACD2,3),MACD2,2);
DRAWICON(HHV(MACD2,4)<0ANDMACD2>REF(MACD2,1)ANDREF(MACD2,1)<REF(MACD2,2)ANDREF(MACD2,2)<REF(MACD2,3),MACD2,1);
DRAWICON((JUD1ORBARSLAST(JDU1)>BARSLAST(JUD1))ANDMACD2>=0ANDREF(MACD2,1)<REF(DEFU2L,1)ANDMACD2>DEFU2L,MACD2,5);
DRAWICON((JDU1ORBARSLAST(JDU1)<BARSLAST(JUD1))ANDMACD2<0ANDREF(MACD2,1)>REF(DEFD2L,1)ANDMACD2<DEFD2L,MACD2,3);
VAR111:=JDU1ORBARSLAST(JDU1)<BARSLAST(JUD1);
VAR112:=HHV(MACD2,4)<0ANDMACD2>REF(MACD2,1)ANDREF(MACD2,1)<REF(MACD2,2)ANDREF(MACD2,2)<REF(MACD2,3);
16、变色MACD
DIFIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2ANDMACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2ANDMACD1<0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
STICKLINE(MACD1>=0ORMACD1<=0,0,0,50,1),COLORWHITE;
DIFIF1,COLOR33FF33,LINETHICK2;
DEAEA1,COLORYELLOW,LINETHICK2;
MACD:MACD1,NODRAW,COLORMAGENTA;
强:IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK2;
弱:IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;
DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);
DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,’○’),LINETHICK2,COLORYELLOW;
17、至尊MACD{注意用到了未来函数DCLOSE}{本指标只作趋势参考}
DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:EMA(DIFF,9),COLORFFFF00;
MACD:(DIFF-DEA)*2;
STICKLINE(MACD>=0ANDMACD>=REF(MACD,1),0,MACD,1,0),COLORRED;
STICKLINE(MACD>=0ANDMACD<=REF(MACD,1),0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<=0ANDMACD>=REF(MACD,1),0,MACD,1,0),COLORFF00FF;
STICKLINE(MACD<=0ANDMACD<=REF(MACD,1),0,MACD,1,0),COLOR00FFFF;
多转空:=((((LLV(MACD,4)>0)AND(MACD<REF(MACD,1)))AND(REF(MACD,1)>REF(MACD,2)))AND(REF(MACD,2)>REF(MACD,3)));
空转多:=((((HHV(MACD,4)<0)AND(MACD>REF(MACD,1)))AND(REF(MACD,1)<REF(MACD,2)))AND(REF(MACD,2)<REF(MACD,3)));
DRAWICON(多转空,MACD,2);
DRAWICON(空转多,MACD,1);
低位金叉:=CROSS(DIFF,DEA)ANDDIFF<-0.1;
DRAWTEXT(低位金叉,DEA,’低位金叉’),COLORFF00FF;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA)ANDDEA<0ANDCOUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.2,2,0),COLORFF00FF;
DRAWTEXT(二次金叉,DEA*1.06,’二次金叉’),COLORRED;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);
DRAWTEXT(底背离,-0.2-MACD,’底背离’),COLORWHITE;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSEANDREF(DIFF,A2+1)>DIFFANDCROSS(DEA,DIFF);
DRAWTEXT(顶背离,0.2+MACD,’顶背离’),COLORWHITE;
18、条件选股公式:(双佛手向上)缺省周期:日线
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,27);
MACD:=2*(DIFF-DEA);
CLOSE>OPENANDMA(CLOSE,5)>MA(CLOSE,10)andMA(CLOSE,10)>MA(CLOSE,30)
andDIFF>DEAANDMACD>REF(MACD,1)andDIFF>0ANDDEA>0andMA(VOL,5)>MA(VOL,34)
andMA(CLOSE,30)>=REF(MA(CLOSE,30),1)
根据《南征北战之二》中的双佛手向上思路编写,指标用法:
1.DIFF线回调DEA线附近时不死叉,又调头向上。
2.30日均线走平或向上,同时5日线和10日线在30日线上方金叉,且当日收阳线。
3.5日均量线回调到34日均量线附近时不死叉,又调头向上。
以上三个条件要同时成立时将有一波上升浪,应果断买入。
将MACD指标的m参数调为27
19、条件选股公式:(漫步青云)缺省周期:日线
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,27);
dje:=DIFF>=0andDEA>=0andCROSS(DIFF,DEA);
a5:=MA(CLOSE,5)>MA(CLOSE,10);
v5:=VOL>MA(VOL,5)andMA(VOL,5)>MA(VOL,10);
djeanda5ANDV5ANDMA(CLOSE,30)>=REF(MA(CLOSE,30),1)
将macd指标的参数调为12,26,27
主要用法:当30日均线走平或上扬,5日均量大于10日均量,当日成交量大于5日均量,
5日均线金叉或已金叉10日均线,macd指标中diff线在0轴上死叉dea线,DIFF线下穿0轴后,又再次上穿并在0轴或0轴上金叉dea线,应果断介入。
但若此时k线离30日,30周,30小时均线较远,不能介入
20、条件选股公式:(空中缆绳)缺省周期:日线
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,27);
MACD:=2*(DIFF-DEA);
b:=MIN(DIFF,DEA)/MAX(diff,dea)>0.95;
MA(CLOSE,30)>REF(MA(CLOSE,30),1)anddiff>0anddea>0ANDMACD>REF(MACD,1)andb
将MACD指标的参数调为sh:12;long:26;M:27
用法:30日均线上扬或走平,主力开始洗盘。
这时macd指标中的DIFF线随股价的回调而与DEA线在0轴上粘合数值几乎相等,只要5日均线在30日均线上方金叉或已金叉10日均线,macd指标红柱加长,DIFF线脱离DEA线上扬,就是买点。
SQX:=(C-ma(CLOSE,13))*100;
DIF:EMA(MA(SQX,7),1),LINETHICK1;
DEA:EMA(DIF,7),LINETHICK1;
macd:(DIF-DEA)*2,COLORstICK;
红柱持股:IF(MacD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED,LINETHICK3;
绿柱持币:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORGREEN,LINETHICK3;
低位金叉:IF(crOSS(DIF,DEA)ANDDIF<-0.1,0.3,0),COLORYELLOW,POINTDOT;
STICKLINE(低位金叉,0,10,8,1),COLORYELLOW;
DRAWICON(低位金叉,0.3,1);
JCCOUNT:=COUNT(CROSS(DIF,DEA),BArslAST(DEA>=0));
二次金叉:IF(CROSS(DIF,DEA)ANDDEA<0ANDCOUNT(JCCOUNT=2,21)=1,0.2,0),COLORFF00FF,POINTDOT;
STICKLINE(二次金叉,25,15,8,1),COLORFF00FF;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:IF(REF(CLOSE,A1+1)>CLOSEANDDIF>REF(DIF,A1+1)ANDCROSS(DIF,DEA),0.1,0),COLORRED,POINTDOT;
STICKLINE(底背离,40,30,8,1),COLORMAGENTA;
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORMAGENTA,LINETHICK3;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:REF(CLOSE,A2+1)<CLOSEANDREF(DIF,A2+1)>DIFANDCROSS(DEA,DIF),COLORGREEN;
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBLUE,LINETHICK3;
A3:=CROSS(DIF,DEA)ANDDEA<0;
零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT;
STICKLINE(零下二次金叉,45,55,8,1),COLORWHITE;
金叉:DRAWICON(CROSS(DIF,DEA),DIF,1);
死叉:DRAWICON(CROSS(DEA,DIF),DIF,2);
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(maX(VAR1-VAR2,0),10,1)/SMA(Abs(VAR1-VAR2),10,1)*100;
VAR4:=FILTER(IF(COUNT(VAR3<20,5)>=1ANDCOUNT(VAR1=LLV(VAR1,10),10)>=1ANDCLOSE>=OPEN*1.038ANDvol>MA(VOL,5)*1.2,1,0),5);
VAR5:=FILTER(EMA(EMA(C,5),5)>REF(EMA(EMA(C,5),5),1)ANDHHV(MA(H,13),13)<REF(HHV(MA(H,13),13),1)ANDC>REF(C,1),11);
VAR6:=REF(CLOSE,1);
VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;
买:VAR5ORVAR4,COLORRED;
卖:crOSS(84,VAR7)COLOR007700;
MACD金叉的选股公式截图
评论(0)