通达信突出重围主图/飞天拉升选股 源码 附图
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'8',0);
ND1970:=(YEAR-1970)*365+INTPART((YEAR-1972)/4)-IF(INTPART(YEAR/4)=YEAR/4,1,0)+DAY+(MONTH-1)*30+IF(MONTH<=8,INTPART(MONTH/2),INTPART((MONTH-7)/2)+4)-IF(MONTH>2 AND INTPART(YEAR/4)=YEAR/4,1,IF(MONTH>2 AND NOT(INTPART(YEAR/4)=YEAR/4),2,0));
C1:=C;{zbgs3.com}
O1:=REF(O,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1)));
H1:=HHV(H,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1))+1);
L1:=LLV(L,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1))+1);
DRAWBAND(H1,RGB(220,220,220),L1,RGB(0,25,0));
DRAWBAND(C1,RGB(220,20,20),O1,RGB(0,25,0));
跟A7:=C-REF(C,1);
跟A8:=100*EMA(EMA(跟A7,5),5)/EMA(EMA(ABS(跟A7),5),5);
买:=LLV(跟A8,2)=LLV(跟A8,7) AND COUNT(跟A8<0,2) AND CROSS(跟A8,MA(跟A8,2));
跟庄买进:DRAWTEXT(FILTER(买=1,5),L*0.9999,'@买')COLORMAGENTA;
TA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=EMA(TA,13);
VAR8A:=REF(CLOSE,1)-REF(ATR,1);
起飞:HHV(VAR8A,13), COLORYELLOW,LINETHICK2;
DRAWTEXT(ISLASTBAR,起飞,' 起飞'), COLORWHITE;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0;
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);{zbgs3.com}
DRAWTEXT (BU,LOW*0.989,'飞天'),COLORRED,LINETHICK3;
STICKLINE(买线>=卖线,LOW,HIGH,0,0),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000AA;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORAAAA00;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORBBBB00;
STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORFFFF00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLORFF00FF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),COLORBLUE;zbgs3:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
填充背景(C>0, RGB(180,170,170),RGB(183,164,165),0,'8',0)
ND1970赋值:(YEAR-1970)*365+INTPART((YEAR-1972)/4)-IF(INTPART(YEAR/4)=YEAR/4,1,0)+DAY+(MONTH-1)*30+IF(MONTH<=8,INTPART(MONTH/2),INTPART((MONTH-7)/2)+4)-IF(MONTH>2 AND INTPART(YEAR/4)=YEAR/4,1,IF(MONTH>2 AND NOT(INTPART(YEAR/4)=YEAR/4),2,0))
C1赋值:C
{ZBGS3.COM}
O1赋值:REF(O,上次ND1970-REF(ND1970,1距今天数>WEEKDAY-REF(WEEKDAY,1)))
H1赋值:HHV(H,上次ND1970-1日前的ND1970>WEEKDAY-1日前的WEEKDAY距今天数+1)
L1赋值:LLV(L,上次ND1970-1日前的ND1970>WEEKDAY-1日前的WEEKDAY距今天数+1)
DRAWBAND(H1,RGB(220,220,220),L1,RGB(0,25,0))
DRAWBAND(C1,RGB(220,20,20),O1,RGB(0,25,0))
跟A7赋值:C-1日前的C
跟A8赋值:100*跟A7的5日指数移动平均,5)/EMA(EMA(跟A7的绝对值,5),5)
买赋值:2日内跟A8最低值=7日内跟A8最低值 AND 统计2日满足跟A8<0的天数 AND CROSS(跟A8,跟A8的2日简单移动平均)
跟庄买进:DRAWTEXT(买=1的5过滤,L*0.9999,'@买')COLORMAGENTA
TA赋值:MAX(MAX((最高价-最低价),1日前的收盘价-最高价的绝对值),ABS(1日前的收盘价-最低价))
ATR赋值:TA的13日指数移动平均
VAR8A赋值:1日前的收盘价-1日前的ATR
输出起飞:13日内VAR8A最高值, 画黄色, 线宽为2
当满足条件ISLASTBAR时,在起飞和' 起飞'位置书写文字
买线:=收盘价的2日指数移动平均
卖线赋值:EMA(SLOPE(收盘价,32)*20+收盘价,56),LINETHICK0
BU赋值:买线上穿卖线
SEL赋值:卖线上穿买线
{ZBGS3.COM}
DRAWTEXT (BU,最低价*0.989,'飞天'),画红色, 线宽为3
当满足条件买线>=卖线时,在最低价和最高价之间画柱状线
当满足条件买线>=卖线时,在收盘价和开盘价之间画柱状线
当满足条件买线>=卖线时,在收盘价和开盘价之间画柱状线
当满足条件买线<卖线时,在收盘价和开盘价之间画柱状线
当满足条件买线<卖线时,在收盘价和开盘价之间画柱状线
当满足条件买线<卖线时,在最低价和最高价之间画柱状线
STICKLINE(买线上穿卖线,开盘价,收盘价,3,0),COLORFF00FF
STICKLINE(卖线上穿买线,开盘价,收盘价,3,0), 画蓝色
输出ZBGS3:SMA(收盘价-C和0较大值,7,1)/SMA(收盘价-C的绝对值,7,1)*100,NODRAW