点击关注☝,置顶+星标每天订阅,学习更多指标内容☼☝
公式如下:
CTA1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;CTA2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;CTA3:=(SMA(CTA2,3,1)-18)*1.55;CTA4:=SMA(CTA3,3,1);CTA5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;CTA6:=SMA(CTA5,10,1);CTA7:=(EMA(SMA(CTA6,8,1),34)-25)*2.6;CTA8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);CTA9:=POW(MA(LOW,5),2)+MA(LOW,5);CTAA:=POW(MA(HIGH,5),2)+MA(HIGH,5);CTAB:=((CTA8-LLV(CTA9,64))/(HHV(CTAA,64)-LLV(CTA9,64))*150+65-10)/2;CTAC:=SMA(CTAB,3,1)*1.5-46;CTAD:=SMA(CTAC,3,1);CTAE:=3*CTAC-2*CTAD;CTAF:=(CTA1+CTA2+CTA5)/3;CTA10:=((CTA3+CTA3+CTA6+CTAC)/4-15)*1.67;CTA11:=((CTA4+CTA4+CTA7+CTAD)/4-15)*1.67;CTA12:=((CTA1+CTA5*2+CTAF+CTA10+CTA11+CTAB+CTAC+CTAD+CTAE)/10-15)*1.67;CTA13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;CTA14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;CTA15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;CTA16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;CTA17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;CTA18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;CTA19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;CTA1A:=((CTA13*8+CTA14*8+CTA15*8+CTA16+CTA17+CTA18+CTA19)/28-0.1)*185;DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:彩虹桥投资学习'),COLORRED;CTA1B:=SMA(CTA1A,3,1);CTA1C:=(SMA(CTA1B,8,1)-8)*1.18;浮动筹码:(CTA10+CTA11+CTA12+CTAC+CTAD+CTAE+CTA1C+CTA7)/13;浮动筹码1:(CTA10+CTA11+CTA12+CTAC+CTAD+CTAE+CTA1C+CTA7)/21;浮动筹码2:(CTA10+CTA11+CTA12+CTAC+CTAD+CTAE+CTA1C+CTA7)/34;获利筹码:(CTA3+CTA6+CTA1B*2)/4;100;CTA2N:=LLV(LOW,3)<=LLV(LOW,60);CTA3N:=C>O AND (C/O>1.03 OR C>1.03*REF(C,1));XG:=CROSS(获利筹码,浮动筹码2) AND REF(获利筹码,1)<0 ;DRAWICON(XG,XG+5,42);XH:CROSS(浮动筹码,浮动筹码2);DRAWICON(XH,XH+5,9);
信号有两个,都测试一下,如果有公式问题,扫描下方二维码联系我。
选股公式如下 :
CTA1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;CTA2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;CTA3:=(SMA(CTA2,3,1)-18)*1.55;CTA4:=SMA(CTA3,3,1);CTA5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;CTA6:=SMA(CTA5,10,1);CTA7:=(EMA(SMA(CTA6,8,1),34)-25)*2.6;CTA8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);CTA9:=POW(MA(LOW,5),2)+MA(LOW,5);CTAA:=POW(MA(HIGH,5),2)+MA(HIGH,5);CTAB:=((CTA8-LLV(CTA9,64))/(HHV(CTAA,64)-LLV(CTA9,64))*150+65-10)/2;CTAC:=SMA(CTAB,3,1)*1.5-46;CTAD:=SMA(CTAC,3,1);CTAE:=3*CTAC-2*CTAD;CTAF:=(CTA1+CTA2+CTA5)/3;CTA10:=((CTA3+CTA3+CTA6+CTAC)/4-15)*1.67;CTA11:=((CTA4+CTA4+CTA7+CTAD)/4-15)*1.67;CTA12:=((CTA1+CTA5*2+CTAF+CTA10+CTA11+CTAB+CTAC+CTAD+CTAE)/10-15)*1.67;CTA13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;CTA14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;CTA15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;CTA16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;CTA17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;CTA18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;CTA19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;CTA1A:=((CTA13*8+CTA14*8+CTA15*8+CTA16+CTA17+CTA18+CTA19)/28-0.1)*185;CTA1B:=SMA(CTA1A,3,1);CTA1C:=(SMA(CTA1B,8,1)-8)*1.18;浮动筹码:=(CTA10+CTA11+CTA12+CTAC+CTAD+CTAE+CTA1C+CTA7)/13;浮动筹码1:=(CTA10+CTA11+CTA12+CTAC+CTAD+CTAE+CTA1C+CTA7)/21;浮动筹码2:=(CTA10+CTA11+CTA12+CTAC+CTAD+CTAE+CTA1C+CTA7)/34;获利筹码:=(CTA3+CTA6+CTA1B*2)/4;CTA2N:=LLV(LOW,3)<=LLV(LOW,60);CTA3N:=C>O AND (C/O>1.03 OR C>1.03*REF(C,1));LD:=LLV(L,250);LT:=BARSLAST(LD);CL:=REF(L,LT);XG:CROSS(获利筹码,浮动筹码2) AND REF(获利筹码,1)<0 AND 浮动筹码2>0;
1、选股公式“多”
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件,胜率61.43%
2、选股公式“新低钱袋子”
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件,胜率88.05%
风险提示:本指标公式仅作为知识分享,模拟测试不构成任何投资建议,不作投资依据。
END
|