以下是通达信实用的宝塔公式宝塔布林线
把系统短线决策指标和宝塔线糅合一起。用了一段时间,感觉效果不错,发出来,大家共享。
源码:
AA:=REF(C,1);
HH:=MAX(C,AA);
LL:=MIN(C,AA);
ZY:=REF(C,1)>REF(LL,1);
ZD:=REF(C,1)<REF(HH,1);
STICKLINE(C>=AA,LL,HH,2.7,1),COLOR4A4AFF;
STICKLINE(C<AA,LL,HH,2.7,0),COLOR919148;
STICKLINE(ZY AND C>=REF(AA,1),LL,HH,2.7,1),COLOR4A4AFF;
STICKLINE(ZY AND C<REF(AA,1),HH,REF(AA,1),2.7,1),COLOR4A4AFF;
STICKLINE(ZY AND C<REF(AA,1),REF(AA,1),C,2.7,0),COLOR919148;
STICKLINE(ZD AND C<=REF(AA,1),LL,HH,2.7,0),COLOR919148;
STICKLINE(ZD AND C>REF(AA,1),LL,REF(AA,1),2.7,0),COLOR919148;
STICKLINE(ZD AND C>REF(AA,1),REF(AA,1),C,2.7,1),COLOR4A4AFF;
N:=IF(BARSCOUNT(C)>=3,5,BARSCOUNT(C));
AMOV:=VOL*(C+L+H)/3;
趋势:SUM(AMOV,N)/SUM(VOL,N),NODRAW;
持股:IF(C>=趋势, 趋势,DRAWNULL),COLOR5B5BFF;
持币:IF(C<趋势, 趋势,DRAWNULL),COLOR3D3D3D;
布林线公式:
顶:0.90,COLORGRAY,DOTLINE;
中:0.50,COLORGRAY,DOTLINE;
底:0.10,COLORGRAY,DOTLINE;
VAR1:=MA(CLOSE,13);
VAR2:=VAR1+1.96*STD(CLOSE,13);
VAR3:=VAR1-1.96*STD(CLOSE,13);
RSV:=(CLOSE-VAR3)/(VAR2-VAR3);
布林:SMA(RSV,2,1),COLOR5B5BFF;
趋势:SMA(布林,3,1),COLOR3D3D3D;
评论(0)