软件名称:[B]分时自用主图指标---布林带[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:1.00 KB
官方主页:Home Page
更新时间:2009-02-26 03:34:43
软件简介:
分时自用主图指标---布林带
分时自用主图指标---布林带
======================================
两个版本源码全部公开,供大家参考。
运用之妙,存乎一心!自己多体会。
---------------------------------------------------------
同花顺分时布林带源码
tt:=BARSCOUNT(NEW);
CC:=NEW;
zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(NEW/zz,1.05,0.95);
均线:IF(zz1=0,MA(Cc,TT),zz),POINTDOT,COLOR00FFFF,LINETHICK0;
PARTLINE(均线,均线>=Cc,RGB(0,255,0),均线<Cc,RGB(255,0,0)),Linethick2;
上均:均线 + AVEDEV(Cc,tt)*2,COLOR00FF00;
下均:均线 - AVEDEV(Cc,tt)*2,COLORFFff00;
dk:=(上均-下均)*100/均线;
TIPTEXT(CROSS(dk,4) ,PRE,'布林带宽为:'+dk+'%');
VERLINE(dk<=2 AND CROSS(cc,上均),2),Color00ff00;
VERLINE(dk<=2 AND CROSS(下均,Cc),2),colorwhite;
DRAWTEXT(dk>4 AND CROSS(上均,Cc),上均,'★'),colorred;
DRAWTEXT(dk>4 AND CROSS(cc,下均),下均,'▲'),color00ff00;
============================================================================
飞狐分时布林带源码
tt:=BARSCOUNT(c);
CC:=c;
zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(cc/zz,1.05,0.95);
均线:IF(zz1=0,MA(Cc,TT),zz),COLOR00FFFF,LINETHICK0;
PARTLINE(均线>=Cc,均线),color00ff00,Linethick2;
PARTLINE(均线<Cc,均线),colorred,Linethick2;
上均:均线 + AVEDEV(Cc,tt)*2,COLOR00FF00;
下均:均线 - AVEDEV(Cc,tt)*2,COLORFFff00;
dk:=(上均-下均)*100/均线;
VERtLINE(dk<=2 AND CROSS(cc,上均)),Color00ff00,linedot;
VERtLINE(dk<=2 AND CROSS(下均,Cc)),colorwhite,linedot;
DRAWTEXT(dk>4 AND CROSS(上均,Cc),上均,'★'),colorred,ALIGN1;
DRAWTEXT(dk>4 AND CROSS(cc,下均),下均,'▲'),color00ff00,ALIGN1;
DRAWTEXTEX(c>0,1,800,700,'布林上轨:'+NUMTOSTR(上均,2)+'元'),color00ff00;
DRAWTEXTEX(c>0,1,800,750,'今日均线:'+NUMTOSTR(均线,2)+'元'),coloryellow;
DRAWTEXTEX(c>0,1,800,800,'布林下轨:'+NUMTOSTR(下均,2)+'元'),colorffff00;
DRAWTEXTEX(c>0,1,800,850,'布林带宽:'+NUMTOSTR(dk,2)+'%'),colorffff00;
[url=http://www.70822.com/soft/sort013/sort02/down-6777.html]分时自用主图指标---布林带[/url]