通达信《龙凤女儿主图》 望股儿 指标公式

N:=120;
K:=BARSLAST(CURRBARSCOUNT=N);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}
KJ:=GD-DD;{高低点差值=分区高度}
GD4:=IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL); {设置分区的宽度,调整数据可调整分区宽度}
平衡:=IF(CURRBARSCOUNT<=N/30,DD+KJ/2,DRAWNULL),COLOR00FFFF;{低点+中点=0.50线,NODRAW}
压力:=IF(CURRBARSCOUNT<=N/30,GD-KJ*0.191,DRAWNULL),COLORFF00FF;{高点-分区高度*0.191=0.819线,NODRAW}
支撑:=IF(CURRBARSCOUNT<=N/30,DD+KJ*0.191,DRAWNULL),COLOR00FF00;{低点+分区高度*0.191=0.191线,NODRAW}
高:=IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL),COLOR00FFFF;{高点划线,POINTDOT}
低:=IF(CURRBARSCOUNT<=N/30,DD,DRAWNULL),COLOR00FF00;{低点划线,POINTDOT}
DRAWBAND(高,RGB(160,160,0),压力,RGB(0,0,0));
DRAWBAND(压力,RGB(130,0,0),平衡,RGB(0,0,0));
DRAWBAND(平衡,RGB(100,0,100),支撑,RGB(0,0,0));
DRAWBAND(支撑,RGB(150,150,150),低,RGB(0,0,0));
望股儿止损:=REF(HHV(H,5),3)*0.925,COLORGRAY,DOTLINE;
STICKLINE(CURRBARSCOUNT=1,望股儿止损,望股儿止损,80,-1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN;{划左侧高低点边线}
STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;{划右侧高低点边线}
STICKLINE(CURRBARSCOUNT<=N/30,平衡,平衡,4,0),COLORWHITE;{划平衡线横线线}
STICKLINE(CURRBARSCOUNT<=N/30,压力,压力,4,0),COLORRED;{划压力线横线线}
STICKLINE(CURRBARSCOUNT<=N/30,支撑,支撑*0.997,4,0),COLORRED;{划支撑想横线线}
STICKLINE(CURRBARSCOUNT<=N/30,低,低,4,0),COLORGREEN;{划低位横线线};
VAR93:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
VAR94:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(VAR93,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;
STICKLINE(VAR93,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;
STICKLINE(VAR94,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(VAR94,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
DRAWTEXT_FIX(ISLASTBAR,0.80,0,1,'股望儿止损:'),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.805,0,0,REF(HHV(H,5),3)*0.925)COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.80,0.1,1,'金来女加码:'),COLORRED;
DRAWNUMBER_FIX(ISLASTBAR,0.805,0.1,0,REF(C,1)*1.043)COLORRED;
CCI151:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,15))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,15));
CCI101:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,10))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,10));
CCI51:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,5))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,5));
CCI31:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,3))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,3));
CCI买点定位1:=CROSS(CCI51,0) AND CROSS(CCI31,0) AND REF(CCI151,1)>0 AND REF(CCI101,1)>-30 AND REF(CCI151,1)>REF(CCI101,1) AND REF(CCI101,1)>REF(CCI51,1);
CCI买点定位2:=CROSS(CCI31,0) AND CCI51>REF(CCI51,1) AND REF(CCI51,1)<-100 AND REF(CCI151,1)>0 AND REF(CCI101,1)>-30 AND REF(CCI151,1)>REF(CCI101,1) AND REF(CCI101,1)>REF(CCI51,1);
CCI买点定位3:=CROSS(CCI51,0) AND CROSS(CCI31,0) AND REF(CCI101,1)>0 AND REF(CCI101,1)>REF(CCI151,1);
买点定位:=CCI买点定位1=1 OR CCI买点定位2=1 OR CCI买点定位3=1;
VOL比:=VOL/REF(VOL,1);
金来股望:=买点定位 AND VOL比>1.2;
STICKLINE(金来股望,O,C,3,0),COLOR2CB3E3;
DRAWTEXT(金来股望 ,L*0.98,'金来股望')COLORYELLOW;
DRAWICON(金来股望,L*0.99,1);
 



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


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

N赋值:120

K赋值:上次CURRBARSCOUNT=N距今天数

GD赋值:CONST(IF(ISLASTBAR=1,K日内H最高值,0))
{高点}
DD赋值:CONST(IF(ISLASTBAR=1,K日内L最低值,0))
{低点}
KJ:=GD-DD
如果CURRBARSCOUNT<=N/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD+KJ/2否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回GD-KJ*0.191否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD+KJ*0.191否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD否则返回DRAWNULL
{低点划线,POINTDOT}
DRAWBAND(高,RGB(160,160,0),压力,RGB(0,0,0))

