MACD背离选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
解答:
网友求助:
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
以上是二次金叉公式,求助老师编一个三次金叉背离选股。
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
以上是二次金叉公式,求助老师编一个三次金叉背离选股。
解答如下:
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
AA:=BARSLAST(REF(CROSS(DIFF,DEA),1));
BB:=REF(C,AA+1)>C AND REF(DIFF,AA+1)<DIFF AND CROSS(DIFF,DEA);
底背离:=FILTER(BB>0,5);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,21)=1;
底背离 AND 三次金叉;
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
AA:=BARSLAST(REF(CROSS(DIFF,DEA),1));
BB:=REF(C,AA+1)>C AND REF(DIFF,AA+1)<DIFF AND CROSS(DIFF,DEA);
底背离:=FILTER(BB>0,5);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,21)=1;
底背离 AND 三次金叉;
选股票看什么指标最好 >股票指标网
精彩评论