红柱面积指标 (源码)
2012-09-15 09:50:00来源:本站整理浏览:399
飞狐红柱面积指标公式股票软件源码如下:
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.gpxiazai.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;
- 上一篇公式:K线形态带解盘主图指标 (源码)
- 下一篇公式:超级RSI指标 (源码)