DRAWBAND(压力,RGB(130,0,0),平衡,RGB(0,0,0))

DRAWBAND(平衡,RGB(100,0,100),支撑,RGB(0,0,0))

DRAWBAND(支撑,RGB(150,150,150),低,RGB(0,0,0))

望股儿止损赋值:REF(5日内H最高值,3)*0.925,COLORGRAY,DOTLINE
当满足条件CURRBARSCOUNT=1时,在望股儿止损和望股儿止损之间画柱状线
当满足条件CURRBARSCOUNT=N/30时,在GD和DD之间画柱状线
当满足条件CURRBARSCOUNT=1时,在GD和DD之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在平衡和平衡之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在压力和压力之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在支撑和支撑*0.997之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在低和低之间画柱状线
{划低位横线线}

VAR93赋值:收盘价=4日内C最低值 AND (1日前的C<2日前的C OR 1日前的C<3日前的C) OR 1日前的C=4日内C最低值 AND C<2日前的C OR 2日前的C=4日内C最低值 AND 1日前的C=4日内C最高值 AND C<1日前的C OR 3日前的C=4日内C最低值 AND C<1日前的C AND C<2日前的C

VAR94赋值:1日前的C=4日内C最低值 AND C>=2日前的C OR 2日前的C=4日内C最低值 AND 1日前的C<=3日前的C AND 2日前的C<4日前的C AND C>=1日前的C
当满足条件OPEN>=收盘价时,在收盘价和OPEN之间画柱状线
当满足条件OPEN>=收盘价时,在收盘价和OPEN之间画柱状线
当满足条件OPEN>=收盘价时,在收盘价和OPEN之间画柱状线
当满足条件收盘价>OPEN时,在收盘价和OPEN之间画柱状线
当满足条件收盘价>OPEN时,在收盘价和OPEN之间画柱状线
当满足条件收盘价>OPEN时,在收盘价和OPEN之间画柱状线

STICKLINE(VAR93,OPEN,(OPEN+收盘价)/2,3,0),COLOR009900

STICKLINE(VAR93,OPEN,(OPEN+收盘价)/2,2.2,0),COLOR00BB00

STICKLINE(VAR94,OPEN,(OPEN+收盘价)/2,3,0),COLOR999999

STICKLINE(VAR94,OPEN,(OPEN+收盘价)/2,2.2,0),COLORBBBBBB
当满足条件ISLASTBAR时,在横轴0.80纵轴0位置书写文字

DRAWNUMBER_FIX(ISLASTBAR,0.805,0,0,REF(5日内H最高值,3)*0.925)COLORGREEN
当满足条件ISLASTBAR时,在横轴0.80纵轴0.1位置书写文字

DRAWNUMBER_FIX(ISLASTBAR,0.805,0.1,0,1日前的C*1.043)画红色

CCI151赋值:((最高价+最低价+收盘价)/3-MA((最高价+最低价+收盘价)/3,15))/(0.015*AVEDEV((最高价+最低价+收盘价)/3,15))

CCI101赋值:((最高价+最低价+收盘价)/3-MA((最高价+最低价+收盘价)/3,10))/(0.015*AVEDEV((最高价+最低价+收盘价)/3,10))

CCI51赋值:((最高价+最低价+收盘价)/3-MA((最高价+最低价+收盘价)/3,5))/(0.015*AVEDEV((最高价+最低价+收盘价)/3,5))

CCI31赋值:((最高价+最低价+收盘价)/3-MA((最高价+最低价+收盘价)/3,3))/(0.015*AVEDEV((最高价+最低价+收盘价)/3,3))

CCI买点定位1赋值:CCI51上穿0 AND CCI31上穿0 AND 1日前的CCI151>0 AND 1日前的CCI101>-30 AND 1日前的CCI151>1日前的CCI101 AND 1日前的CCI101>1日前的CCI51

CCI买点定位2赋值:CCI31上穿0 AND CCI51>1日前的CCI51 AND 1日前的CCI51<-100 AND 1日前的CCI151>0 AND 1日前的CCI101>-30 AND 1日前的CCI151>1日前的CCI101 AND 1日前的CCI101>1日前的CCI51

CCI买点定位3赋值:CCI51上穿0 AND CCI31上穿0 AND 1日前的CCI101>0 AND 1日前的CCI101>1日前的CCI151

买点定位赋值:CCI买点定位1=1 OR CCI买点定位2=1 OR CCI买点定位3=1

VOL比赋值:成交量/1日前的成交量

金来股望赋值:买点定位 AND 成交量比>1.2
当满足条件金来股望时,在O和C之间画柱状线
当满足条件金来股望 时,在L*0.98和'金来股望'位置书写文字
当满足条件金来股望时,在L*0.99和1之间画图标

 

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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