富贵荣华做趋势 横盘突破建仓买【指标公式】(含选股)

原创 股旁网 股旁网 1周前

未来函数检测结果: 恭喜!没有检测到未来函数请放心!)

DIFF := EMA(EMA(CLOSE,12) - EMA(CLOSE,26),5);

DEA := EMA(DIFF,9);

富:DIFF;

贵:DEA;

MACDOK:=CROSS(DIFF,DEA) ;

MACD卖点:=CROSS(DEA,DIFF) ;

中间值:=(HHV(H,60)+LLV(L,60) )/2;

ZHANGFU:=(H-REF(C,1))/REF(C,1)*100;

MA3:=MA(C,3);

MA5:=MA(C,5);

MGA10:=MA(C,10);

MGA20:=MA(C,20);

MGA25:=MA(C,25);

MA60:=MA(C,60);

MA90:=MA(C,90);

MGA120:=MA(C,120);

GA3:= (MGA25-MA60)/MA60*100;

GA4:= (MGA25-MA90)/MA90*100;

GA5:= (MGA25-MGA120)/MGA120*100;

GA6:=IF(C>=O,C,O);

GA7:=(H-GA6)/GA6*100;

GA8:=(H-REF(C,10))/REF(C,10)*100;

GA9:=(H-REF(C,11))/REF(C,11)*100;

GA10:=(H-REF(C,12))/REF(C,12)*100;

GA11:=(H-REF(C,13))/REF(C,13)*100;

GA12:=(H-REF(C,14))/REF(C,14)*100;

GA13:=(H-REF(C,15))/REF(C,15)*100;

GA14:=(H-REF(C,16))/REF(C,16)*100;

GA15:=(H-REF(C,17))/REF(C,17)*100;

GA16:=(H-REF(C,18))/REF(C,18)*100;

GA17:=(H-REF(C,19))/REF(C,19)*100;

GA18:=(H-REF(C,20))/REF(C,20)*100;

GA19:=(H-REF(C,21))/REF(C,21)*100;

GA20:=100;

GA21:=GA8<GA20 AND

GA9<GA20 AND

GA10<GA20 AND

GA11<GA20 AND

GA12<GA20 AND

GA13<GA20 AND

GA14<GA20 AND

GA15<GA20 AND

GA16<GA20 AND

GA17<GA20 AND

GA18<GA20 AND

GA19<GA20;

GB1:=30;

GB2:=(L-REF(H,6))/REF(H,6)*100;

GB3:=(L-REF(H,7))/REF(H,7)*100;

GB4:=(L-REF(H,8))/REF(H,8)*100;

GB5:=(L-REF(H,9))/REF(H,9)*100;

GB6:=(L-REF(H,10))/REF(H,10)*100;

GB7:=(L-REF(H,11))/REF(H,11)*100;

GB8:=(L-REF(H,12))/REF(H,12)*100;

GB9:=(L-REF(H,13))/REF(H,13)*100;

GB10:=(L-REF(H,14))/REF(H,14)*100;

GB11:=(L-REF(H,15))/REF(H,15)*100;

GB12:=(L-REF(H,16))/REF(H,16)*100;

GB13:=(L-REF(H,17))/REF(H,17)*100;

GB14:=(L-REF(H,18))/REF(H,18)*100;

GB15:=(L-REF(H,19))/REF(H,19)*100;

GB16:=(L-REF(H,20))/REF(H,20)*100;

GB17:=(L-REF(H,21))/REF(H,21)*100;

GB18:=

GB2<GB1 AND

GB3<GB1 AND

GB4<GB1 AND

GB5<GB1 AND

GB6<GB1 AND

GB7<GB1 AND

GB8<GB1 AND

GB9<GB1 AND

GB10<GB1 AND

GB11<GB1 AND

GB12<GB1 AND

GB13<GB1 AND

GB14<GB1 AND

GB15<GB1 AND

GB16<GB1 AND

GB17<GB1;

MID5 := MA(CLOSE,5);

UB5:=MID5+2*STD(CLOSE,5),colorred;

MID10 := MA(CLOSE,10);

UGB10:=MID10+2*STD(CLOSE,10),colorred;

C1:=(H-REF(C,1))/REF(C,1)*100;

C4:=COUNT(C1>4.5,80 )>=5 AND COUNT(C1>3,60 )>=10;

D1:=MACDOK AND COUNT(MA60>REF(MA60,1),60)>=20 AND GA3<10 AND C4 AND COUNT(GA21,60)>=60 AND COUNT(GB18,20)>=20 AND ZHANGFU>3.5 AND L<MGA25 AND H >MGA25;

D2:= COUNT(MA90>REF(MA90,1),90)>=30 AND GA4<10 AND C4 AND COUNT(GA21,90)>=90 AND COUNT(GB18,20)>=20 AND ZHANGFU>3.5 AND L<MGA25 AND H >MGA25;

D3:= COUNT(MGA120>REF(MGA120,1),120)>=30 AND GA5<10 AND C4 AND COUNT(GA21,120)>=120 AND COUNT(GB18,20)>=20 AND ZHANGFU>3.5 AND L<MGA25 AND H >MGA25;

横盘突破 := D1 OR D2 OR D3 AND C>O;

买入:=横盘突破 ;

FF:= (H - REF(C,BARSLAST(买入)) ) / REF(C,BARSLAST(买入) ) *100;

E3:= FF >15 AND BARSLAST(买入)<30 AND CROSS(DEA,DIFF);

E2:= FF >15 AND BARSLAST(买入)<30 AND UB5 <REF(UB5,1) AND REF(UB5,1) >=REF(UB5,2) AND REF(UB5,2) >=REF(UB5,3) AND UGB10 >=REF(UGB10,1) AND REF(UGB10,1) >=REF(UGB10,2);

减仓:=E3 OR E2;

卖出:= FF<-20 AND BARSLAST(买入)<30 AND CROSS(DEA,DIFF);

止损:= FF<-10 AND BARSLAST(买入) <20 AND COUNT(买入,21)>=1;

离场:= FF>-10 AND FF <15 AND BARSLAST(买入)==20 AND COUNT(买入,20)==1;

DRAWTEXT(买入 AND COUNT(买入,30)==1,DIFF+0.3,'建仓'),colorred;

DRAWICON( 买入 AND COUNT(买入,30)==1 ,DIFF,1);

DRAWTEXT( 减仓 ,DIFF-0.3,'减仓'),colorgreen;

DRAWICON( 减仓 ,DIFF,2);

DRAWTEXT( 卖出 ,DIFF+0.3,'卖出'),colorgreen;

GG:=COUNT(买入,30)>0 AND CROSS(DEA,DIFF);

选股公式

{选股公式:建仓}

DIFF:=EMA(EMA(CLOSE,12) - EMA(CLOSE,26),5);

DEA:=EMA(DIFF,9);

富:=DIFF;

贵:=DEA;

MACDOK:=CROSS(DIFF,DEA) ;

MACD卖点:=CROSS(DEA,DIFF) ;

中间值:=(HHV(H,60)+LLV(L,60) )/2;

ZHANGFU:=(H-REF(C,1))/REF(C,1)*100;

MA3:=MA(C,3);

MA5:=MA(C,5);

MGA10:=MA(C,10);

MGA20:=MA(C,20);

MGA25:=MA(C,25);

MA60:=MA(C,60);

MA90:=MA(C,90);

MGA120:=MA(C,120);

GA3:= (MGA25-MA60)/MA60*100;

GA4:= (MGA25-MA90)/MA90*100;

GA5:= (MGA25-MGA120)/MGA120*100;

GA6:=IF(C>=O,C,O);

GA7:=(H-GA6)/GA6*100;

GA8:=(H-REF(C,10))/REF(C,10)*100;

GA9:=(H-REF(C,11))/REF(C,11)*100;

GA10:=(H-REF(C,12))/REF(C,12)*100;

