把主力买卖改为三线开花多头选股公式
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 要求选出五日值、十日值、二十日值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*Y
-
文章来源:股海网作者:股海网发布时间:2015-12-01浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
要求选出五日值、十日值、二十日值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;
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;
解答如下:
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;
五日值:=EMA(SUM(静买,40),5);
十日值:=MA(五日值,10);
二十日值:=MA(五日值,20);
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;
五日值:=EMA(SUM(静买,40),5);
十日值:=MA(五日值,10);
二十日值:=MA(五日值,20);
上一篇:在主图上距今天45天、30天做出标记
下一篇:MACD死叉在金叉的选股指标