{上半年百分线,适用于日线周期}
半年:=1+(BArslAST(crOSS(MONTH=1 OR MONTH=7,0.5) OR DATETODAY(DATE)=1));
天数:=IF(PERIOD=5,半年,DRAWNULL);
上高:=REF(HHV(H,天数),天数),COLORYELLOW;
上低:=REF(LLV(L,天数),天数),COLORWHITE;
高1:=上高;
低1:=上低;
振幅:(高1-低1)/低1*100,NODRAW,COLORWHITE;
H1:=高1;
H2:=高1-(高1-低1)*1/4;
H3:=高1-(高1-低1)*1/2;
H4:=高1-(高1-低1)*3/4;
H5:=低1;
天:REFDATE(H1,DATE),POINTDOT,LINETHICK4,COLORYELLOW;
地:REFDATE(H5,DATE),POINTDOT,LINETHICK4,COLOR00FF00;
强:REFDATE(H2,DATE),POINTDOT,LINETHICK4,COLORFFFF00;
中:REFDATE(H3,DATE),POINTDOT,LINETHICK4,COLORWHITE;
弱:REFDATE(H4,DATE),POINTDOT,LINETHICK4,COLOR0099FF;
N:=12;
DP:=(H+L+2*C)/4;
DN:=Abs(CLOSE-REF(CLOSE,N));
VY:=SUM(ABS(CLOSE-REF(CLOSE,1)),N);
{-股票公式网站 }
ER:=DN/VY;
FSC:=2/(2+1);
SSC:=2/(N+1);
SC:=ER*(FSC-SSC)+SSC;
SCSQ:=SC*SC;
KMA:DMA(DP,SCSQ),COLOR00FF00,LINETHICK2;
多空:EMA(DP,50),COLORFFFF00,LINETHICK2;
BUY:=KMA>EMA(KMA,3);
DRAWKLINE(H,O,L,C);
【量H】:=IF((AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100);
STICKLINE(【量H】=100,L,H,0.4,0),COLORFF00FF;
STICKLINE(【量H】=100 AND C>=O,C,O,4,1),COLORFF00FF;
STICKLINE(【量H】=100 AND C<O,C,O,4,0),COLORFF00FF;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,2,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,2,0),COLORBLUE;
IF(多空>REF(多空,1),多空,DRAWNULL),COLOR00FF00,LINETHICK2;
IF(BUY=1,KMA,DRAWNULL),COLORRED,LINETHICK2;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)