通达信魔柱七色副图+选股指标副图源码
LC:=REF(C,1);
A1:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
A2:=SMA(MAX(C-LC,0),24,1)/SMA(ABS(C-LC),24,1)*100;
STICKLINE(A1>=A2,0.5,0,8,0),COLOR0000FF;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,1,0,8,0),COLORFFFF00;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.7,0,8,0),COLOR00FF00;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.5,0,8,0),COLOR00FFFF;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.3,0,8,0),COLOR000080;
STICKLINE(A1>=70 AND A1>=A2 AND A1< 80,0.1,0,8,0),COLOR0000FF;
STICKLINE(A1>=80 AND A1>A2,1.5,0,8,0),COLORFF00FF;
STICKLINE(A1>=80 AND A1>A2,1.2,0,8,0),COLORFF0000;
STICKLINE(A1>=80 AND A1>A2,1,0,8,0),COLORFFFF00;
STICKLINE(A1>=80 AND A1>A2,0.8,0,8,0),COLOR00FF00;
STICKLINE(A1>=80 AND A1>A2,0.6,0,8,0),COLOR00FFFF;
STICKLINE(A1>=80 AND A1>A2,0.4,0,8,0),COLOR000080;
STICKLINE(A1>=80 AND A1>A2,0.2,0,8,0),COLOR0000FF;
DRAWICON(A1>=70 AND A1>A2 AND V< REF(V,1) AND C< REF(C,1)*1.03,0.8,1);
STICKLINE(A1< A2,-0.5,0,8,0),COLORFFFFFF;
选股公式如下 :
LC:=REF(C,1);
A1:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
A2:=SMA(MAX(C-LC,0),24,1)/SMA(ABS(C-LC),24,1)*100;
选股:A1>=70 AND A1>A2 AND V< REF(V,1) AND C< REF(C,1)*1.03;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
LC赋值:1日前的C
A1赋值:SMA(C-LC和0较大值,6,1)/SMA(C-LC的绝对值,6,1)*100
A2赋值:SMA(C-LC和0较大值,24,1)/SMA(C-LC的绝对值,24,1)*100
当满足条件A1>=A2时,在0.5和0之间画柱状线
当满足条件A1>=70 AND A1>=A2 AND A1< 80时,在1和0之间画柱状线
当满足条件A1>=70 AND A1>=A2 AND A1< 80时,在0.7和0之间画柱状线
当满足条件A1>=70 AND A1>=A2 AND A1< 80时,在0.5和0之间画柱状线
当满足条件A1>=70 AND A1>=A2 AND A1< 80时,在0.3和0之间画柱状线
当满足条件A1>=70 AND A1>=A2 AND A1< 80时,在0.1和0之间画柱状线
当满足条件A1>=80 AND A1>A2时,在1.5和0之间画柱状线
当满足条件A1>=80 AND A1>A2时,在1.2和0之间画柱状线
当满足条件A1>=80 AND A1>A2时,在1和0之间画柱状线
当满足条件A1>=80 AND A1>A2时,在0.8和0之间画柱状线
当满足条件A1>=80 AND A1>A2时,在0.6和0之间画柱状线
当满足条件A1>=80 AND A1>A2时,在0.4和0之间画柱状线
当满足条件A1>=80 AND A1>A2时,在0.2和0之间画柱状线
DRAWICON(A1>=70 AND A1>A2 AND V< 1日前的V AND C< 1日前的C*1.03,0.8,1)
当满足条件A1< A2时,在-0.5和0之间画柱状线
选股公式如下 :
LC赋值:1日前的C
A1赋值:SMA(C-LC和0较大值,6,1)/SMA(C-LC的绝对值,6,1)*100
A2赋值:SMA(C-LC和0较大值,24,1)/SMA(C-LC的绝对值,24,1)*100
输出选股:A1>=70 AND A1>A2 AND V< 1日前的V AND C< 1日前的C*1.03