把暴涨启动线指标操作线.趋势线上拐修改选股
2020/2/17 18:26:50
公式编写说明:
选股条件:1、操作线 上拐2、趋势线 上拐PEAK1:=LLV(MA((LOW),5),30); 箱底:PEAK1,COLORLIMAGENTA; PEAK2:=HHV(MA((HIGH),6),30); 箱顶:PEAK2,COLORLIBLUE; TROUGHBARS1:=(箱顶+箱底)/2; 平衡:TROUGHBARS1,COLORFF00FF; TROUGHBARS2:=EXPMEMA(C,5); 操作线:TROUGHBARS2,COLORWHITE; TROUGHBARS3:=EXPMEMA(C,12); 趋势线:TROUGHBARS3,COLORBLUE; ZIG1:=平衡>=REF(平衡,1) AND 趋势线>=REF(趋势线,1) AND 操作线>趋势线 AND 趋势线>平衡 AND 操作线/趋势线<1.01; 暴涨:ZIG1,COLORRED,NODRAW; ZIG2:=CROSS(操作线,趋势线) AND 平衡>=REF(平衡,1); 启动:ZIG2,COLORYELLOW,NODRAW; STICKLINE(趋势线>平衡,平衡,趋势线,0,-1),COLORRED; STICKLINE(平衡>趋势线,趋势线,平衡,0,-1),COLORGREEN; STICKLINE(启动,箱底,箱顶,0,0),COLORYELLOW; STICKLINE(暴涨,箱底,箱顶,0,0),COLORRED; DRAWICON(CROSS(箱顶,操作线),箱顶*1.02,2);
公式源码回答:
PEAK1:=LLV(MA((LOW),5),30);
箱底:=PEAK1;
PEAK2:=HHV(MA((HIGH),6),30);
箱顶:=PEAK2;
TROUGHBARS1:=(箱顶+箱底)/2;
平衡:=TROUGHBARS1;
TROUGHBARS2:=EXPMEMA(C,5);
操作线:=TROUGHBARS2;
TROUGHBARS3:=EXPMEMA(C,12);
趋势线:=TROUGHBARS3;
XG:COUNT(CROSS(操作线,平衡),2)=1 AND COUNT(CROSS(趋势线,平衡),2)=1;
投股票 网 w ww.tou18.cn
股市公式下载推荐