资源描述:
《【通达信】布林主图(上轨、平衡、多方、趋势线)文库》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【通达信】布林主图(上轨、平衡、多方、趋势线)■指标公式源码平衡:EMA(C,20),CIRCLEDOT,COLORWHITE;上轨:平衡+1.026*2*STD(C,20),LINETHICK2,COLORFFOOFF;下轨:平衡-1.026*2*STD(C,20),LINETHICK2,C0L0R00FF00;STTCKLTNE((CLOSE>平衡),平衡,平衡,1,0),IJNETHTCK6,COLOROOOOFF;ST1CKL1NE((平衡>CLOSE),平衡,平衡,1,0),LINETHICK6,C0L0RFF6600;STICKLINE(C
2、LOSE>OPEN,OPEN,LOW,0,0),COLOROOOOFF;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,0),COLOROOOOFF;STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0,0),COLOROOFFOO;STTCKLTNE(OPEN〉二CLOSE,OPEN,HIGH,0,0),COLOROOFFOO;STICKLINE(OPEN>=CLOSESTICKLINE(OPEN>=CLOSESTICKLINE(OPEN>=CLOSESTICKLINE(OPEN>=CLOSESTTCKLTNE(OP
3、EN>=CLOSESTICKLINE(OPEN>=CLOSESTICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.9,0,CLOSE,OPEN,2.5,0,CLOSE,OPEN,2.1,0,CLOSE,OPEN,1.7,0,CLOSE,OPEN,1.3,0,CLOSE,OPEN,0.9,0,CLOSE,OPEN,0.5,0),C0L0RFF7700),C0L0RFF9900),COLORFFBBOO),COLORFFCCOO),COLORFFDDOO),COLORFFEEOO),COLORFFFFOO,C0L0R000055;,C0L0
4、R000066;,C0L0R000077;,C0L0R000099;,COLOROOOOBB;,COLOROOOODD;,COLOROOOOFF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.9,0)STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0)STTCKLTNE(CLOSE>OPEN,CLOSE,OPEN,2.1,0)STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.7,0)STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0)STICKLINE(CLOSE>
5、OPEN,CLOSE,OPEN,0.9,0)STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0)Y1:=REF(EMA(DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9),3),1);DRAWTEXT(CROSS(CLOSE,Y1),LOW,'[买进]'),COLORYELLOW;STICKLINE(CROSS(Yl,CLOSE),H*l.05,H,1,0),COLORWHITE;DRAWTEXT(CROSS(Yl,CLOSE),HIGH*1.05,'[卖出]COLORWHITE;VAR1W:=(1OO
6、-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LEV(LOW,21))));VAR2W:=(100一((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));VAR3W:二(100-MA(((100*(HHV(HTGH,6)-CLOSE))/(HHV(HTGH,6)-LLV(LOW,6))),34));DRAWTEXT(CROSS(VAR2W,MA(VAR3W,6)),LOW-0.6,'(买)'),C0L0RFF99FF;DRAWTEXT(CROSS(MA(VA
7、R3W,6),VAR1W),HIGH+0.9,'(卖)'),C0L0RCCFF13;VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050ANDHIGH/CLOSE<1.010ANDTF(CLOSE>REF(CLOSE,1),8&0)>0,91,0);STICKLINE(VAR3P>90,L,L*0.92,1,0),COLORFFOOFF;DRAWTEXT(VAR3P>90,LOW^O.92,'追涨J,COLORFFOOFF;SS:=MA((LOW+IIIGII+CLOSE)/3,5)>REF(MA((LOW+IIIGII+CLOSE)/
8、3,5),1)ANDREF(MA((LOW+HIGH+CLOSE)/3,5),1)[ ]