通达信【波段神器】主副图 抄底逃顶高胜率操盘组合!指标源码

{波段神器主图源码如下}
{波段神器主图指标,无未来函数}

DC:=HHV(C,2);

DC1:=LLV(C,2);

MA3:=MA(C,3);

DC4:=(3*C+L+O+H)/6;

DCZ1:=(C>REF(C,1) AND C>REF(C,2));

DCZ2:=(REF(DCZ1,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ3:=(REF(DCZ2,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ4:=(REF(DCZ3,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ5:=(REF(DCZ4,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ6:=(REF(DCZ5,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ7:=(REF(DCZ6,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ8:=(REF(DCZ7,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ9:=(REF(DCZ8,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZA:=(REF(DCZ9,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZB:=(REF(DCZA,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZC:=(REF(DCZB,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZD:=(C<REF(C,1) AND C<REF(C,2));

DCZE:=(REF(DCZD,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZF:=(REF(DCZE,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ10:=(REF(DCZF,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ11:=(REF(DCZ10,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ12:=(REF(DCZ11,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ13:=(REF(DCZ12,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ14:=(REF(DCZ13,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ15:=(REF(DCZ14,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ16:=(REF(DCZ15,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ17:=(REF(DCZ16,1) AND C<=REF(C,1) AND C>=REF(C,2));

DCZ18:=(REF(DCZ17,1) AND C>=REF(C,1) AND C<=REF(C,2));

DCZ19:=((REF(DCZD OR DCZE OR DCZF OR DCZ10 OR DCZ11 OR DCZ12 OR DCZ13 OR DCZ14 OR DCZ15 OR DCZ16 OR DCZ17 OR DCZ18,1)) AND DCZ1);

DCZ1A:=((REF(DCZ1 OR DCZ2 OR DCZ3 OR DCZ4 OR DCZ5 OR DCZ6 OR DCZ7 OR DCZ8 OR DCZ9 OR DCZA OR DCZB OR DCZC,1)) AND DCZD);

红色持股:DCZ1 OR DCZ2 OR DCZ3 OR DCZ4 OR DCZ5 OR DCZ6 OR DCZ7 OR DCZ8 OR DCZ9 OR DCZA OR DCZB OR DCZC,COLOR0000FF,NODRAW;

离场:=IF(红色持股,DC1,DRAWNULL);

明离场价:=离场,COLORFF99FF,NODRAW;

今离场价:REF(离场,1)COLOR0000FF,NODRAW;

青色观望:DCZD OR DCZE OR DCZF OR DCZ10 OR DCZ11 OR DCZ12 OR DCZ13 OR DCZ14 OR DCZ15 OR DCZ16 OR DCZ17 OR DCZ18,COLORFFFF00,NODRAW;

进:=IF(青色观望,DC,DRAWNULL);

明进场价:=进,COLOR33AACC,NODRAW;

今进场价:REF(明进场价,1),COLORFF0000,NODRAW;

短买:DCZ19,COLOR33AACC,NODRAW;

品红离场:DCZ1A,COLORFF99FF,NODRAW;

急速超跌:(C-MA(C,34))/MA(C,34)*100<-14,COLORFFFFFF,NODRAW;

织女线:(20*DC4+19*REF(DC4,1)+18*REF(DC4,2)+17*REF(DC4,3)+16*REF(DC4,4)+15*REF(DC4,5)+14*REF(DC4,6)+13*REF(DC4,7)+12*REF(DC4,8)+11*REF(DC4,9)+10*REF(DC4,10)+9*REF(DC4,11)+8*REF(DC4,12)+7*REF(DC4,13)+6*REF(DC4,14)+5*REF(DC4,15)+4*REF(DC4,16)+3*REF(DC4,17)+2*REF(DC4,18)+REF(DC4,20))/211,COLOR0000FF;

牵牛线:MA(C,26),COLORFF00FF;

等待:=IF(MA3>织女线,织女线,MA3);

IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF; IF(织女线>REF(织女线,1),织女线,DRAWNULL),LINETHICK2,COLOR0000FF;

IF(织女线<REF(织女线,1),织女线,DRAWNULL),COLOR00FF00; IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF; IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;

STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;

STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;

STICKLINE(C>=O,L,H,0,0),COLOR0000CC;

STICKLINE(C<O,L,H,0,0),COLOR999900;

STICKLINE(1,C,O,3.5,0),COLOR858500;

STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;

STICKLINE(红色持股,C,O,2.8,0),COLOR000055;

STICKLINE(红色持股,C,O,2,0),COLOR000088;

STICKLINE(红色持股,C,O,1.5,0),COLOR0000AA;

STICKLINE(红色持股,C,O,1,0),COLOR0000CC;

STICKLINE(红色持股,C,O,0.5,0),COLOR0000EE;

STICKLINE(青色观望,C,O,2.8,0),COLOR555500;

STICKLINE(青色观望,C,O,2,0),COLOR888800;

STICKLINE(青色观望,C,O,1.5,0),COLORAAAA00;

STICKLINE(青色观望,C,O,1,0),COLORCCCC00;

STICKLINE(青色观望,C,O,0.5,0),COLOREEEE00;

JB:=(C-O);

STICKLINE(急速超跌,O,C-JB/2,2.8,0),COLOR555555;

STICKLINE(急速超跌,O,C-JB/2,2,0),COLOR888888;

STICKLINE(急速超跌,O,C-JB/2,1.5,0),COLORAAAAAA;

STICKLINE(急速超跌,O,C-JB/2,1,0),COLORCCCCCC;

STICKLINE(急速超跌,O,C-JB/2,0.5,0),COLOREEEEEE;

STICKLINE(短买,O,O+JB/3,2.8,0),COLOR335555;

STICKLINE(短买,O,O+JB/3,2,0),COLOR338888;

STICKLINE(短买,O,O+JB/3,1.5,0),COLOR33AAAA;

STICKLINE(短买,O,O+JB/3,1,0),COLOR33CCCC;

STICKLINE(短买,O,O+JB/3,0,0),COLOR33EEEE;

DRAWTEXT(短买,REF(C,1),'←短买'),COLOR33FFCC;

STICKLINE(品红离场,O,O+JB/3,2.8,0),COLOR550055;

STICKLINE(品红离场,O,O+JB/3,2,0),COLOR880088;

STICKLINE(品红离场,O,O+JB/3,1.5,0),COLORAA00AA;

STICKLINE(品红离场,O,O+JB/3,1,0),COLORCC00CC;

STICKLINE(品红离场,O,O+JB/3,0.5,0),COLOREE00EE;

DRAWTEXT(品红离场,REF(C,1)+0.1,'←离场'),COLORFF99FF;


{波段神器副图源码如下}

{波段神器副图指标,无未来函数}

DCZ1:=REF(CLOSE,1);

DCZ2:=SMA(MAX(CLOSE-DCZ1,0),7,1)/SMA(ABS(CLOSE-DCZ1),7,1)*100,COLORYELLOW;

分批买:IF(DCZ2<24,40,77),COLORLIMAGENTA;

分批卖:IF(DCZ2>77,60,24),COLORFFFF50;

DCZ2UP:STICKLINE(FILTER(REF(DCZ2,1)<24 AND DCZ2>REF(DCZ2,1),5),24,40,1,0),COLORRED;

DCZ2DOWN:STICKLINE(FILTER(REF(DCZ2,1)>77 AND DCZ2<REF(DCZ2,1),5),60,77,1,0),COLORGREEN;

DRAWTEXT(FILTER(REF(DCZ2,1)<24 AND DCZ2>REF(DCZ2,1),4),45 ,'买' ),COLORYELLOW;

DRAWTEXT(FILTER(REF(DCZ2,1)>77 AND DCZ2<REF(DCZ2,1),4),55 ,'卖' ),COLORGREEN;

DRAWICON(FILTER(REF(DCZ2,1)<24 AND DCZ2>REF(DCZ2,1),4),LOW+7,9);

DRAWICON(FILTER(REF(DCZ2,1)>77 AND DCZ2<REF(DCZ2,1),4),70,15);

77,COLORGREEN LINETHICK1;

24,COLORRED LINETHICK1;



来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

{波段神器主图源码如下}{波段神器主图指标,无未来函数}DC赋值:2日内C最高值
DC1赋值:2日内C最低值
MA3赋值:C的3日简单移动平均
DC4赋值:(3*C+L+O+H)/6
DCZ1赋值:(C>1日前的C AND C>2日前的C)
DCZ2赋值:(1日前的DCZ1 AND C<=1日前的C AND C>=2日前的C)
DCZ3赋值:(1日前的DCZ2 AND C>=1日前的C AND C<=2日前的C)
DCZ4赋值:(1日前的DCZ3 AND C<=1日前的C AND C>=2日前的C)
DCZ5赋值:(1日前的DCZ4 AND C>=1日前的C AND C<=2日前的C)
DCZ6赋值:(1日前的DCZ5 AND C<=1日前的C AND C>=2日前的C)
DCZ7赋值:(1日前的DCZ6 AND C>=1日前的C AND C<=2日前的C)
DCZ8赋值:(1日前的DCZ7 AND C<=1日前的C AND C>=2日前的C)
DCZ9赋值:(1日前的DCZ8 AND C>=1日前的C AND C<=2日前的C)
DCZA赋值:(1日前的DCZ9 AND C<=1日前的C AND C>=2日前的C)
DCZB赋值:(1日前的DCZA AND C>=1日前的C AND C<=2日前的C)
DCZC赋值:(1日前的DCZB AND C<=1日前的C AND C>=2日前的C)
DCZD赋值:(C<1日前的C AND C<2日前的C)
DCZE赋值:(1日前的DCZD AND C>=1日前的C AND C<=2日前的C)
DCZF赋值:(1日前的DCZE AND C<=1日前的C AND C>=2日前的C)
DCZ10:=(1日前的DCZF AND C>=1日前的C AND C<=2日前的C)
DCZ11:=(1日前的DCZ10 AND C<=1日前的C AND C>=2日前的C)
DCZ12:=(1日前的DCZ11 AND C>=1日前的C AND C<=2日前的C)
DCZ13:=(1日前的DCZ12 AND C<=1日前的C AND C>=2日前的C)
DCZ14:=(1日前的DCZ13 AND C>=1日前的C AND C<=2日前的C)
DCZ15:=(1日前的DCZ14 AND C<=1日前的C AND C>=2日前的C)
DCZ16:=(1日前的DCZ15 AND C>=1日前的C AND C<=2日前的C)
DCZ17:=(1日前的DCZ16 AND C<=1日前的C AND C>=2日前的C)
DCZ18:=(1日前的DCZ17 AND C>=1日前的C AND C<=2日前的C)
DCZ19:=((1日前的DCZD OR DCZE OR DCZF OR DCZ10 OR DCZ11 OR DCZ12 OR DCZ13 OR DCZ14 OR DCZ15 OR DCZ16 OR DCZ17 OR DCZ18) AND DCZ1)
DCZ1A:=((1日前的DCZ1 OR DCZ2 OR DCZ3 OR DCZ4 OR DCZ5 OR DCZ6 OR DCZ7 OR DCZ8 OR DCZ9 OR DCZA OR DCZB OR DCZC) AND DCZD)
输出红色持股:DCZ1 OR DCZ2 OR DCZ3 OR DCZ4 OR DCZ5 OR DCZ6 OR DCZ7 OR DCZ8 OR DCZ9 OR DCZA OR DCZB OR DCZC,COLOR0000FF,NODRAW
如果红色持股返回DC1否则返回DRAWNULL
明离场价:=离场,COLORFF99FF,NODRAW
今离场价:1日前的离场COLOR0000FF,NODRAW
输出青色观望:DCZD OR DCZE OR DCZF OR DCZ10 OR DCZ11 OR DCZ12 OR DCZ13 OR DCZ14 OR DCZ15 OR DCZ16 OR DCZ17 OR DCZ18,COLORFFFF00,NODRAW
如果青色观望返回DC否则返回DRAWNULL
明进场价:=进,COLOR33AACC,NODRAW
今进场价:1日前的明进场价,COLORFF0000,NODRAW
输出短买:DCZ19,COLOR33AACC,NODRAW
品红输出离场:DCZ1A,COLORFF99FF,NODRAW
输出急速超跌:(C-C的34日简单移动平均)/C的34日简单移动平均*100<-14,COLORFFFFFF,NODRAW
输出织女线:(20*DC4+19*1日前的DC4+18*2日前的DC4+17*3日前的DC4+16*4日前的DC4+15*5日前的DC4+14*6日前的DC4+13*7日前的DC4+12*8日前的DC4+11*9日前的DC4+10*10日前的DC4+9*11日前的DC4+8*12日前的DC4+7*13日前的DC4+6*14日前的DC4+5*15日前的DC4+4*16日前的DC4+3*17日前的DC4+2*18日前的DC4+20日前的DC4)/211,COLOR0000FF
输出牵牛线:C的26日简单移动平均,COLORFF00FF
如果MA3>织女线返回织女线否则返回MA3
IF(等待>1日前的等待,等待,DRAWNULL), 线宽为2,COLOR00FFFF
IF(织女线>1日前的织女线,织女线,DRAWNULL), 线宽为2,COLOR0000FF
IF(织女线<1日前的织女线,织女线,DRAWNULL),COLOR00FF00
IF(牵牛线>1日前的牵牛线,牵牛线,DRAWNULL), 线宽为1,COLORFF00FF
IF(牵牛线<1日前的牵牛线,牵牛线,DRAWNULL),COLOR669933
STICKLINE(ISLASTBAR AND (红色持股 OR 1日前的红色持股=1),今离场价,今离场价,30,1),COLOR0000FF
STICKLINE(ISLASTBAR AND (青色观望 OR 1日前的青色观望=1),今进场价,今进场价,30,1),COLOR00FF00
当满足条件C>=O时,在L和H之间画柱状线
当满足条件C当满足条件1时,在C和O之间画柱状线
当满足条件C>=O时,在C和O之间画柱状线
当满足条件红色持股时,在C和O之间画柱状线
当满足条件红色持股时,在C和O之间画柱状线
当满足条件红色持股时,在C和O之间画柱状线
当满足条件红色持股时,在C和O之间画柱状线
当满足条件红色持股时,在C和O之间画柱状线
当满足条件青色观望时,在C和O之间画柱状线
当满足条件青色观望时,在C和O之间画柱状线
当满足条件青色观望时,在C和O之间画柱状线
当满足条件青色观望时,在C和O之间画柱状线
当满足条件青色观望时,在C和O之间画柱状线
JB赋值:(C-O)
当满足条件急速超跌时,在O和C-JB/2之间画柱状线
当满足条件急速超跌时,在O和C-JB/2之间画柱状线
当满足条件急速超跌时,在O和C-JB/2之间画柱状线
当满足条件急速超跌时,在O和C-JB/2之间画柱状线
当满足条件急速超跌时,在O和C-JB/2之间画柱状线
当满足条件短买时,在O和O+JB/3之间画柱状线
当满足条件短买时,在O和O+JB/3之间画柱状线
当满足条件短买时,在O和O+JB/3之间画柱状线
当满足条件短买时,在O和O+JB/3之间画柱状线
当满足条件短买时,在O和O+JB/3之间画柱状线
DRAWTEXT(短买,1日前的C,'←短买'),COLOR33FFCC
当满足条件品红离场时,在O和O+JB/3之间画柱状线
当满足条件品红离场时,在O和O+JB/3之间画柱状线
当满足条件品红离场时,在O和O+JB/3之间画柱状线
当满足条件品红离场时,在O和O+JB/3之间画柱状线
当满足条件品红离场时,在O和O+JB/3之间画柱状线
DRAWTEXT(品红离场,1日前的C+0.1,'←离场'),COLORFF99FF
{波段神器副图源码如下}{波段神器副图指标,无未来函数}DCZ1赋值:1日前的收盘价
DCZ2赋值:SMA(收盘价-DCZ1和0较大值,7,1)/SMA(收盘价-DCZ1的绝对值,7,1)*100,画黄色
如果DCZ2<24返回40否则返回77
如果DCZ2>77返回60否则返回24
DCZ2UP:STICKLINE(FILTER(1日前的DCZ2<24 AND DCZ2>1日前的DCZ2,5),24,40,1,0),画红色
DCZ2DOWN:STICKLINE(FILTER(1日前的DCZ2>77 AND DCZ2<1日前的DCZ2,5),60,77,1,0),画绿色
DRAWTEXT(FILTER(1日前的DCZ2<24 AND DCZ2>1日前的DCZ2,4),45 ,'买' ),画黄色
DRAWTEXT(FILTER(1日前的DCZ2>77 AND DCZ2<1日前的DCZ2,4),55 ,'卖' ),画绿色
DRAWICON(FILTER(1日前的DCZ2<24 AND DCZ2>1日前的DCZ2,4),最低价+7,9)
DRAWICON(FILTER(1日前的DCZ2>77 AND DCZ2<1日前的DCZ2,4),70,15)
77,画绿色 线宽为1
24,画红色 线宽为1

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图