RicardoSantos

[RS]Fractal Levels V0

EXPERIMENTAL: fractal levels experiment
Remove from Favorite Scripts Add to Favorite Scripts
study("[RS]Fractal Levels V0", shorttitle="[RS]FL.V0", overlay=true)
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(topfractal, text="Fractal", location=location.abovebar, offset=-2)
plotchar(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(topfractals, color=topfcolor)
plot(botfractals, color=botfcolor)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out