N:=22;jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));
qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));
DDY:((qj2+qj4)-(qj1+qj3))/SUM(VOL,60),COLOR00DD00,LINETHICK0;
DY:=ma(ddy,5)*N;
STICKLINE(DDY<0,0,DDY,8,0),COLORFF8800;
STICKLINE(DDY<0,0,DDY,5,0),COLORFFaa00;
STICKLINE(DDY<0,0,DDY,3,0),COLORFFcc00;
STICKLINE(DDY<0,0,DDY,1,0),COLORFFee00;
STICKLINE(DDY>0,0,DDY,8,0),COLOR880088;
STICKLINE(DDY>0,0,DDY,5,0),COLORaa00aa;
STICKLINE(DDY>0,0,DDY,3,0),COLORcc00CC;
STICKLINE(DDY>0,0,DDY,1,0),COLORee00ee;
{股旁网-股票公式网站 www.gupang.com}
DDY1:SMA(DY,3,1),ColorFFFFFF;
DDY2:sma(DDY1,3,1),Color00FFFF;
DDY3:wma(DDY2,5),ColorFF00FF;
预警:DDy>0 and crOSS(DDy1,DDy2) and ddy1<0,LINETHICK0;
DRAWTEXT(预警,DDy*1.06,’★’),LINETHICK3,COLOR00BBFF;
DRAWTEXTREL(10,0,’涨跌动因’),ColorEEEEFF;
DRAWTEXTREL(600,900,’证券代码: ‘+STKLABEL+’ 证券名称: ‘+STKNAME+”),Color00BB00;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。