{隐去主图叠加K线}
STICKLINE(C =O,O,C,8,0)COLORBLACK;
STICKLINE(C =O,H,L,8,0)COLORBLACK;
STICKLINE(C =O,O,C,8,0)COLORBLACK;
STICKLINE(C =O,H,L,8,0)COLORBLACK;
AA2:=IF(DATE =1160615,1,1);
{参数 N: 2 250 20 }
N1:=20*AA2;
MID:=MA(C,N1)*AA2;
VART1:=POW((C-MID),2)*AA2;
VART2:=MA(VART1,N1)*AA2;
VART3:=SQRT(VART2)*AA2;
UPPER:=MID+2*VART3*AA2;
LOWER:=MID-2*VART3*AA2;
风险线:REF(UPPER,1)*AA2,LINETHICK1,COLORGREEN;
中间线:REF(MID,1)*AA2,LINETHICK1,COLORWHITE;
操作线:REF(LOWER,1)*AA2,LINETHICK1,COLORRED;
{九毛八公式指标网www.9m8.cn}
JJ:=(CLOSE+HIGH+LOW)/3*AA2;
A:=EMA(JJ,6)*AA2;
B:=REF(A,1)*AA2;
N:=IF(BARSCOUNT(C) =10,10,BARSCOUNT(C))*AA2;
VAR1:=REF(LOW,1)*AA2;
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100*AA2;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3)*AA2;
VAR4:=LLV(LOW,38)*AA2;
VAR5:=HHV(VAR3,38)*AA2;
VAR6:=IF(LLV(LOW,90),1,0)*AA2;
VAR7:=EMA(IF(LOW =VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6*AA2;
黄色上涨1:=(A B,A,C)*AA2,NODRAW,COLORYELLOW;
蓝色下跌1:=(A B,C,B)*AA2,NODRAW,COLORYELLOW;
MA5:=MA(C,5)*AA2;
MA10:=MA(C,10)*AA2;
MA20:=MA(C,20)*AA2;
MA40:=MA(C,40)*AA2;
MA60:=MA(C,60)*AA2;
五星买入:CROSS(黄色上涨1,中间线) AND (VAR7 =0.01)*AA2,NODRAW,COLORYELLOW;
黄块加强:(MA20 =MA60 AND MA60 =MA40) OR (MA20 =MA40 AND MA20 MA60)*AA2,NODRAW,COLORYELLOW;
{蓝色死叉:CROSS(中间线,黄色上涨1),NODRAW,COLORBLUE;}
正版@主力BOLL:0,NODRAW,COLORCYAN;
DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
{STICKLINE(MA5 =MA10 AND MA5 =MA60,MA10,MA5,2,0),COLORBLUE;}
STICKLINE(MA20 =MA60 AND MA60 =MA40,MA40,MA60,1,0),COLORYELLOW{COLORFF00FF};
STICKLINE(MA20 =MA40 AND MA20 MA60,MA40,MA60,1,0),COLORYELLOW;
{STICKLINE(MA5 =MA20 AND MA20 =MA10,MA10,MA20,1,0),COLORWHITE;
STICKLINE(MA5 =MA10 AND MA5 MA20,MA10,MA5,1,0),COLORWHITE;}
STICKLINE(C =MA(C,N),MA(C,N),MA(C,N*0.7),2,0),COLORRED;
STICKLINE(C MA(C,N),MA(C,N),MA(C,N*0.7),2,0),COLORGREEN;
STICKLINE(A B,A,C,2,1),COLORRED;
STICKLINE(A B,C,B,2,1),COLORGREEN;
{九毛八公式指标网www.9m8.cn}
STICKLINE(CROSS(黄色上涨1,中间线) AND VAR7 =0.01,O,C,1,0),COLORYELLOW;
{STICKLINE(CROSS(中间线,黄色上涨1),O,C,1,0),COLORBLUE;}
DRAWTEXT(CROSS(黄色上涨1,中间线) AND VAR7 =0.01,O,'★'),COLORYELLOW;
{DRAWTEXT(CROSS(中间线,蓝色下跌1),O,'▼'),COLORYELLOW;};