RicardoSantos

[RS]Fractal Levels V1

EXPERIMENTAL: update to previous version, added a average of the fractal levels and the ability to hide the diferent components.
从常用脚本中删除 Add to favorite indicators
study("[RS]Fractal Levels V1", shorttitle="[RS]FL.V1", overlay=true)
hidefractals = input(false)
hidelevels = input(false)
hideaverage = input(false)

topfractal = high < high[1] and high[1] < high[2] and high[2] > high[3] and high[3] > high[4]
botfractal = low > low[1] and low[1] > low[2] and low[2] < low[3] and low[3] < low[4]

plotchar(hidefractals ? na : topfractal, text="Fractal", location=location.abovebar, offset=-2)
plotchar(hidefractals ? na : botfractal, text="Fractal", location=location.belowbar, offset=-2)

topfractals = topfractal ? high[2] : topfractals[1]
botfractals = botfractal ? low[2] : botfractals[1]

topfcolor = topfractals != topfractals[1] ? na : black
botfcolor = botfractals != botfractals[1] ? na : black

plot(hidelevels ? na : topfractals, color=topfcolor)
plot(hidelevels ? na : botfractals, color=botfcolor)

fractalma = avg(topfractals, botfractals)
plot(hideaverage ? na : fractalma, color=blue, linewidth=2)

评论

Amazing indicator!

Do you know if there's any easy way to:
1. Only display the last x number of fractals levels? i.e 2 bull * 2 bear fractals and
2. have the fractal levels extend further to the right?

Thanks again for the cool indicator!
Mario
回复
@MTRio, its not possible
回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 推荐朋友 代币 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 在线聊天 退出