博易 布林趋势图 源码 用法
-
相关简介:博易 布林趋势图 贴图 源码 用法 用布林线做趋势,红买绿卖,中轨止盈,大道至简 MID :MA(CLOSE,20),POINTDOT; UPPER:MID + 2*STD(CLOSE,20),POINTDOT; LOWER:MID - 2*STD(CLOSE,20),POINTDOT; H2:=UPPER,COLOR007700,PRECIS2; L2:=LOWER,COLOR770077,PRECIS2; ST:REF(H=H2,1) AND HREF(H2,1)+0.01,LINETHIC
-
文章来源:股海网作者:股海网发布时间:2013-06-02浏览次数:
博易 布林趋势图 贴图 源码 用法
用布林线做趋势,红买绿卖,中轨止盈,大道至简
MID :MA(CLOSE,20),POINTDOT;
UPPER:MID + 2*STD(CLOSE,20),POINTDOT;
LOWER:MID - 2*STD(CLOSE,20),POINTDOT;
H2:=UPPER,COLOR007700,PRECIS2;
L2:=LOWER,COLOR770077,PRECIS2;
ST:REF(H<=H2,1) AND H>REF(H2,1)+0.01,LINETHICK0;
XT:REF(L>=L2,1) AND L<REF(L2,1)-0.01,LINETHICK0;
WST:BARSLAST(ST),LINETHICK0;
WXT:BARSLAST(XT),LINETHICK0;
PARTLINE(WST>WXT,H2),COLOR00FF00,LINETHICK1;
PARTLINE(WST<WXT,L2),COLOR0000FF,LINETHICK1;
DRAWKLINE(H,O,L,C);
UPQK:=LOW-REF(HIGH,1);
STICKLINE(CLOSE>REF(CLOSE,1) AND UPQK>0,REF(HIGH,1),LOW,15,1),COLORYELLOW;
DOWNQK:=REF(LOW,1)-HIGH;
STICKLINE(CLOSE<REF(CLOSE,1) AND DOWNQK>0,REF(LOW,1),HIGH,15,1),COLORGREEN;
TR2 := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR2 := MA(TR2,10);
STICKLINE((TR2>ATR2*1.8) AND (C <O),O,C,5,0),COLORFFFF00;
STICKLINE((TR2>ATR2*1.8) AND (C >O),O,C,5,0),COLORYELLOW;