通达信“底部信号主图”指标公式和选股公式——指标分享,胜率57.48%
公式如下:
{IF(多方>REF(多方,1),多方,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT;}
BC1:=MA(C,1);
BC2:=SMA(SMA(SMA(BC1,2,1),2,1),2,1);
SMA2:=MA(BC2,3);
SQMY:IF(LLV(MA(BC2,8),3)<bc2,llv(ma(bc2,8),3),bc2);< span=""></bc2,llv(ma(bc2,8),3),bc2);<>
IF(BC2>SMA2,BC2,DRAWNULL),COLORRED,LINETHICK4;
IF(BC2<sma2,bc2,drawnull),colorgreen,linethick4;< span=""></sma2,bc2,drawnull),colorgreen,linethick4;<>
SQMC:HHV(MA(BC2,1),13),COLORYELLOW;
FZ1:=(2*CLOSE+HIGH+LOW)/4;
FZ2:=MA(FZ1,7);
FZ3:=FZ2-MA(FZ1,7/2)<0;
FZ4:=FZ2-MA(FZ1,7/2)>0;
FZ5:=BARSLAST(FZ3);
FZ6:=0-BARSLAST(FZ4);
FZ7:=IF(FZ3<=0,FZ5,FZ6);
STICKLINE(SQMC>BC2 AND BC2>SMA2,SQMC,BC2,0,1),COLORLIBLUE;
STICKLINE(SQMC>SMA2 AND BC2<sma2,sqmc,sma2,0,1),colorblue;< span=""></sma2,sqmc,sma2,0,1),colorblue;<>
FZ11:=(CLOSE*2+HIGH+LOW)/4;
FZ21:=EMA(FZ11,13)-EMA(FZ11,34);
FZ31:=EMA(FZ21,5);
STICKLINE((C>=O),OPEN,LOW,0,0),COLOR0726CA;
STICKLINE((C>=O),CLOSE,HIGH,0,0),COLOR0726CA;
STICKLINE((C<o),close,low,0,0),colorde9100;< span=""></o),close,low,0,0),colorde9100;<>
STICKLINE((C<o),open,high,0,0),colorde9100;< span=""></o),open,high,0,0),colorde9100;<>
STICKLINE((C<o),close,open,4,0),colorff5b00;< span=""></o),close,open,4,0),colorff5b00;<>
STICKLINE((C<o),close,open,3.4,0),colorff6c00;< span=""></o),close,open,3.4,0),colorff6c00;<>
STICKLINE((C<o),close,open,2.8,0),colorff7b00;< span=""></o),close,open,2.8,0),colorff7b00;<>
STICKLINE((C<o),close,open,2.2,0),colorff9c00;< span=""></o),close,open,2.2,0),colorff9c00;<>
STICKLINE((C<o),close,open,1.6,0),colorffbe00;< span=""></o),close,open,1.6,0),colorffbe00;<>
STICKLINE((C<o),close,open,1,0),colorffcc00;< span=""></o),close,open,1,0),colorffcc00;<>
STICKLINE((C<o),close,open,0.3,0),colorffff00;< span=""></o),close,open,0.3,0),colorffff00;<>
STICKLINE((C>O),CLOSE,OPEN,4,0),COLOR070084;
STICKLINE((C>O),CLOSE,OPEN,3.4,0),COLOR0000A3;
STICKLINE((C>O),CLOSE,OPEN,2.8,0),COLOR0000B7;
STICKLINE((C>O),CLOSE,OPEN,2.2,0),COLOR0000CD;
STICKLINE((C>O),CLOSE,OPEN,1.6,0),COLOR0000E9;
STICKLINE((C>O),CLOSE,OPEN,1,0),COLOR0754E9;
STICKLINE((C>O),CLOSE,OPEN,0.5,0),COLOR076EF3;
STICKLINE((C>O),CLOSE,OPEN,0.2,0),COLOR077BF3;
FZ2A:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));
FZ3A:=((REF(FZ2A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ4A:=((REF(FZ3A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ5A:=((REF(FZ4A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ6A:=((REF(FZ5A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ7A:=((REF(FZ6A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ8A:=((REF(FZ7A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ9A:=((REF(FZ8A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZAA:=((REF(FZ9A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZBA:=((REF(FZAA,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZCA:=((REF(FZBA,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZDA:=((REF(FZCA,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZEAA:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));
FZFA:=((REF(FZEAA,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ10A:=((REF(FZFA,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ11A:=((REF(FZ10A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ12A:=((REF(FZ11A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ13A:=((REF(FZ12A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ14A:=((REF(FZ13A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ15A:=((REF(FZ14A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ16A:=((REF(FZ15A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ17A:=((REF(FZ16A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ18A:=((REF(FZ17A,1) AND (CLOSE <= and="" close="">= REF(CLOSE,2)));
FZ19A:=((REF(FZ18A,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
FZ1A:=(REF((((((((((((FZEAA OR FZFA) OR FZ10A) OR FZ11A) OR FZ12A) OR
FZ13A) OR FZ14A) OR FZ15A) OR FZ16A) OR FZ17A) OR FZ18A) OR FZ19A),1) AND FZ2A);
STICKLINE(FZ1A,O,O+(C-O)/3,4,0),COLOR1029FF;
STICKLINE(FZ1A,O,O+(C-O)/3,3.4,0),COLOR1040FF;
STICKLINE(FZ1A,O,O+(C-O)/3,2.8,0),COLOR1083FF;
STICKLINE(FZ1A,O,O+(C-O)/3,2.2,0),COLOR10ABFF;
STICKLINE(FZ1A,O,O+(C-O)/3,1.6,0),COLOR10D0FF;
STICKLINE(FZ1A,O,O+(C-O)/3,1,0),COLOR10FFFF;
STICKLINE(FZ1A,O,O+(C-O)/3,0.3,0),COLOR00FFFF;
AA:=(REF((((((((((((FZ2A OR FZ3A) OR FZ4A) OR FZ5A) OR FZ6A) OR FZ7A) OR
FZ8A) OR FZ9A)OR FZAA) OR FZBA) OR FZCA) OR FZDA),1) AND FZEAA);
STICKLINE(AA,O,O+(C-O)/3,4.3,0),COLOR009900;
STICKLINE(AA,O,O+(C-O)/3,3.2,0),COLOR00AA00;
STICKLINE(AA,O,O+(C-O)/3,2.4,0),COLOR00BB00;
STICKLINE(AA,O,O+(C-O)/3,1.7,0),COLOR00CC00;
STICKLINE(AA,O,O+(C-O)/3,1.1,0),COLOR00DD00;
STICKLINE(AA,O,O+(C-O)/3,0.5,0),COLOR00EE00;
STICKLINE(AA,O,O+(C-O)/3,0.2,0),COLOR00FF00;
DRAWTEXT_FIX(C>O,0.01,0.9,0,'www.xuexi199.com'),COLORRED;
A13:=EMA(CLOSE,55);
A14:=MA(CLOSE,75);
A15:=EMA(A14,3);
A16:=EMA(A15,3);
A17:=(HIGH + LOW) / 5;
A18:=(MA(A17,4)) - (MA(A17,34));
A19:=CROSS(A18,0);
A20:=CROSS(0,A18);
A21:=BARSLAST(A19);
A22:=BARSLAST(A20);
A23:=REF(A19,1);
A24:=REF(A20,1);
A25:=BARSLAST(A23);
A26:=BARSLAST(A24);
A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));
A28:=(((REF(CLOSE,1)) <= and="" close=""> A27)) AND (A21 < A22);
A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21);
A30:=A28 AND ((COUNT(A28,A21)) = 1);
A31:=A29 AND ((COUNT(A29,A22)) = 1);
A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));
A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));
DRAWTEXT(A32,SMA2*0.99,'←STOP'),COLORYELLOW;
AC:=AMOUNT/(VOL);
YY:=MA(AC,13);
LLL:=(C-YY)/YY*100;
MIDC := MA(CLOSE,22);
UPPERC:= MIDC + 2*STD(C,22);
LOWERC:= MIDC - 2*STD(C,22);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 and="" lll="">REF(LLL,1));
STICKLINE(LIFENGCYC,LOW*0.93,LOW*0.95,6,0)COLORRED;
STICKLINE(LIFENGCYC>0,C,O,4,0),COLORRED;
STICKLINE(LIFENGCYC>0,C,O,3.4,0),COLOR1029FF;
STICKLINE(LIFENGCYC>0,C,O,2.8,0),COLOR1040FF;
STICKLINE(LIFENGCYC>0,C,O,2.2,0),COLOR1083FF;
STICKLINE(LIFENGCYC>0,C,O,1.6,0),COLOR10ABFF;
STICKLINE(LIFENGCYC>0,C,O,1,0),COLOR10D0FF;
STICKLINE(LIFENGCYC>0,C,O,0.3,0),COLOR10FFFF;
DRAWTEXT(LIFENGCYC>0,LOW*0.92,'↑'),COLORFF00FF;
有几个信号,做个“底部'↑”的选股公式吧
选股公式如下:
AC:=AMOUNT/(VOL);
YY:=MA(AC,13);
LLL:=(C-YY)/YY*100;
MIDC := MA(CLOSE,22);
UPPERC:= MIDC + 2*STD(C,22);
LOWERC:= MIDC - 2*STD(C,22);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));
LIFENGCYC>0;
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件
胜率57.48%
不错不错,楼主您辛苦了。。。 多谢分享! 群众力量就是大,分享万岁! 点赞楼主! 相当不错,感谢无私分享精神! 不错的内容! 有道理。。。 找了很久的东西! 已收藏,以后会常来!
页:
[1]
2