根据需要,分别做两个选股公式如下:注意参数n自己参考通达信的布林指标的参数设置{1、当天股价曾经或已经上穿布林线上轨,并且上轨相对于昨天是向上的,下轨相对于昨天是向下的 n(20)}上轨1:=ma(close,n)+2*std(close,n);下轨1:=ma(close,n)-2*std(close,n);上破:cross(h,上轨1) and 上轨1>ref(上轨1,1) and 下轨1<ref(下轨1,1);{2、当天股价曾经或已经下穿布林线下轨,并且下轨相对于昨天是向下的,上轨相对于昨天是向上的}上轨2:=ma(close,n)+2*std(close,n);下轨2:=ma(close,n)-2*std(close,n);下破:cross(下轨2,l) and 上轨2>ref(上轨2,1) and 下轨2<ref(下轨2,1); 20210311
a1:=barslast(c/ref(c,1)>=1.098);t1:=count(l>=ref(l,a1),a1)>=a1;t2:=count(h<=ref(h,a1),a1)<=(a1-1);t3:=longcross(c,ref(c,a1),a1) and c>=o;xg:t1 and t2 and t3;