我爱原原 / 股票公式 / 金牛判势——一位读者的指标公式改成条件...

0 0

   

金牛判势——一位读者的指标公式改成条件选股

2016-11-22  我爱原原

老师好,我提供金牛判势的主图,是想老师帮我根据里面图的买入和金钻点时分别设计组成的条件选股


很感激这位读者的无私奉献,为我们股友提供了一个很好的指标公式,现在先看公式。(公式一




公式很长,建议股友们使用“微信网页版”,这样就能很方便的复制粘贴。


公式一:

DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);

Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK); 

Z3:=STRCAT(Z2,' ');

DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED; 

金牛:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORYELLOW; 

金钻趋势:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED; 

金牛2:EMA(金钻趋势,25)COLORCYAN,LINETHICK2; 

DRAWBAND(金钻趋势,RGB(55,0,0),金牛2,RGB(0,91,0));

DRAWKLINE(H,O,L,C); 

STICKLINE(金钻趋势>LOW AND 金钻趋势<>< p=''><>

STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<>< p=''><>

STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW;

VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6); 

回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) and="">

XG:=金钻趋势>HIGH AND 回调买 AND L<>

DRAWTEXT(XG,L,'买入'),COLORRED; 


JJ:=(HIGH+LOW+CLOSE)/3;

QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); 

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK; 

V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);

V5:=SMA(V2*120/FROMOPEN*5,2,1);

V10:=SMA(V5,5,1); 

V20:=SMA(V10,5,1);

DY:=CURRBARSCOUNT=1 AND C<>< p=''><>

DY2:=REF(V2,1)-DY; 

XG2:=C>O AND DY2<0.02 and="" ma(c,5)="">MA(C,60) AND C/REF(C,1)>=1.02 AND H<>

{DRAWTEXT(XG2,L,'抓牛'),COLORYELLOW;} 

DRAWTEXT(XG2 AND L<>


显示出的股票如下:


这里有“买入”和“金钻起涨”两个提示信号,我就分别做出这两个选股公式。


买入:(公式二)

Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK); 

Z3:=STRCAT(Z2,' ');

金牛:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25); 

金钻趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1; 

金牛2:=EMA(金钻趋势,25); 

VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6); 

回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) and="">

XG:=金钻趋势>HIGH AND 回调买 AND L<>

XG;


金钻起涨:(公式三)

Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK); 

Z3:=STRCAT(Z2,' ');

金牛:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25); 

金钻趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1; 

JJ:=(HIGH+LOW+CLOSE)/3;

QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); 

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK; 

V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);

V5:=SMA(V2*120/FROMOPEN*5,2,1);

V10:=SMA(V5,5,1); 

V20:=SMA(V10,5,1);

DY:=CURRBARSCOUNT=1 AND C<>< p=''><>

DY2:=REF(V2,1)-DY; 

XG2:=C>O AND DY2<0.02 and="" ma(c,5)="">MA(C,60) AND C/REF(C,1)>=1.02 AND H<>

XG2 AND L<>


最后,很感激这位股友的无私。



    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。如发现有害或侵权内容,请点击这里 或 拨打24小时举报电话:4000070609 与我们联系。

    猜你喜欢

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多
    喜欢该文的人也喜欢 更多