飞狐红柱面积指标公式
2019/12/14 18:31:24
DIFF:SMA(C,10,1)-SMA(C,22,1);
DEA:SMA(DIFF,7,1);
MACD:(DIFF-DEA)*2,COLORSTICK;
STICKLINE(MACD>=0,0,MACD,6,0),colorFF;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,6,1),colorFF;
STICKLINE(MACD<0,0,MACD,6,0),colorFFFF00;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,6,1),colorFFFF00;
差:=DEA-DIFF;
{www.kanguba.com 看股吧_飞狐股票指标公式}
面积:=IF(MACD<0,SUM(MACD,BARSLAST(差<0)),0);
A1:=IF(MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);
前次面积:=REF(面积,A1+1);
A2:=IF((面积<0 AND ABS(面积)<ABS(前次面积)),1,0);
XG:=count(MACD>0,55)>=34 and cross(DIFF,DEA) and REF(A2,1);
DRAWTEXT(XG,0,'★'),LINETHICK3,COLOR00FFFF;
看股吧 公式 www.kanguba .com
其它股票公式列表