SandroTurriate

HiLo Activator

5574 views
1266
Going to try using it in combination with the ECO indicator.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="HiLo Activator", overlay=true)
length = input(3, minval=1)
displace = input(0, minval=0)
highsma = sma(high, length)
lowsma = sma(low, length)
swing = iff(close > highsma[displace], 1, iff(close < lowsma[displace], -1, 0))
mah = highest(high, length)
mal = lowest(low, length)
stop = iff(swing==1, mal, iff(swing==-1, mah, stop[1]))
linecolor = iff(stop < low, green, red)
plot(stop, style=line, linewidth=2, color=linecolor)

Comments

Un indicador preciso que trabaja a la perfección. Me siento muy satisfecho y agradecido, Sandro.
Reply
Hi I am learning pine script
can you answers this to me?
https://getsatisfaction.com/tradingview/topics/question-about-pine-script?rfm=1

thanks
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out