通达信兰色飘带主图指标

N:=5;CT:=0;
TON:=TOTALBARSCOUNT;
NN:=IF(BARSCOUNT(C)<N,BARSCOUNT(C),N);
上轨:REF(MA(H,NN),1),NODRAW;
下轨:REF(MA(L,NN),1),NODRAW;
带宽:100*(上轨/下轨-1),NODRAW;
STICKLINE(C,上轨,下轨,4,0),COLOR660000;
PA:=IF(CT=0,上轨,下轨);
BS:=FILTER(CROSS(C,PA),9);
信号:IF(BS,PA,0),NODRAW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE),COLOR00FFFF;
 
BN:=BARSLAST(BS>0); 信号数:SUM(BS>0,0),NODRAW;
BJJ:=REF(PA,BN);
DRAWICON(信号>0 AND (BJJ/REF(BJJ,1)-1)*100<-N*2,LLV(L,7)*0.99,3);
DRAWICON(信号>0,LLV(L,7)*0.99,7);
P1:=HHV(H>BJJ*1.03 AND BN>0 AND BN<=3,BN+1);
短线机会%3:100*SUM(P1=1 AND REF(P1,1)=0,0)/信号数,NODRAW;
P2:=HHV(H>BJJ*1.05 AND BN>0 AND BN<=7,BN+1);
%7:100*SUM(P2=1 AND REF(P2,1)=0,0)/信号数,NODRAW;
M3:MA(C,30),LINETHICK2;
M6:MA(C,60),LINETHICK2;
M12:MA(C,125),LINETHICK2;
M25:MA(C,250),LINETHICK2;
N1:=300;{注:锁定显示区为310条K线时正常显示}
N2:=IF(TON<N1,TON,N1);
AH:=CONST(HHV(H,N2)); AL:=CONST(LLV(L,N2)); AHL:=AH-AL;
DRAWTEXT(CURRBARSCOUNT=N2,AH+AHL*0.05,IF(CT=0,'上轨★信号数','下轨★信号数')),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=INTPART(N2*0.85),AH+AHL*0.05,' ★短线概率 ■三天3%】'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=INTPART(N2*0.63),AH+AHL*0.05,' % ■七天5%】 %★短线概率高低说明操盘相对安全性'),COLOR00FFFF;
DRAWNUMBER(CURRBARSCOUNT=INTPART(N2*0.9),AH+AHL*0.05, CONST(信号数)),COLOR0088FF;
DRAWNUMBER(CURRBARSCOUNT=INTPART(N2*0.68),AH+AHL*0.05,CONST(短线机会%3)),COLOR0088FF;
DRAWNUMBER(CURRBARSCOUNT=INTPART(N2*0.52),AH+AHL*0.05,CONST(%7)),COLOR0088FF;


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图