大智慧波浪顶底画线主图公式源码
M:=10; TH:=H; TL:=L; HH:=FILTER(BACKSET(FILTER(REF(TH,M)=HHV(TH,2*M+1),M),M+1),M); LL:=FILTER(BACKSET(FILTER(REF(TL,M)=LLV(TL,2*M+1),M),M+1),M); HBAR:=BARSLAST(HH); LBAR:=BARSLAST(LL); HZ:=REF(H,HBAR); LZ:=REF(L,LBAR); STICKLINE(C>0,HZ,HZ,1,0),COLORFF00FF,POINTDOT,LINETHICK2; STICKLINE(C>0,LZ,LZ,1,0),COLOR80FF00,POINTDOT,LINETHICK2; DRAWTEXT(H=HZ,H ,NUMTOSTRN(HZ,2)),COLORD3A9FF,VALIGN2,PRECIS2; DRAWTEXT(L=LZ,L ,NUMTOSTRN(LZ,2)),COLORFF00FF,VALIGN0,PRECIS2;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
大智慧波浪顶底画线主图公式源码
M:=10;
TH:=H;
TL:=L;
HH:=FILTER(BACKSET(FILTER(REF(TH,M)=HHV(TH,2*M+1),M),M+1),M);
LL:=FILTER(BACKSET(FILTER(REF(TL,M)=LLV(TL,2*M+1),M),M+1),M);
HBAR:=BARSLAST(HH);
LBAR:=BARSLAST(LL);
HZ:=REF(H,HBAR);
LZ:=REF(L,LBAR);
STICKLINE(C>0,HZ,HZ,1,0),COLORFF00FF,POINTDOT,LINETHICK2;
STICKLINE(C>0,LZ,LZ,1,0),COLOR80FF00,POINTDOT,LINETHICK2;
DRAWTEXT(H=HZ,H ,NUMTOSTRN(HZ,2)),COLORD3A9FF,VALIGN2,PRECIS2;
DRAWTEXT(L=LZ,L ,NUMTOSTRN(LZ,2)),COLORFF00FF,VALIGN0,PRECIS2;