通达信量价抄底主副图 价格反转和反转共振是抄底机会 源码
1.本指标用于通达信
2.主图价格反转和副图量反转共振是抄底机会。
{量价抄底主图源码如下}
所属板块:=STRCAT('【所属板块】:',STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [概念]—',GNBLOCK)));
风格板块:=STRCAT('【风格板块】:',STRCAT(STRCAT(' [地域]—',DYBLOCK),STRCAT(' [风格]—',FGBLOCK)));
总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');
市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');
股本市值:=STRCAT('【股本市值】:',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值));
市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));
净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('【当前业绩】:',STRCAT(STRCAT(市盈率,净资收益率),主营利润率));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.005,0.07,0,风格板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,股本市值),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.17,0,当前业绩),COLORMAGENTA;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,13);
B:=REF(A,1);
CTA1:=EMA(CLOSE,3);
CTA2:=EMA(CLOSE,8);
CTA3:=EMA(CTA2,13);
CTA4:=EMA(CTA2,55);
M2:=EMA(CLOSE,8);
生命价线:=EMA(M2,13),COLORGREEN,LINETHICK4;
MA5:=MA(C,5),COLORWHITE,LINETHICK1;
MA10:=MA(C,10),COLORBLUE,LINETHICK3;
MA20:=EMA(C,20);
MA99:=MA(C,99);
MA120:=MA(C,120);
MA250:=EMA(C,250),COLORBLUE,LINETHICK3;
CTD1AQ:=(CLOSE+HIGH+LOW)/3;
CTD2AQ:=EMA(CTD1AQ,14);
CTD3AQ:=REF(CTD2AQ,1);
CTD4AQ:=EMA(CTD1AQ,5),COLORMAGENTA,LINETHICK4;
多空趋势彩带2:DRAWBAND(生命价线,RGB(61,145,64),CTD2AQ,RGB(199,97,20));
多空趋势彩带3:DRAWBAND(CTD2AQ,RGB(56,94,15),CTD4AQ,RGB(255,97,0));
持股区域:STICKLINE(A>B,A,B,2,0),COLORYELLOW;
持币区域:STICKLINE(A< B,A,B,2,0),COLORBLUE;
量价抄底:=EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK4,COLOR0000FF;
价量抄底:=EMA(REF(量价抄底,1),2),LINETHICK2,COLOR00FFFF;
价格反转:=CROSS(CTD4AQ,生命价线) AND 量价抄底>价量抄底 AND C>量价抄底;
DRAWTEXT(价格反转,L*0.96,' ★价格反转'),COLORYELLOW;
STICKLINE(价格反转,OPEN,CLOSE,0.6,0),COLORYELLOW;
DRAWICON(价格反转,L,9);
{量价抄底副图源码如下}
HGW1:=(3*C+H+L+O)/6;
HGW2:=(8*HGW1+7*REF(HGW1,1)+6*REF(HGW1,2)+5*REF(HGW1,3)+4*REF(HGW1,4)+3*REF(HGW1,5)+2*REF(HGW1,6)+REF(HGW1,8))/36;
HGW3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HGW2 AND C>O;
龙:FILTER(HGW3,5),STICK,COLORYELLOW,LINETHICK4;
DRAWTEXT(龙,0.9,' 量'),COLORRED;
DRAWTEXT(龙,0.7,' 能'),COLORRED;
DRAWTEXT(龙,0.5,' 反'),COLORRED;
DRAWTEXT(龙,0.3,' 转'),COLORRED;