通达信【低位转强】副图指标 波谷转强 捕捉低位转势信号 源码

VARF1:=TROUGHBARS(3,15,1)<4;

多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),NODRAW;

STICKLINE(FILTER(VARF1=1,5) AND 多空<-10,75,0,1.6,0),COLORAA00BB;

DRAWTEXT(STICKLINE(FILTER(VARF1=1,5) AND 多空<-10,75,0,1.6,0),65,'多空'),COLORAA00BB;

VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;

VAR400:=EMA(VAR300,5);

操盘:=3*VAR300-2*VAR400;

PS1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;

STICKLINE(PS1,30,0,0.3,0),COLORLIBLUE;

DRAWTEXT(PS1,23,'操盘'),COLORLIBLUE;

{信号}

AA5X:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT,NODRAW ;

低位转强:IF(CROSS(AA5X,20),45,0),STICK,COLOR008888,LINETHICK4;

DRAWTEXT((低位转强>0),45,'转强'),COLOR008888;

好股网1:=REF(LOW,1);

好股网2:=SMA(ABS(LOW-好股网1),13,1)/SMA(MAX(LOW-好股网1,0),13,1)*100;

好股网3:=EMA(IF(CLOSE*1.2,好股网2*13,好股网2/13),13);

好股网4:=LLV(LOW,34);

好股网5:=HHV(好股网3,34);

好股网6:=IF(LLV(LOW,56),1,0);

好股网7:=EMA(IF(LOW<=好股网4,(好股网3+好股网5*2)/2,0),3)/618*好股网6;

好股网8:=好股网7>REF(好股网7,1);

好股网9:=REF(LLV(LOW,100),3);

好股网10:=REFDATE(好股网9,DATE);

好股网11:=LOW=好股网10;

好股网12:=好股网8 AND 好股网11;

好股网13:=好股网12>REF(好股网12,1);

启动点:好股网13>REF(好股网13,1),NODRAW;

DRAWTEXT(启动点,10,'启'),COLOR99FFFF;

B3L:DRAWTEXT(CROSS(ZIG(3,4),REF(ZIG(3,4),1)),20,'+20'),COLOR999999;

B6L:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),30,'+40'),COLOR999999;




B9L:DRAWTEXT(CROSS(ZIG(3,12),REF(ZIG(3,12),1)),40,'+60'),COLOR999999;

B12:DRAWTEXT(CROSS(ZIG(3,16),REF(ZIG(3,16),1)),50,'+80'),COLOR666666;

B15:DRAWTEXT(CROSS(ZIG(3,20),REF(ZIG(3,20),1)),60,'+100'),COLOR666666;

S15:DRAWTEXT(CROSS(REF(ZIG(3,20),1),ZIG(3,20)),50,'-100'),COLOR666666;

S12:DRAWTEXT(CROSS(REF(ZIG(3,16),1),ZIG(3,16)),60,'-80'),COLOR666666;

S9:DRAWTEXT(CROSS(REF(ZIG(3,12),1),ZIG(3,12)),70,'-60'),COLOR999999;

S6:DRAWTEXT(CROSS(REF(ZIG(3,8),1),ZIG(3,8)),80,'-40'),COLOR999999;

S3:DRAWTEXT(CROSS(REF(ZIG(3,4),1),ZIG(3,4)),90,'-20'),COLOR999999;



未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS

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

VARF1赋值:TROUGHBARS(3,15,1)<4
输出多空:EMA((收盘价-MA((2*收盘价+最高价+最低价)/4,30))/MA((2*收盘价+最高价+最低价)/4,30)*100,3),NODRAW
STICKLINE(VARF1=1的5过滤 AND 多空<-10,75,0,1.6,0),COLORAA00BB
DRAWTEXT(STICKLINE(VARF1=1的5过滤 AND 多空<-10,75,0,1.6,0),65,'多空'),COLORAA00BB
VAR200赋值:(收盘价-20日内最低价最低值)/(20日内最高价最高值-20日内最低价最低值)*100
VAR200的3日[1日权重]移动平均
VAR400赋值:VAR300的5日指数移动平均
操盘赋值:3*VAR300-2*VAR400
PS1赋值:操盘上穿VAR300 AND VAR300<2.1 AND C>O
当满足条件PS1时,在30和0之间画柱状线
当满足条件PS1时,在23和'操盘'位置书写文字
{信号} AA5X赋值:3*SMA((收盘价-18日内最低价最低值)/(18日内最高价最高值-18日内最低价最低值)*100,21,1)-2*SMA(SMA((收盘价-18日内最低价最低值)/(18日内最高价最高值-18日内最低价最低值)*100,20,1),8,1),CIRCLEDOT,NODRAW
输出低位转强:IF(AA5X上穿20,45,0),STICK,COLOR008888, 线宽为4
DRAWTEXT((低位转强>0),45,'转强'),COLOR008888
好股网1赋值:1日前的最低价
好股网2赋值:SMA(最低价-好股网1的绝对值,13,1)/SMA(最低价-好股网1和0较大值,13,1)*100
如果收盘价*1.2返回好股网2*13否则返回好股网2/13
好股网4赋值:34日内最低价最低值
好股网5赋值:34日内好股网3最高值
好股网6赋值:IF(56日内最低价最低值,1,0)
好股网7赋值:EMA(IF(最低价<=好股网4,(好股网3+好股网5*2)/2,0),3)/618*好股网6
好股网8赋值:好股网7>1日前的好股网7
好股网9赋值:REF(100日内最低价最低值,3)
好股网10:=日期REF日期好股网9日
好股网11:=最低价=好股网10
好股网12:=好股网8 AND 好股网11
好股网13:=好股网12>1日前的好股网12
输出启动点:好股网13>1日前的好股网13,NODRAW
当满足条件启动点时,在10和'启'位置书写文字
输出B3L:DRAWTEXT(CROSS(ZIG(3,4),REF(ZIG(3,4),1)),20,'+20'),COLOR999999
输出B6L:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),30,'+40'),COLOR999999
输出B9L:DRAWTEXT(CROSS(ZIG(3,12),REF(ZIG(3,12),1)),40,'+60'),COLOR999999
输出B12:DRAWTEXT(CROSS(ZIG(3,16),REF(ZIG(3,16),1)),50,'+80'),COLOR666666
输出B15:DRAWTEXT(CROSS(ZIG(3,20),REF(ZIG(3,20),1)),60,'+100'),COLOR666666
输出S15:DRAWTEXT(CROSS(REF(ZIG(3,20),1),ZIG(3,20)),50,'-100'),COLOR666666
输出S12:DRAWTEXT(CROSS(REF(ZIG(3,16),1),ZIG(3,16)),60,'-80'),COLOR666666
输出S9:DRAWTEXT(CROSS(REF(ZIG(3,12),1),ZIG(3,12)),70,'-60'),COLOR999999
输出S6:DRAWTEXT(CROSS(REF(ZIG(3,8),1),ZIG(3,8)),80,'-40'),COLOR999999
输出S3:DRAWTEXT(CROSS(REF(ZIG(3,4),1),ZIG(3,4)),90,'-20'),COLOR999999

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

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