同花顺缠论趋势力度公式
-
相关简介:同花顺缠论趋势力度公式 源码 MA5:MA(C,5); MA10:MA(C,10); 均线差:=MA5-MA10; 绿柱面积:=IF (均线差0,SUM(均线差*0.1,BARSLAST(均线差0)),0); 红柱面积:=IF (均线差0,SUM(均线差*0.1,BARSLAST(均线差0)),0); 均线面积:IF(均线差0,红柱面积,绿柱面积)*100,COLOR9999FF,NODRAW; A1:=IF(均线差0,1,-1); A2:=REF(A1,1); A3:=A1*A2; A4:=B
-
文章来源:股海网作者:股海网发布时间:2015-09-25浏览次数:
同花顺缠论趋势力度公式
源码
MA5:MA(C,5);
MA10:MA(C,10);
均线差:=MA5-MA10;
绿柱面积:=IF (均线差<0,SUM(均线差*0.1,BARSLAST(均线差>0)),0);
红柱面积:=IF (均线差>0,SUM(均线差*0.1,BARSLAST(均线差<0)),0);
均线面积:IF(均线差>0,红柱面积,绿柱面积)*100,COLOR9999FF,NODRAW;
A1:=IF(均线差>0,1,-1);
A2:=REF(A1,1);
A3:=A1*A2;
A4:=BARSLAST(A3<0);
A5:=A4+1;
趋势平均力度:(SUM(均线差,0)-REF(SUM(均线差,0),A5))/A5,COLORFF00FF,NODRAW;
DRAWBAND(MA5,RGB(110,20,0),MA10,RGB(10,110,60));
IF(MA5>MA10,MA5,DRAWNULL),COLOR00AACC;
IF(MA5>MA10,MA10,DRAWNULL),COLOR00AACC;
IF(MA5<MA10,MA5,DRAWNULL),COLOR55DD00;
IF(MA5<MA10,MA10,DRAWNULL),COLOR55DD00;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
REF(MA5,BARSLAST(LLV(MA5,BARSLAST(均线面积>0))=MA5)),POINTDOT,COLORDDDDDD;
REF(MA5,BARSLAST(HHV(MA5,BARSLAST(均线面积<0))=MA5)),POINTDOT,COLORFFAAAA;