MA5:MA(C,5);
MA10:MA(C,10);
均线差:=MA5-MA10;
JC:=MA10-MA5;
绿柱面积:=IF (均线差<0,SUM(均线差*0.1,BArslAST(JC<0)),0);
红柱面积:=IF (均线差>0,SUM(均线差*0.1,BARSLAST(JC>0)),0);
均线面积:IF(均线差>0,红柱面积,绿柱面积),color0000ff,LINETHICK0;
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,LINETHICK0;
{www.gupang.com 股旁网_大智慧指标公式}
DRAWTEXT(ref(均线差,1)>0 and 均线差<=0 ,HHV(H,8),”+ref(红柱面积,1)),ALIGN2,colorred;
DRAWTEXT(ref(均线差,1)>0 and 均线差<=0 ,HHV(H,8),”+ref(趋势平均力度,1)),ALIGN1,VALIGN1,colorff00ff;
DRAWTEXT(ref(均线差,1)<0 and 均线差>=0 ,LLV(L,8),”+ref(abs(绿柱面积),1)),ALIGN2,Color00ff00;
DRAWTEXT(ref(均线差,1)<0 and 均线差>=0 ,LLV(L,8),”+ref(abs(趋势平均力度),1)),ALIGN1,VALIGN2,colorff00ff;
DRAWTEXT(BARSTATUS=2 AND 均线差<0,LLV(L,5),”+abs(绿柱面积)),align2,Color004A00;
DRAWTEXT(BARSTATUS=2 AND 均线差<0,LLV(L,5),”+abs(趋势平均力度)),align2,Colorff00ff;
DRAWTEXT(BARSTATUS=2 AND 均线差>0,HHV(H,5),”+abs(红柱面积)),align2,colorred;
DRAWTEXT(BARSTATUS=2 AND 均线差>0,HHV(H,5),”+abs(趋势平均力度)),align2,colorff00ff;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)