专栏名称: 指标汇集
无私分享一些好用的技术指标和选股公式,总有一款是你喜欢的!!
目录
相关文章推荐
51好读  ›  专栏  ›  指标汇集

金银山谷底部形态指标公式

指标汇集  · 公众号  ·  · 2025-03-23 08:00

正文

请到「今天看啥」查看全文


风险提示:本指标公式仅作为知识分享,模拟测试不构成任何投资建议,不作投资依据。

点击上方 【指标汇集】 关注 置顶 + 星标 每天订阅, 学习更多指标内容

一:金银山谷主图指标源码如下:

ZK1:(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1+EMA(EMA(H,25),25),DOTLINE,COLORBLUE;

ZD1:EMA(EMA(L,25),25)-(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1,LINETHICK2,COLORRED;

ZD2:EMA(ZD1,25),LINETHICK2;

DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));

DRAWKLINE(H,O,L,C);STICKLINE(ZD1>LOW AND ZD1< HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORYELLOW;

STICKLINE(ZD1>MIN(C,O) AND ZD1< MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;

STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;

STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;

CTA23:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(ABS((C-REF(C,1))),6),6);

银山谷:=LLV(CTA23,2)=LLV(CTA23,7) AND COUNT(CTA23< 0,2) AND CROSS(CTA23,MA(CTA23,2));

XG:=ZD1>HIGH AND 银山谷 AND L<=ZD1;

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

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

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

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

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

CTB4:=IF(CAPITAL=0,CTB0*(MAX(CLOSE,OPEN)-JJ),CTB0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));DDX:=((CTB1+CTB2)-(CTB3+CTB4))/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< REF(C,1);

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< ZK1;

DRAWTEXT(XG2 AND L< ZD1,L,'←龙头异动'),COLORRED;

SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);

SR2:=FILTER(SR1,10);

SR3:=BACKSET(SR2,10+1);

HD:=FILTER(SR3,10);

前高:=REF(H,BARSLAST(HD));

倍量:=VOL/REF(VOL,1)>=1.9;

金山谷:=CROSS(C,前高);

DRAWTEXT(倍量 AND 金山谷,(H* 0.97),'←-----金山谷启动'),COLORYELLOW;

白色:=SMA(HIGH,21,2)*1.05,;

黄色:=SMA(LOW,21,2)*0.95;

粉色:=SMA(LOW,5,1);

绿色:=SMA(CLOSE,2,1),;

波段买入:=IF(CROSS(绿色,粉色),白色*1.05,粉色);

领头羊:=IF(CROSS(绿色,白色),白色*1.10,黄色);

信号:=领头羊>黄色;

STICKLINE(信号,O,C,3,0),COLOR0000FF;

涨停价:=ZTPRICE(REF(C,1),0.1);

涨停:=C>=涨停价-0.01 AND C=H;

STICKLINE(涨停,O,C,3,0),COLOR00FFFF;

STICKLINE(信号 AND 涨停,O,(O+C)/2,3,0),COLOR0000FF;

A0:=((L + H) + (C * 2)) / 4;

AAA1:=EMA(A0,14);

A1X:=(AAA1-REF(AAA1,1)) / REF(AAA1,1) * 100;

G1:=BARSLAST(CROSS(A1X,0));

加仓:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORYELLOW,LINETHICK2;

DRAWTEXT(ISLASTBAR,加仓,' 加仓'),COLORYELLOW;

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

DF:=FD< -5;

情绪线:DRAWLINE(DF,H,REF(DF,1),REF(H,1),1),COLORWHITE,DOTLINE;

龙空龙:(EMA(CLOSE,10)*7+EMA(CLOSE,20)*3)/10;

龙头战法:DMA(EMA(CLOSE,20),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL)))),COLORWHITE ,DOTLINE;操盘线:IF(龙空龙>龙头战法,龙空龙,DRAWNULL),COLORRED,LINETHICK2;

生命线:IF(龙空龙< 龙头战法,龙空龙,DRAWNULL),COLORGREEN,LINETHICK2;

MA10:=MA(CLOSE,5);

MA54:=MA(CLOSE,60);

CTA8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;

CTA9:=FILTER(CTA8,10);

CTA10:=BARSLAST(CTA9);

CTA11:=REF(HIGH,CTA10+2);

CTA12:=REF(HIGH,CTA10+1);

CTA13:=REF(HIGH,CTA10);

CTA14:=MAX(CTA11,CTA12);

CTA15:=MAX(CTA14,CTA13);

CTA16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;

CTA17:=CTA10< 150;

CTA18:=(OPEN-CTA15)/CTA15*100< 30;

