同花顺自用布林通道副图指标 源码介绍
同花顺自用布林通道副图指标 源码
自用改编的指标。多空线为趋势线。参考快线以生线为中心,上至死线,下至底区线之间游走来判断买卖。
多线:(SUM((((2)*(CLOSE-CLOSE*0.2)+(OPEN-OPEN*0.2)+(HIGH-HIGH*0.2)+(LOW-LOW*0.2))/(5))*(VOL),8))/(SUM(VOL,8)),COLOR00FF00,LINETHICK1;;
空线:EMA(多线,8);
快线: IF(LLVBARS(多线,20), REF (C,LLVBARS(空线,2)),L),colorred;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
生线:EMA(X,5),COLOR00FF00,LINETHICK1;
VAR4:=(2*CLOSE+HIGH+LOW)/4;
底区:(多线+生线)/2,coloryellow,LINETHICK1;
操线:(生线+底区)/2,colorblue,linethick1;
顶区:(生线+底区)/1.8,colorwhite,linethick1;
死线:(生线+底区)/1.7,colorgreen,CIRCLEDOT;
STICKLINE(多线>空线,多线,空线,0,2,0),Color00FF00;
W:=CROSS(快线,死线)*10;
DRAWTEXT(W=10,H,'跌快跑' ),coloryellow;
关注:IF(CROSS(快线,底区) AND 快线<20 ,4,3),colorgray;
DRAWTEXT(CROSS(快线,底区),L-0.2,'关注底'),Color00FF00,;
顶:IF(FILTER(CROSS(快线,顶区) AND 快线<80 ,3),4,3),COLORFF0000;
DRAWTEXT(CROSS(快线,顶区),L-0.2,'警惕顶'),colorred;
出击:IF(CROSS(快线,操线) AND 快线<20 ,4,3),colorred;
DRAWTEXT(CROSS(快线,操线),L-0.2,'快击'),colorwhite;
PARTLINE(空线,REF(空线,1)<=空线,colorred,1,colorblue),Linethick3;
ff:=EMA(CLOSE,12)-EMA(CLOSE,26);
aa:=EMA(ff,9);
DRAWTEXT(CROSS(ff,aa),H+1.00,'买'),colorred;
DRAWTEXT(CROSS(aa,ff),H+1.00,'卖'),colorgreen;
gd47647