QMA5专用 通达信主图指标 源码 贴图

2020-05-12 09:48:00来源:本站整理浏览:367

QMA5专用 通达信主图指标 源码 贴图

QMA5专用 通达信主图指标 源码 贴图


MAA5:=MA(C,5);

MAA5_T:= ( (C+ C + REF(C,1) + REF(C,2) + REF(C,3) ) / 5 );
MAA10:=MA(C,10);
MAA20:=MA(C,20);
MAA30:=MA(C,30);
KS:=IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
A9:=( (C-REF(C,1)) / REF(C,1) ) > 0.02; {涨幅要大于2%}
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)) AND A9;
DRAWTEXT(FILTER(买=1,5),LOW-0.01,'↖买进'),COLORMAGENTA;
STICKLINE(买,OPEN,CLOSE,2,0),COLORMAGENTA;
{WWW.GPXIAZAI.COM}
{如果涨停显示黄芯,如果跌停显示绿芯}
涨停 := (C /REF(C,1)) > 1.095;
STICKLINE(涨停, HIGH, OPEN, 1, 0), COLORYELLOW;

跌停 := C/REF(C,1) < 0.9 ;
STICKLINE(跌停, HIGH, LOW, 1, 0), COLORGREEN;

{M5:MA(CLOSE,5), LINETHICK2, COLORRED; {COLORWHITE;}
{MAA5_T, NODRAW;}
{M10:MA(CLOSE,10), COLORLIRED, LINETHICK2;}
{M20:MA(CLOSE,20), COLORFF00FF, LINETHICK2;}
{M30:MA(CLOSE,30), COLORGREEN, LINETHICK2;}

DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3),COLORBLUE,LINETHICK1;


{M60:MA(CLOSE,60); POINTDOT}
{M89:MA(CLOSE,89),LINETHICK2,COLORFF9966;}
{//一二零日:=MA(C,120),LINETHICK1,COLOR000099;
//一四四日:MA(C,144),LINETHICK1,COLORFF3300; //BLUE
}

{M90:MA(CLOSE,90);}
{M120:MA(CLOSE,120);}
{M250:MA(CLOSE,250);};

{//顶部显示}
SBL1 := STRCAT('地区:', DYBLOCK);
SBL2 := STRCAT(' 行业:', HYBLOCK);
SBL3 := STRCAT(' 主题投资:', EXTERNSTR(0,1));
SBL4 := STRCAT(' ', ZDBLOCK);

{SBL4 := STRCAT(STRCAT(SBL1, SBL2), SBL3);}
SBL5 := STRCAT(STRCAT(SBL1, SBL2), SBL4);
DRAWTEXT_FIX(1,0.0,0,0, SBL5),COLORFF6000;

{底部显示}
SBL:= STRCAT(' ', STRCAT(STRCAT(STRCAT(HYBLOCK,DYBLOCK),GNBLOCK),ZDBLOCK) );
{DRAWTEXT_FIX(1,0,70,0,SBL),COLORFF6000;}
DRAWTEXT_FIX(ISLASTBAR,0,70,0,SBL3),COLORFF6000;


转送:=( FINANCE(7)/REF(FINANCE(7),1) > 1.1 );
STICKLINE(跌停, HIGH, LOW, 1, 0), COLORBLUE;

 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式