CTA19:=(CLOSE-LLV(LOW,CTA10))/LLV(LOW,CTA10)*100< 50;CTA20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;

CTA21:=VOL/MA(VOL,5)< 3.5;

CTA22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;

CTA25:=CTA16 AND CTA17 AND CTA18 AND CTA19 AND CTA20 AND CTA21 AND CTA22;

暴利:=FILTER(CTA25,15);ACB1:=(((CLOSE-MA54)/MA54)< 0.1);

ACB2:=(((CLOSE-MA10)/MA10)< 0.3);

偏离率:=(((ACB1=1) AND (ACB2=1))*0.2);

平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);

妖股突破:=平台突破=-0.1;

XDF:=(暴利 OR 妖股突破);

AAC:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);

AACA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);

AACB:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);

龙头模式:=XDF AND C/REF(C,1)>1.095 AND AACB AND AACA,COLORRED;DRAWICON(龙头模式,L,9);

DRAWTEXT(龙头模式,L*0.99,'---主升启动'),COLORYELLOW;

STICKLINE(龙头模式,O,C,1,0),COLORMAGENTA;

二:金银山谷副图指标源码如下:

M200:=185;

M150:=175;

CCI周:"CCI.CCI#WEEK",COLORYELLOW,LINETHICK3;

CCI月:"CCI.CCI#MONTH",COLORRED,LINETHICK3;

WR周:"WR.WR1#WEEK",COLORGREEN,LINETHICK3;

WR月:"WR.WR1#MONTH",COLORBLUE,LINETHICK3;

DRAWBAND(CCI周,RGB(100,10,0),200,RGB(0,10,100));

DRAWBAND(CCI周,RGB(255,0,0),200,RGB(0,0,255));

DRAWBAND(CCI周,RGB(255,55,0),CCI月,RGB(0,55,255));

DRAWBAND(WR周,RGB(0,0,100),25,RGB(100,0,0));

DRAWBAND(WR月,RGB(0,55,155),WR周,RGB(250,0,0));

DRAWBAND(WR周,RGB(0,55,155),WR月,RGB(250,0,0));

DRAWBAND(WR月,RGB(0,200,200),25,RGB(250,0,0));

DRAWBAND(CCI月,RGB(155,0,0),200,RGB(0,0,155));

CCI周,COLORYELLOW,LINETHICK3;

CCI月,COLORRED,LINETHICK3;

WR周,COLORGREEN,LINETHICK3;

WR月,COLORBLUE,LINETHICK3;

DRAWTEXT(CROSS(CCI周,200),80,'★'),COLORRED;

DRAWTEXT(CROSS(CCI月,200),86,'★'),COLORYELLOW;

DRAWTEXT(CROSS(25,WR周),92,'★'),COLORMAGENTA;

DRAWTEXT(CROSS(25,WR月),98,'★'),COLORGREEN;

MA5:=MA(C,5);

MA20:=MA(C,20);

A51:=REF(MA5,1)*0.98;

A52:=REF(MA5,2)*0.98;

B52:=BARSLAST(REF(C,2)>=REF(MA5,2)&&REF(C,1)

B51:=BARSLAST(REF(C,2)>=REF(MA5,2)&&REF(C,1)

DZ:=IF((REF(C,2)>=REF(MA5,2))&&(REF(C,1) =REF(MA5,2)&&REF(C,1) 0,IF(REF(MA5,B52)

ALIJIN1:=REF(MA20,1)*0.98;

ALIJIN2:=REF(MA20,2)*0.98;

BLIJIN2:=BARSLAST(REF(C,2)>=REF(MA20,2)&&REF(C,1)

BLIJIN1:=BARSLAST(REF(C,2)>=REF(MA20,2)&&REF(C,1)

ZZ:=IF((REF(C,2)>=REF(MA20,2))&&(REF(C,1) =REF(MA20,2)&&REF(C,1) 0,IF(REF(MA20,BLIJIN2)

短止:=DZ,COLORWHITE,LINETHICK2;

紫线:=ZZ,COLORMAGENTA;

绿线:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2,COLORGREEN;

黄线:=MA(CLOSE,25)+MA(CLOSE,25)*6/100,COLORYELLOW,LINETHICK2;

白轨:=MA(CLOSE,25)+MA(CLOSE,25)*20/100,COLORWHITE;

影子线:=MA(CLOSE,25)+MA(CLOSE,25)*13/100,COLORGRAY;

AXX:=((((MA(C,10)>MA(C,25))&&CROSS(C,MA(C,5)))&&(V>MA(V,10)))&&(MA(C,10)>REF(MA(C,10),1)));

ASS:=C>=黄线&&AXX;

角度黄线:=ATAN((黄线/REF(黄线,1)-1)*100)*180/3.1416,NODRAW;

涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);

N:=12;DG:=1.2;

YLX:=0;ZCX:=0;

A1:=REF(C,N)=HHV(C,2*N+1);

B1:=FILTER(A1,N);

A2:=REF(C,N)=LLV(C,2*N+1);

B2:=FILTER(A2,N);

板块排序:=HORCALC('板块指数',105,1,0),NODRAW,COLORRED;

BIAS:=(O-黄线)/黄线*100,NODRAW,COLORRED;

倍量:=(V/REF(V,1)>=1.90&&COUNT(C>O,1))||(L>REF(H,1)&&COUNT(O>C,1)&&V/REF(V,1)>=1.90);

TAX:=HORCALC(HYBLOCK,105,1,DRAWNULL);

TAA:=STRCAT(HYBLOCK,'排名:');DRAWTEXT_FIX(ISLASTBAR,0.26,0.008,0,STRCAT(TAA,CON2STR(TAX,0)));

TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));

MLIJIN:=MOD(FROMOPEN,TOTAL);

CLIJIN:=IF(MLIJIN<0.5,TOTAL,MLIJIN);

初起:=CROSS(CCI周,WR月);

STICKLINE(初起,58,15,0.00001,0),COLORBROWN;

DRAWTEXT(初起,55,'-初起'),COLORWHITE;

准备起爆2:=CROSS(CCI月,M150);

STICKLINE(准备起爆2,148,35,0.00001,0),COLORBROWN;

DRAWTEXT(准备起爆2,148,'-拐点'),COLORCYAN;

准备起爆3:=CROSS(CCI周,M150);

STICKLINE(准备起爆3,377,200,0.00001,0),COLORWHITE;

DRAWTEXT(准备起爆3,318,'-主升启动'),COLORWHITE;

准备起爆4:=CROSS(CCI周,WR周);

STICKLINE(准备起爆4,134,0,0.00001,0),COLORMAGENTA;

DRAWTEXT(准备起爆4,148,'-银山谷潜伏'),COLORYELLOW;

金山谷交易:=CROSS(CCI周,M200);

STICKLINE(金山谷交易,200,280,0.001,0),COLORMAGENTA;

DRAWTEXT(金山谷交易,240,'-金山谷交易'),COLORYELLOW;

右拐点:=CROSS(CCI月,CCI周);

STICKLINE(右拐点,200,280,0.00001,0),COLORCYAN;

DRAWTEXT(右拐点,278,'-金山谷买卖'),COLORCYAN;

三:金银山谷选股指标源码如下:

MA10:=MA(CLOSE,5);

MA54:=MA(CLOSE,60);

CTA8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;

CTA9:=FILTER(CTA8,10);

CTA10:=BARSLAST(CTA9);

CTA11:=REF(HIGH,CTA10+2);

CTA12:=REF(HIGH,CTA10+1);

CTA13:=REF(HIGH,CTA10);

CTA14:=MAX(CTA11,CTA12);

CTA15:=MAX(CTA14,CTA13);

CTA16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;

CTA17:=CTA10< 150;

CTA18:=(OPEN-CTA15)/CTA15*100< 30;

CTA19:=(CLOSE-LLV(LOW,CTA10))/LLV(LOW,CTA10)*100< 50;

CTA20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;

CTA21:=VOL/MA(VOL,5)< 3.5;

CTA22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;

CTA25:=CTA16 AND CTA17 AND CTA18 AND CTA19 AND CTA20 AND CTA21 AND CTA22;

金银山谷:=FILTER(CTA25,15);

暴利:=FILTER(CTA25,15);

XDF:=(暴利 AND 金银山谷);

AAC:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);

AACA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);

AACB:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);

XG:XDF AND C/REF(C,1)>1.095 AND AACB AND AACA;

四:金银山谷指标使用说明如下:
1.本指标用于通达信
2.银山谷信号是左侧潜伏买点。
3.副图金山谷交易信号加上主升启动,主图主升启动信号共振是右侧主升浪情买点。

注意事项:

  1. 复制安装的时候主图,副图和选股分开复制,分开安装。

  2. 复制安装的时候出现错误提示,首先找到错误提示的代码,然后把代码里面出现的“问号”删除。

  3. 复制安装的时候出现错误提示,首先找到错误提示的代码,重点看一下代码“AND”和“OR”是不是缺少空格的情况。


指标都是无私分享的,大家多“ 点赞 ”和“ 再看 ”支持,你的支持是我长久无私分享的动力。








请到「今天看啥」查看全文