同花顺红绿柱面积指标公式

2024-01-03 21:00发布

DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);:(DIF-DEA)*2,COLORSTICK;MACDHS:=IF(MACD>0 AND MACD>REF(MACD,1),MACD,0);MACDHX:=IF(MACD>0 AND MACDREF(MACD,1),MACD,0);红柱面积:=IF(MACD>0,SUM(MACD,BARSLAST(MACD<0 PRECIS2,COLOR0000FF;绿柱面积:=IF(MACD>0)),0),PRECIS2,COLOR006000;;DRAWTEXT(REF(MACD,1)>0 AND MACD<=0 ,HHV(MACD,4),''+TOSTRING(REF(红柱面积,1),2)),colorred; DRAWTEXT(REF(MACD,1)<0>=0 ,LLV(MACD,4),''+TOSTRING(REF(A(绿柱面积),1),
 解锁全文需 1  财富值,免费注册即送20财富值!