Fractal Support Resistance

Auto SR based on fractals and volume .
从常用脚本中删除 Add to favorite indicators
study("Fractal Support Resistance", shorttitle="FSR", overlay=true)
tf = input(title="Resolution", type=resolution, defval = "current")
vamp = input(title="VolumeMA", type=integer, defval=6)
vam = sma(volume, vamp)

up = high[3]>high[4] and high[4]>high[5] and high[2]<high[3] and high[1]<high[2] and volume>vam
down = low[3]<low[4] and low[4]<low[5] and low[2]>low[3] and low[1]>low[2] and volume>vam
fractalup =  up ? high[3] : fractalup[1] 
fractaldown = down ? low[3] : fractaldown[1]

fuptf = security(tickerid,tf == "current" ? period : tf, fractalup)
fdowntf = security(tickerid,tf == "current" ? period : tf, fractaldown)

plot(fuptf, "FractalUp", color=lime, linewidth=1, style=cross, transp=0, offset =-3, join=false)
plot(fdowntf, "FractalDown", color=red, linewidth=1, style=cross, transp=0, offset=-3, join=false)


Hey guys, can someone explain me how it works?
@DanielJeney, On the high side, a fractal is a high point, where the 2 candles before and the 2 candles after, are lower than that high. On the low side, a fractal is a low point, where the 2 candles before and the 2 candles after, are higher than that low.
v good imp
Hey @synapticEx great indi, been using it for a while now! Can I ask, is it possible to make an update to the indicator so that it does not affect the scaling of the chart? For example, if the indi is set up 4 hour timeframe S/R's.. and you're on say a <30m timeframe - the chart will squish up to fit the 4hour Resistance, for example. Hope this makes sense! Thanking you in advance
Thank you! What would be your settings for 5 min time frame? And does it matter the colour? The green sits on top..
cristian.d cristian.d
I mean for the VolumeMA cause I see you got the TF
synapticEx cristian.d
Thanks, the volume now should be fine. The green stand for a local maximum that has led to significant trading activity, the red is local minimum instead.
You can apply the script multiple times with a different time frame and change the colors based on your trading aims.
+3 回复
Nice addition to the library!!!
synapticEx cooney_s
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 推荐朋友 代币 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 在线聊天 退出