大智慧优化的布林指标公式

2019-08-29    作者:    来源:

N:=24;P:=2;
MID:MA(c,N);
UPPER:MID + P*std(c,N);
LOWER:MID - P*STD(c,N);
dRAWTEXTABS( 200, 0,'上轨红色代表布林张口,绿色表收口;中轨红表示趋势向上,绿表趋势向下');
DRAWTEXTABS(5,5,'股匠网 www.tzj123.com'),linethick1,COLOR00EEff;
if (c>o or(c=o and c>ref(c,1))) then
begin
STICKLINE(CLOSE,high,low,0.1,1),colorred;
STICKLINE(CLOSE,open,close,4,1),colorred;
end
if (c<o or(c=o and c<ref(c,1))) then
begin
STICKLINE(CLOSE,high,low,0.1,1),coloraaee00;
STICKLINE(CLOSE,open,close,4,0),coloraaee00;
end;
上下轨比值:upper/lower,linethick0;
PARTLINE(upper,上下轨比值>ref(上下轨比值,1),rgb(255,0,0),上下轨比值<ref(上下轨比值,1),rgb(0,255,0));
PARTLINE(mid,mid>ref(mid,1),rgb(255,0,0),mid<ref(mid,1),rgb(0,255,0));

阅读:127    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】