依据“趋势跟踪”改写选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

要求条件选股:写个根据在下指标,选出主升浪红色区域以阴线收盘的股票公式,如下图所示:{趋势跟踪通达信版本副图指标}{【趋势跟踪】指标使用说明:趋势为王守铁律,顺势而为主升期;临界出现防风险,挖坑不涨早休息!}MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);A1:=IF(C>=MA5,1,-1);A2:=IF(C>=MA10,1,-1);A3:=IF(C>=MA20,1,-1);A4:=IF(MA5>=REF(MA5,1),1,-1);A5:=IF(MA10>=REF(MA10,1),1,-1);A6:=IF(MA20>=REF(MA20,1),1,-1);趋势:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;主升浪:趋势>=50,COLOR0000FF,POINTDOT,NODRAW;↓:趋势<50,COLORFFFFFF,POINTDOT,NODRAW;周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;临界:IF(CROSS(98,趋势),1,0),COLOR00FF00,POINTDOT,NODRAW;WKQY:=BARSLAST(CROSS(50,趋势))0,50,50,1,0),COLOR000000;%:趋势,COLOR00FF00;{以下设置文字提示部分}DRAWTEXT(CURRBARSCOUNT=60,20,'====★趋势为王.顺势而为!★===='),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=58,-30,'■只做主升, 挖坑低吸!'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=58,-60,'●临界不涨, 逢高离场!'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=60,-90,'========'),COLOR00FF00;

解答:

 MA5:=MA(CLOSE,5);

MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
A1:=IF(C>=MA5,1,-1);
A2:=IF(C>=MA10,1,-1);
A3:=IF(C>=MA20,1,-1);
A4:=IF(MA5>=REF(MA5,1),1,-1);
A5:=IF(MA10>=REF(MA10,1),1,-1);
A6:=IF(MA20>=REF(MA20,1),1,-1);
趋势:=(A1+A2+A3+A4+A5+A6)/6*100;
主升浪:CROSS(MA5,MA20) AND MA5>MA10 AND 趋势>=50;

选股票看什么指标最好 >股票指标网