RicardoSantos

[RS]Impulse Oscillator V0

EXPERIMENTAL:
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study(title='[RS]Impulse Oscillator V0', shorttitle='IO', overlay=false)
inner_range = close - close[1]
up_sequence = na(up_sequence[1]) ? 0 : close < close[1] ? 0 : up_sequence[1] + inner_range
down_sequence = na(down_sequence[1]) ? 0 : close > close[1] ? 0 : down_sequence[1] + inner_range
plot(title='Bull Impulse', series=up_sequence, style=columns, color=lime)
plot(title='Bear Impulse', series=down_sequence, style=columns, color=red)
length = input(21)
smoothing = input(4)
avg_up = sma(up_sequence, length)
signal_up = ema(avg_up, smoothing)
avg_down = sma(down_sequence, length)
signal_down = ema(avg_down, smoothing)

plot(title='Average+', series=avg_up, color=black)
plot(title='Average-', series=avg_down, color=black)
plot(title='Bear Squeeze', series=signal_up >= avg_up ? signal_up : na, style=circles, color=red, linewidth=2)
plot(title='Bull Squeeze', series=signal_down <= avg_down ? signal_down : na, style=circles, color=lime, linewidth=2)
Simple, Nice & Clean ;)
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
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 Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out