《乖离指导》中股价跌破地线的选股公式
2020/1/22 18:25:55
公式编写说明:
求老师写一个《乖离指导》中股价跌破地线的选股公式(下面蓝色虚线)。 {N:2,250,12;N1:24}AS5:(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,COLORYELLOW,NODRAW;BIAS1:(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100,COLORGREEN,NODRAW;BIAS2:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100,COLORGREEN,STICK,LINETHICK3;分界线:=BIAS1>=0;DRAWBAND(分界线,RGB(90,50,180),AS5,(50,50,180));BIAS:(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100,COLORRED;上轨:MA(BIAS1,8)+1.618*STD(BIAS2,8),COLORBROWN;下轨:MA(BIAS1,8)-1.618*STD(BIAS2,8),COLORLIGRAY;【最高】:=BIAS1*1.1,COLORGREEN;【最低】:=BIAS1*0.90,NODRAW;【收盘】:=BIAS1,NODRAW;【开盘】:=REF(【收盘】,1),NODRAW;STICKLINE(【收盘】>=【开盘】,【最高】,【最低】,0,0),COLORMAGENTA;STICKLINE(【收盘】>=【开盘】,【收盘】,【开盘】,3,1),COLORYELLOW;STICKLINE(【收盘】<【开盘】,【最高】,【最低】,0,0),COLOR00FF00;STICKLINE(【收盘】<【开盘】,【收盘】,【开盘】,3,1),COLOR00FF00;变异:IF(BIAS< REF(BIAS,1),BIAS,DRAWNULL),COLORLIGREEN,LINETHICK3;STICKLINE(AS5>0 AND AS5>REF(AS5,1),AS5+1,分界线,1,0),COLORMAGENTA;UP1:=HHV(BIAS,55);UP2:=LLV(BIAS,55);UP3:=BIAS-(BIAS1-BIAS);UP:IF(BIAS1>UP1 AND BIAS=UP1,MAX(LLV(UP1,10),UP3),UP1),COLORBB9A00;DN:IF(BIAS1<UP2 AND BIAS=UP2,MIN(HHV(UP2,10),UP3),UP2),COLORBB9A00; {叠加百分线}JB:=BIAS1;EE:=CURRBARSCOUNT<=200;HH:=CONST(HHV(JB,200));LL:=CONST(LLV(JB,200));天:HH,POINTDOT,COLORLIGREEN;地:LL,POINTDOT,,COLORLIGREEN;{强:CONST(HH-(HH-LL)*1/5),POINTDOT,COLORLIGRAY;中:CONST(HH-(HH-LL)*1/2),POINTDOT,COLORLIGRAY;弱:CONST(HH-(HH-LL)*4/5),POINTDOT,COLORLIGREEN};(参数:N 2 250 12.N1 2 250 24)
公式源码回答:
BIAS1:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;
LL:=CONST(LLV(JB,200));
CROSS(LL,C);
投 股票网 www. tou18.cn
股市公式下载推荐