GA11:=(H-REF(C,13))/REF(C,13)*100;

GA12:=(H-REF(C,14))/REF(C,14)*100;

GA13:=(H-REF(C,15))/REF(C,15)*100;

GA14:=(H-REF(C,16))/REF(C,16)*100;

GA15:=(H-REF(C,17))/REF(C,17)*100;

GA16:=(H-REF(C,18))/REF(C,18)*100;

GA17:=(H-REF(C,19))/REF(C,19)*100;

GA18:=(H-REF(C,20))/REF(C,20)*100;

GA19:=(H-REF(C,21))/REF(C,21)*100;

GA20:=100;

GA21:=GA8<GA20 AND

GA9<GA20 AND

GA10<GA20 AND

GA11<GA20 AND

GA12<GA20 AND

GA13<GA20 AND

GA14<GA20 AND

GA15<GA20 AND

GA16<GA20 AND

GA17<GA20 AND

GA18<GA20 AND

GA19<GA20;

GB1:=30;

GB2:=(L-REF(H,6))/REF(H,6)*100;

GB3:=(L-REF(H,7))/REF(H,7)*100;

GB4:=(L-REF(H,8))/REF(H,8)*100;

GB5:=(L-REF(H,9))/REF(H,9)*100;

GB6:=(L-REF(H,10))/REF(H,10)*100;

GB7:=(L-REF(H,11))/REF(H,11)*100;

GB8:=(L-REF(H,12))/REF(H,12)*100;

GB9:=(L-REF(H,13))/REF(H,13)*100;

GB10:=(L-REF(H,14))/REF(H,14)*100;

GB11:=(L-REF(H,15))/REF(H,15)*100;

GB12:=(L-REF(H,16))/REF(H,16)*100;

GB13:=(L-REF(H,17))/REF(H,17)*100;

GB14:=(L-REF(H,18))/REF(H,18)*100;

GB15:=(L-REF(H,19))/REF(H,19)*100;

GB16:=(L-REF(H,20))/REF(H,20)*100;

GB17:=(L-REF(H,21))/REF(H,21)*100;

GB18:=

GB2<GB1 AND

GB3<GB1 AND

GB4<GB1 AND

GB5<GB1 AND

GB6<GB1 AND

GB7<GB1 AND

GB8<GB1 AND

GB9<GB1 AND

GB10<GB1 AND

GB11<GB1 AND

GB12<GB1 AND

GB13<GB1 AND

GB14<GB1 AND

GB15<GB1 AND

GB16<GB1 AND

GB17<GB1;

MID5 := MA(CLOSE,5);

UB5:=MID5+2*STD(CLOSE,5),colorred;

MID10 := MA(CLOSE,10);

UGB10:=MID10+2*STD(CLOSE,10),colorred;

C1:=(H-REF(C,1))/REF(C,1)*100;

C4:=COUNT(C1>4.5,80 )>=5 AND COUNT(C1>3,60 )>=10;

D1:=MACDOK AND COUNT(MA60>REF(MA60,1),60)>=20 AND GA3<10 AND C4 AND COUNT(GA21,60)>=60 AND COUNT(GB18,20)>=20 AND ZHANGFU>3.5 AND L<MGA25 AND H >MGA25;

D2:= COUNT(MA90>REF(MA90,1),90)>=30 AND GA4<10 AND C4 AND COUNT(GA21,90)>=90 AND COUNT(GB18,20)>=20 AND ZHANGFU>3.5 AND L<MGA25 AND H >MGA25;

D3:= COUNT(MGA120>REF(MGA120,1),120)>=30 AND GA5<10 AND C4 AND COUNT(GA21,120)>=120 AND COUNT(GB18,20)>=20 AND ZHANGFU>3.5 AND L<MGA25 AND H >MGA25;

横盘突破 := D1 OR D2 OR D3 AND C>O;

买入:=横盘突破 ;

建仓:买入 AND COUNT(买入,30)==1;

图片示例
(0)

相关推荐