你说的红柱就是macd的数值,也就是今天的数值比昨天的小,下面是通达信的macd选股公式供你参考,然后自己去改DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,27);
MACD := 2*(DIFF-DEA);
CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) and MA(CLOSE,10)>MA(CLOSE,30)
and DIFF>DEA AND MACD>REF(MACD,1) and DIFF>0 AND DEA>0 and MA(VOL,5)>MA(VOL,34)
and MA(CLOSE,30)>=REF(MA(CLOSE,30),1);这里的MACD>REF(MACD,1)这句话的意思就是说今天的macd和昨天的【REF(MACD,1)】,如果需要前天的macd值,语句则变为REF(MACD,2),需要大前天的值只需要把2改成3,明白没有,建议你先学习股票公式语言函数,
macd底背离指标公式
MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);XG1:=MACDMQDZANDCLOSE=LLV(CLOSE,QZQ+20)ANDMQDZREF(MACD,1);{双底背离,通达信版、同花顺版} DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*...
求同花顺 公式:MACD红柱缩短后(不转绿)再转长(转长的第一根红柱)谢谢...
MACD:(DIF-DEA)*2,COLORSTICK;第一红:BARSLASTCOUNT(MACD>0)=1;短后长:MACD>0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2);试试吧。测试过了。
求同花顺MACD与股价底背离的选股公式,dif dea 红绿柱,面积底背离都可以...
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);MACD0:=(DIF-DEA)*2;XXX:=IF(N=1,DIF,IF(N=2,DEA,IF(N=3,MACD0,0)));XG:CROSS(DIF,DEA) AND REF(LLV(L,BARSLAST(CROSS(DEA,DIF))+1),BARSLAST(CROSS(DIF,DEA))+1)<REF(LLV(L,BARSLAST(CROSS(DEA,DIF))+1),...
请高手帮忙写一个同花顺中MACD指标显示买卖红绿箭头的公式,谢谢!_百度...
DIFF= EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);DEA = EMA(DIFF,m);IF(Long>short){ IF (CROSS(diff,dea))BUY;IF (CROSS(dea,diff))SELL;}
求同花顺上证MACD副图?
同花顺上证macd副图公式:SZc:=INDEXDATA("1a0001",&INDEXC);DIFF : EMA(SZc,12) - EMA(SzC,26),colorwhite;DEA : EMA(DIFF,9),coloryellow;MACD : 2*(DIFF-DEA);Zero : 0;粘贴完成后,在曲线属性里,把macd的输出线型改成“柱状中心线”,然后在输出颜色的配置里,选中“与用户设定值...
请帮忙修改公式,让同花顺MACD指标上升画红线下跌画绿线。
打开K线图 点击MACD窗口,点击鼠标右键 从上往下数第十二个修改指标参数并打开它,如图 点击左下角(风格设置)如图 MACD里面涉及到四个指标,找到你要更改的那个指标,并在右侧选择你要的颜色macd是那些柱子,diff是里面的两根趋势线
求一个同花顺 MACD在 0轴上方死叉的公式
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD :=2*(DIFF-DEA);MACD金叉:CROSS(DIFF,DEA) AND MACD>0;
求MACD指标DIFF,DEA值小于0公式(同花顺)
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD :=2*(DIFF-DEA);diff<0 AND dea<0;
寻找同花顺MACD公式。要求如下DIFF在DEA位置下面,MACD值在-0.05到0...
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD := 2*(DIFF-DEA);M30:=ma(close,30);m60:=ma(close,60);diff<dea and between(macd,-0.05,0) and m30>m60;
求一个同花顺周线MACD绿柱变短或红柱子变长公式,最好说明一下在选股平台...
"MACD.MACD#WEEK">REF("MACD.MACD#WEEK",1);直接用日线周期选股就可以了,因为公式取得的是周数据。