標(biāo)簽: 股票 | 分類: 大智慧指標(biāo)源碼 |
{紅綠燈副圖指標(biāo)
使用方法和遵守交通規(guī)則一樣綠燈行,紅燈停,黃燈觀望!}
DRAWTEXTABS(0,0,'《超短線★-原創(chuàng)》'),COLOR0000FF;
DRAWTEXT(DISPSTATUS=2,3.5,'短線'),colorwhite,LAYER4;
DRAWTEXT(DISPSTATUS=2,1.5,'中線'),colorwhite,LAYER4;
DRAWTEXT(DISPSTATUS=2,-1,'長線'),colorwhite,LAYER4;
A:=MAX(MA(C,5),MA(C,20),MA(C,30),MA(C,60),MA(C,120));
B:=MIN(MA(C,5),MA(C,20),MA(C,30),MA(C,60),MA(C,120));
開槍:C>A,COLORGREEN;
休息:C<B,COLORRED;
觀望準(zhǔn)備:A>=C AND C>=B,COLORYELLOW ;
R1:=10;
E1:=MAX(MA(C,5),MA(C,20));
F1:=MIN(MA(C,5),MA(C,20));
STICKLINE(C>E1,2.5,4,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<F1,2.5,4,8,0),COLORRED,LINETHICK2;
STICKLINE(E1>=C AND C>=F1,2.5,4,8,0),COLORYELLOW,LINETHICK2;
R:=0;
A3:=MAX(MA(C,30),MA(C,60));
B3:=MIN(MA(C,60),MA(C,120));
STICKLINE(C>A3,0.5,2,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B3,0.5,2,8,0),COLORRED,LINETHICK2;
STICKLINE(A3>=C AND C>=B3,0.5,2,8,0),COLORYELLOW,LINETHICK2;
R:=5;
E:=MAX(MA(C,60),MA(C,120));
F:=MIN(MA(C,30),MA(C,60));
STICKLINE(C>E,-0.5,-2,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<F,-0.5,-2,8,0),COLORRED,LINETHICK2;
STICKLINE(E>=C AND C>=F,-0.5,-2,8,0),COLORYELLOW,LINETHICK2;
聯(lián)系客服