{及时雨}
{可见K线 N=75条}; N:=75;
{可见K线 最高价}; HH:=CONST(HHV(H,N));
{可见K线 最低价}; LL:=CONST(LLV(L,N));
{可见K线 中间价}; MM:=CONST(HH/2+LL/2);
{最后 收盘价}; CC:=CONST(C),CROSSDOT;
{浮动线&0.2差值}; YY:=CONST(IF(CC>=MM,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2)),POINTDOT;
{MACD:—————————————————————–};
{MACD 原参数}; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
{MACD 原参数}; DEA:=EMA(DIF,9);
{MACD 原参数}; MACD:=(DIF-DEA)*2,COLORSTICK;
{MACD N内最高线}; MHH:=CONST(HHV(MACD,N));
{MACD N内最低线}; MLL:=CONST(LLV(MACD,N));
{MACD N内均顶底}; MMM0:=MHH/2-MLL/2; MMM:=IF(MMM0=0,YY,YY-MACD,2,0),COLORRED; {颠倒图};
{浮动线下蓝MACD}; STICKLINE(MACDREF(J,1),YY+REF(JJ,1),YY+JJ,2.0,0),COLORMAGENTA;
{浮动线上 画J线}; STICKLINE(J0,(SAR1+SAR2)/2,IF(SAR1+SAR2=0,DRAWNULL,SAR1+SAR2)),CIRCLEDOT,COLORGREEN;
{SAR 合画抛物线}; 持股:IF(MIN(SARE,SARA)>0,(SARE+SARA)/2,IF(SARE+SARA=0,DRAWNULL,SARE+SARA)),CIRCLEDOT,COLORMAGENTA;
{MA——————————————————————–};
{MA1 收盘价线}; MA1:C,COLORYELLOW,NODRAW;
{MA3天均线:4K价}; MA3:MA(((3*C+L+O+H)/6),3),COLORYELLOW,NODRAW;
{MA3上穿SAR提示}; {DRAWICON(CROSS(MA3,SAR(4,2,20))=1,SAR(4,2,20),7);};
{MA3下穿SAR提示}; {DRAWICON(CROSS(SAR(4,2,20),MA3)=1,SAR(4,2,20),8);};
{BBI——————————————————————-};
{BBI 1天线}; BBI:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORWHITE;
{BB5 5天线}; BB5:(MA(C,15)+MA(C,30)+MA(C,60)+MA(C,120))/4,COLORWHITE;
{ gainiangu. com 股.旁.网}
{BB5 上行变红}; IF(C>BB5,BB5,DRAWNULL),COLORRED;
{BB5 下行变蓝}; IF(CJJ,REF(JJ,1),JJ);
{JJ 取低点}; JJL:=IF(REF(JJ,1)ML AND JJH=MH,MH,DRAWNULL));
{重叠区 取低点}; Z2:=IF(JJL>ML AND JJLMM,LL,HH),’收BB5上,还有好市’),COLORRED;
DRAWTEXT(BACKSET(CMM,LL,HH),’收BB5下,保本要紧’),COLORLIBLUE;
}
DRAWTEXT(CURRBARSCOUNT=16 AND BACKSET(C>BB5,CURRBARSCOUNT)=1 AND BACKSET(CROSS(MA1,BBI)=1,CURRBARSCOUNT)=1,IF(CC>MM,LL,HH),’收BB5上,上穿BBI’),COLORRED;
DRAWICON(CROSS(DIF,DEA), YY-MMM,1);
DRAWICON(CROSS(DEA,DIF), YY+MMM,2);
【股票入门基础知识】【通达信】四合一主图指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。