编写要求:
解答:
?网友求助:
要求选出五日值、十日值、二十日值O轴上呈三线多头排列的股票。
TT:=1;
YE:=(CLOSE+HIGH+LOW)/3;
YE1:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE2:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));
YE3:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
YE4:=SUM(YE1*YE3,1);
YE5:=SUM(YE2*YE3,1);
静买:=(YE5-YE4)/CAPITAL*100;
买卖值:静买*TT,LINETHICK0,color00FFFF;
STICKLINE(静买>0 AND TT,静买,0,8,0),color000077;
STICKLINE(静买>0 AND TT,静买,0,7,0),color000088;
STICKLINE(静买>0 AND TT,静买,0,6,0),color000099;
STICKLINE(静买>0 AND TT,静买,0,5,0),color0000AA;
STICKLINE(静买>0 AND TT,静买,0,4,0),color0000BB;
STICKLINE(静买<0 AND TT,静买,0,8,0),color007700;
STICKLINE(静买<0 AND TT,静买,0,7,0),color008800;
STICKLINE(静买<0 AND TT,静买,0,6,0),color009900;
STICKLINE(静买<0 AND TT,静买,0,5,0),color00AA00;
STICKLINE(静买<0 AND TT,静买,0,4,0),color00BB00;
STICKLINE(静买=0 AND TT,静买,0,8,0),color00FFFF;
STICKLINE(静买<0 AND 静买>-0.05 AND TT,静买,0,8,0),color00FFFF;
五日值:EMA(SUM(静买,40),5)*TT,colorFFFFFF;
十日值:MA(五日值,10),colorFF00FF;
二十日值:MA(五日值,20),color00FF00;
十日走强天数:(COUNT(静买>0,10))*TT,LINETHICK0,colorFFFF00;
连续走强天数:(BARSLAST(静买<=0))*TT,LINETHICK0,colorFF00FF;
三十日走强天数:(COUNT(静买>0,30))*TT,LINETHICK0,colorFFFF00;
DRAWTEXT(三十日走强天数>20,五日值,'*'),color00FFFF;
?
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!