通达信高效精品波段主图
N:=3;
M:=30;
VAR0:=(3*CLOSE+LOW+OPEN+HIGH)/6;
攻击:=(20*VAR0+19*REF(VAR0,1)+18*REF(VAR0,2)+17*REF(VAR0,3)+16*REF(VAR0,4)+15*REF(VAR0,5)+14*REF(VAR0,6)+13*REF(VAR0,7)+12*REF(VAR0,8)+11*REF(VAR0,9)+10*REF(VAR0,10)+9*REF(VAR0,11)+8*REF(VAR0,12)+7*REF(VAR0,13)+6*REF(VAR0,14)+5*REF(VAR0,15)+4*REF(VAR0,16)+3*REF(VAR0,17)+2*REF(VAR0,18)+REF(VAR0,20))/210,COLORF00FF0;
生命:=MA(攻击,5),COLORGREEN;
DRAWBAND(攻击,RGB(155,50,50),生命,RGB(50,250,0));
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,3,0),COLORYELLOW;
短线1:攻击,COLORWHITE;
中线1:生命,COLORYELLOW;
{所属板块 所属地域 流通市值}
LTSZ:=C*CAPITAL/1000000;
LTSZ1:=CON2STR(LTSZ,0);
AAA1:=STRCAT('每股公积金= ',CON2STR(FINANCE(18),2));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.8,0,AAA1),COLORYELLOW;
AAA2:=STRCAT('每股未分配利润= ',CON2STR(FINANCE(32),2));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.86,0,AAA2),COLORRED;
AAA3:=STRCAT('每股收益(当期)= ',CON2STR(FINANCE(38),4));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.92,0,AAA3),COLORWHITE;
AAA6:=STRCAT(STRCAT('每股净收益率= ',CON2STR(100*((FINANCE(29)/FINANCE(7))/FINANCE(34)),2)),'%');
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.3,0.92,0,AAA6),COLORYELLOW;
DRAWTEXT_FIX(1,0.760,0.010,0,'涨幅: ');
DRAWTEXT_FIX(1,0.840,0.010,0,'量比: ');
DRAWTEXT_FIX(1,0.920,0.010,0,'换手: ');
DRAWTEXT_FIX(1,0.795,0.010,0,CON2STR(DYNAINFO(14)*100,2));
DRAWTEXT_FIX(1,0.875,0.010,0,CON2STR(DYNAINFO(17),2));
DRAWTEXT_FIX(1,0.955,0.010,0,CON2STR(DYNAINFO(37)*100,2));
{所属板块}
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
VAR1:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);
A1:=CLOSE/MA(CLOSE,40);
A2:=(CLOSE-OPEN)/OPEN*100>4;
A3:=LOW*1.051<HIGH;
A4:=A3 AND COUNT(A3,5)>1;
B1:=INDEXC;
B2:=MA(B1,5);
B3:=MA(B1,20);
B4:=B1*1.03<B2 AND B1*1.13<B3;
买入1:=(VAR1<6 AND A1<0.85 AND A2)*90;
买入2:=(VAR1<6 AND A1<0.76 AND A4)*70;
买入3:=(VAR1<6 AND B4)*60;
DRAWICON(VAR1<6 AND A1<0.85 AND A2,L*0.9,1);
DRAWTEXT(VAR1<6 AND A1<0.85 AND A2,L*0.85,'--->买入1'),COLORRED;
DRAWICON(VAR1<6 AND A1<0.76 AND A4,L*0.9,1);
DRAWTEXT(VAR1<6 AND A1<0.76 AND A4,L*0.85,'--->买入2'),COLORRED;
DRAWTEXT(VAR1<6 AND B4,L*0.85,'--->买入3'),COLORRED;
VAR2:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(VAR2+VAR3)/AMOUNT*VOL*100*50;
VAR4:=EMA((EMA(CLOSE,95)-EMA(CLOSE,120)),35);
VAR5:=((EMA(CLOSE,95)-EMA(CLOSE,120))-VAR4)*2;
DRAWTEXT(CROSS(生命,攻击),攻击*1.015,'⊙'),COLORYELLOW;
DRAWTEXT(CROSS(攻击,生命),攻击*0.975,'⊙'),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:3
M赋值:30
VAR0赋值:(3*收盘价+最低价+OPEN+最高价)/6
攻击赋值:(20*VAR0+19*1日前的VAR0+18*2日前的VAR0+17*3日前的VAR0+16*4日前的VAR0+15*5日前的VAR0+14*6日前的VAR0+13*7日前的VAR0+12*8日前的VAR0+11*9日前的VAR0+10*10日前的VAR0+9*11日前的VAR0+8*12日前的VAR0+7*13日前的VAR0+6*14日前的VAR0+5*15日前的VAR0+4*16日前的VAR0+3*17日前的VAR0+2*18日前的VAR0+20日前的VAR0)/210,COLORF00FF0
生命赋值:攻击的5日简单移动平均,COLORGREEN
DRAWBAND(攻击,RGB(155,50,50),生命,RGB(50,250,0))
涨停赋值:IF((C-1日前的C)*100/1日前的C>=(10-0.01*100/1日前的O),1,0)
当满足条件涨停时,在O和C之间画柱状线
输出
短线1:攻击,画白色
输出
中线1:生命,画黄色
{所属板块 所属地域 流通市值}
LTSZ赋值:C*当前流通股本/1000000
LTSZ1赋值:CON2STR(LTSZ,0)
AAA1赋值:STRCAT('每股公积金= ',CON2STR(FINANCE(18),2))
当满足条件CURRBARSCOUNT=1时,在横轴0纵轴0.8位置书写文字
AAA2赋值:STRCAT('每股未分配利润= ',CON2STR(FINANCE(32),2))
当满足条件CURRBARSCOUNT=1时,在横轴0纵轴0.86位置书写文字
AAA3赋值:STRCAT('每股收益(当期)= ',CON2STR(FINANCE(38),4))
当满足条件CURRBARSCOUNT=1时,在横轴0纵轴0.92位置书写文字
AAA6赋值:STRCAT(STRCAT('每股净收益率= ',CON2STR(100*((FINANCE(29)/FINANCE(7))/FINANCE(34)),2)),'%')
当满足条件CURRBARSCOUNT=1时,在横轴0.3纵轴0.92位置书写文字
当满足条件1时,在横轴0.760纵轴0.010位置书写文字
当满足条件1时,在横轴0.840纵轴0.010位置书写文字
当满足条件1时,在横轴0.920纵轴0.010位置书写文字
DRAWTEXT_FIX(1,0.795,0.010,0,CON2STR(DYNAINFO(14)*100,2))
DRAWTEXT_FIX(1,0.875,0.010,0,CON2STR(DYNAINFO(17),2))
DRAWTEXT_FIX(1,0.955,0.010,0,CON2STR(DYNAINFO(37)*100,2))
{所属板块}
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),画红色
VAR1赋值:EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))*80,5)
A1赋值:收盘价/收盘价的40日简单移动平均
A2赋值:(收盘价-OPEN)/OPEN*100>4
A3赋值:最低价*1.051<最高价
A4赋值:A3 AND 统计5日满足A3的天数>1
B1赋值:INDEXC
B2赋值:B1的5日简单移动平均
B3赋值:B1的20日简单移动平均
B4赋值:B1*1.03
买入1赋值:(VAR1<6 AND A1<0.85 AND A2)*90
买入2赋值:(VAR1<6 AND A1<0.76 AND A4)*70
买入3赋值:(VAR1<6 AND B4)*60
当满足条件VAR1<6 AND A1<0.85 AND A2时,在L*0.9和1之间画图标
当满足条件VAR1<6 AND A1<0.85 AND A2时,在L*0.85和'--->买入1'位置书写文字
当满足条件VAR1<6 AND A1<0.76 AND A4时,在L*0.9和1之间画图标
当满足条件VAR1<6 AND A1<0.76 AND A4时,在L*0.85和'--->买入2'位置书写文字
当满足条件VAR1<6 AND B4时,在L*0.85和'--->买入3'位置书写文字
VAR2赋值:MAX(最高价-AMOUNT/成交量/100的绝对值,ABS(AMOUNT/成交量/100-最低价))
VAR3赋值:(OPEN+收盘价的绝对值/2-AMOUNT/成交量/100)
MV:=(VAR2+VAR3)/AMOUNT*成交量*100*50
VAR4赋值:EMA((EMA(收盘价,95)-EMA(收盘价,120)),35)
VAR5赋值:((收盘价的95日指数移动平均-收盘价的120日指数移动平均)-VAR4)*2
DRAWTEXT(生命上穿攻击,攻击*1.015,'⊙'),画黄色
DRAWTEXT(攻击上穿生命,攻击*0.975,'⊙'),画红色