哈喽,朋友们大家好,这里是领益财经,欢迎大家一起来学习金融知识,以谋略作帆,游股市无涯之海。之前做过一个小视频给大家分享过一对可用于监测主力动向的黄金搭档指标,一些朋友也私信联系说需要指标源码,然后也给大家分享过,但是有一些朋友反应说没收到,我也很纳闷。今天呢我就把它整理以后,以文章的形式作为周末福利分享给大家。
先看一下这套指标的效果图:
主图,通过主图我们可以看到,有黄色和绿色两种类似与串珠的线,其中黄色线表示,近期股价变动的压力位:绿色串珠线则表示支撑位。除此之外还可以看到,它距离上次涨停的天数。
以下是主图的指标公式:
主图指标源码:
XA_1:=CLOSE;
XA_2:=REF(XA_1,10)=HHV(XA_1,2*10 1);
XA_3:=FILTER(XA_2,10);
XA_4:=BACKSET(XA_3,10 1);
XA_5:=FILTER(XA_4,10);
XA_6:=REF(XA_1,10)=LLV(XA_1,2*10 1);
XA_7:=FILTER(XA_6,10);
XA_8:=BACKSET(XA_7,10 1);
XA_9:=FILTER(XA_8,10);
XA_10:=REF(CLOSE,BARSLAST(XA_5));
XA_11:=REF(LOW,BARSLAST(XA_9));
XA_12:=BARSLAST(XA_5)<BARSLAST(XA_9) AND NOT(XA_5);
XA_13:=BARSLAST(XA_5)>BARSLAST(XA_9) AND NOT(XA_9);
压力:IF(XA_12,XA_10,XA_10),POINTDOT,COLORYELLOW,LINETHICK6;
STICKLINE(CLOSE,压力,压力,8,0),COLORRED;
支撑:IF(XA_13,XA_11,XA_11),POINTDOT,COLORGREEN,LINETHICK4;
STICKLINE(CLOSE,支撑,支撑,8,0),COLORGREEN;
XA_14:=BARSLAST(YEAR!=REF(YEAR,1));
XA_15:=BARSLAST(HHV(VOL,XA_14 1)=VOL);
XA_16:=BARSLAST(LLV(VOL,XA_14 1)=VOL);
STICKLINE(FILTERX(XA_15=0,XA_14 1),OPEN,CLOSE,1,0),COLOR009900;
STICKLINE(FILTERX(XA_16=0,XA_14 1),OPEN,CLOSE,1,0),COLORGREEN;
XA_17:=CONST(XA_15);
天量:IF(CURRBARSCOUNT<=XA_17 3,CONST(IF(XA_17=0,OPEN,REF(OPEN,XA_17))),DRAWNULL),DOTLINE,COLORGREEN,LINETHICK2;
IF(CURRBARSCOUNT=XA_17 1,天量,DRAWNULL),CIRCLEDOT,COLORYELLOW;
明涨停价:CLOSE*1.1,NODRAW;
上次涨停天数:BARSLAST(CLOSE/REF(CLOSE,1)>=1.098),NODRAW;
XA_18:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);
XA_19:=IF((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);
STICKLINE(XA_18,OPEN,CLOSE,3,0),COLORAA00AA;
STICKLINE(XA_18,OPEN,CLOSE,1,0),COLORBLACK;
STICKLINE(XA_18,HIGH,LOW,0,1),COLORCC00CC;
STICKLINE(XA_18,OPEN,CLOSE,3,1),COLORCC00CC;
跌停板:STICKLINE(XA_19,OPEN,CLOSE,3,0),COLORFF1100;
STICKLINE(XA_19,OPEN,CLOSE,2.5,0),COLORFF3300;
STICKLINE(XA_19,OPEN,CLOSE,2,0),COLORFF4400;
STICKLINE(XA_19,OPEN,CLOSE,1.5,0),COLORFF5500;
STICKLINE(XA_19,OPEN,CLOSE,1,0),COLORFF6600;
STICKLINE(XA_19,OPEN,CLOSE,0.5,0),COLORFF7700;
STICKLINE(XA_19,LOW,HIGH,0,0),COLORFF7700;
XA_20:=REF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<=(-0.03),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.03;
STICKLINE(XA_20,OPEN,CLOSE,2.5,0),COLOR0000A5;
STICKLINE(XA_20,OPEN,CLOSE,2,0),COLOR0000C5;
STICKLINE(XA_20,OPEN,CLOSE,1.5,0),COLOR0000D5;
STICKLINE(XA_20,OPEN,CLOSE,1,0),COLOR0000E5;
STICKLINE(XA_20,LOW,HIGH,0,0),COLOR0000F5;
STICKLINE(XA_20,CLOSE,(OPEN CLOSE)/2,2.5,0),COLOR008CFD;
XA_21:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;
XA_22:=(MAX(CLOSE,OPEN)-REF(CLOSE,1))/REF(CLOSE,1)*100;
STICKLINE(XA_21-XA_22>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),MAX(CLOSE,OPEN),HIGH,0,0),COLORGREEN;
STICKLINE(XA_21-XA_22>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),CLOSE,OPEN,3.1,0),COLORRED;
XA_23:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
STICKLINE(XA_23,OPEN,CLOSE,2.8,1),COLOR0000CC;
XA_24:=OPEN>CLOSE AND OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);
假阴线:STICKLINE(XA_24,OPEN,CLOSE,2,0),COLORLIRED;
第一个副图: