MACD风洞公式源码(macd风洞买入法)
本文目录一览:
- 1、求通达信公式:macd选股公式
- 2、求高手改写macd,顶背离选股公式
- 3、请老师编辑这个选股源码公式,要求选出MACD中轴出现"黄色块"的股票(第一个黄色块开始)
- 4、macd快慢线长期粘合选股公式
- 5、价值千万macd指标公式
求通达信公式:macd选股公式
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
X1:DIFREF(DIF,1) AND V=MA(V,50),COLORRED;
X2:MACDREF(MACD,1),COLORGREEN;
这样的条件设计会信号过多,而且,出现两条件重叠情况.
求高手改写macd,顶背离选股公式
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
C1:=BARSLAST(REF(CROSS( DEA,DIFF ),1));
XG:REF(C,C1+1)C AND REF(DIFF,C1+1)DIFF AND CROSS(DEA,DIFF);
请老师编辑这个选股源码公式,要求选出MACD中轴出现"黄色块"的股票(第一个黄色块开始)
{这个公式有未来函数,慎用!}
VARA1:=(DVOL/C)/2;
VARA2:=SUM(IF(VARA1100 AND CLOSEREF(CLOSE,1),VARA1,0),0);
VARA3:=SUM(IF(VARA1100 AND CLOSEREF(CLOSE,1),VARA1,0),0);
VARA4:=SUM(IF(VARA1100 AND CLOSEREF(CLOSE,1),VARA1,0),0);
VARA5:=SUM(IF(VARA1100 AND CLOSEREF(CLOSE,1),VARA1,0),0);
VARA6:=VARA2+VARA3+VARA4+VARA5;
机买:=(VARA2/VARA6)*100;
机卖:=(VARA3/VARA6)*100;
主力差:=机买-机卖;
强度:=主力差-REF(主力差,1);
CROSS(强度,1.5);
macd快慢线长期粘合选股公式
选股公式源码
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
NH:=DIF-DEA0.01 AND DIF=DEA;
JRDIF:=DIFREF(DIF,1);
ZRDIF:=REF(DIF,1)REF(DIF,2);
JRmacd:=MACDREF(MACD,1)*3;
MACDNH:ZRDIF AND JRDIF AND REF(NH,1) AND JRMACD;
选股公式翻译
DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA赋值:DIF的9日指数移动平均
MACD赋值:2*(DIF-DEA)
NH赋值:DIF-DEA0.01 AND DIF=DEA
JRDIF赋值:DIF1日前的DIF
ZRDIF赋值:1日前的DIF2日前的DIF
JRMACD赋值:MACD1日前的MACD*3
输出MACDNH:ZRDIF AND JRDIF AND 1日前的NH AND JRMACD
价值千万macd指标公式
公式源代码如下MACD风洞公式源码:
DIFF:EMA(CLOSE,6)-EMA(CLOSE,16),ColorFFFF26;
DEA:EMA(DIFF,5),Color8A15FF;
MACD:=2*(DIFF-DEA);
对DIFF :0-(EMA(CLOSE,6) - EMA(CLOSE,16));
对DEA :0-(EMA(DIFF,5));
对称 : 0-(2*(DIFF-DEA)),STICK,ColorFF6060,LINETHICK1;
{D1:EMA(C,16)-EMA(C,6),Color26FF26;
E2:EMA(D1,5),ColorFF1EFF;};
STICKLINE(MACD=0,MACD,0,4,1),COLORF00FF0;
STICKLINE(MACD0,MACD,0,4,1),colorwhite;
STICKLINE(MACD0,0,MACD,10,0 ),Color00C4C4;
STICKLINE(MACD0,0,MACD,6.3,0 ),Color00EAEA;
STICKLINE(MACD0,0,MACD,2.2,0 ),Color0BFFFF;
STICKLINE(MACD0,0,MACD,1.65,0 ),Color46FFFF;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,8 ,0 ),Color0000BB;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),Color0000F0;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,2.2,0 ),Color1111FF;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,1.65 ,0 ),Color3535FF;
STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,10,0 ),Color9B009B;
STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),ColorCA00CA;
STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2.2,0 ),ColorF000F0;
STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,1.65,0 ),ColorFF28FF;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,8,0 ),Color00AA00;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),Color00CE00;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,2.2,0 ),Color00F700;
STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,1.65 ,0 ),Color2DFF2D;
低位金叉:=CROSS(DIFF,DEA) AND DIFF-0.1;
STICKLINE(低位金叉,0,-0.18,10,0),ColorE8E8E8;
STICKLINE(低位金叉,0,-0.18,4,0),ColorF2F2F2;
STICKLINE(低位金叉,0,-0.18,2,0),ColorFFFFFF;
DRAWTEXT(低位金叉,-0.2,' 金叉'),ColorFFFFFF;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,-0.18,10,0),Color0042CC;
STICKLINE(二次金叉,0,-0.18,8,0),Color004FF2;
STICKLINE(二次金叉,0,-0.18,8,0),Color3375FF;
DRAWTEXT(二次金叉,-0.2,' 金叉二'),Color3375FF;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1 1)CLOSE AND DIFFREF(DIFF,A1 1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.13,10,0),ColorCECE00;
STICKLINE(底背离,0,0.13,4,0),ColorFFFF00;
STICKLINE(底背离,0,0.13,2,0),ColorFFFF44;
DRAWLINE(A1=0,DEA,底背离,DEA,0),ColorFFFFFF,linethick1;
DRAWTEXT(底背离,0.3,' 底背离'),ColorFFFF26;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2 1)DIFF AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,linethick1;