RicardoSantos

[RS]Equinox Timed Extremes V0

Request for Equinox, zigzag and fibs are extras :p
Remove from Favorite Scripts Add to Favorite Scripts
study("[RS]Equinox Timed Extremes V0", overlay=true)
ExtremeTimeFrame = input("240")
ExtremeTimeWindow = input(1)

TEH = security(tickerid, ExtremeTimeFrame, highest(ExtremeTimeWindow))
TEL = security(tickerid, ExtremeTimeFrame, lowest(ExtremeTimeWindow))

EH = plot(TEH, color=TEH!=TEH[1]?na:black)
EL = plot(TEL, color=TEL!=TEL[1]?na:black)
fill(EH, EL, color=gray, transp=75)
Hcon = high >= TEH
Lcon = low <= TEL

plotshape(Hcon, style=shape.triangledown, color=maroon, location=location.abovebar, text='[TEH]')
plotshape(Lcon, style=shape.triangleup, color=green, location=location.belowbar, text='[TEL]')
showFibLvls = input(true)
range = TEH-TEL

fib236 = TEL + range*0.236
fib382 = TEL + range*0.382
fib500 = TEL + range*0.500
fib618 = TEL + range*0.618
fib764 = TEL + range*0.764

plot(not showFibLvls ? na : fib236, color=fib236!=fib236[1]?na:blue)
plot(not showFibLvls ? na : fib382, color=fib382!=fib382[1]?na:teal)
plot(not showFibLvls ? na : fib500, color=fib500!=fib500[1]?na:orange)
plot(not showFibLvls ? na : fib618, color=fib618!=fib618[1]?na:teal)
plot(not showFibLvls ? na : fib764, color=fib764!=fib764[1]?na:blue)

showZigzag = input(true)
zigzag = Hcon ? high : Lcon ? low : na
plot(not showZigzag ? na : zigzag, color=black, style=circles, linewidth=4, join=true)
Nice script. If you added sound to your your scripts it will be great. ex: when triggering the TEH or TEL it produces a repeated alert for the user until the user closes it.
Reply
it's shining.
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out