Skip to content

Instantly share code, notes, and snippets.

View chronossc's full-sized avatar

Felipe Prenholato chronossc

View GitHub Profile
@chronossc
chronossc / stochastic_and_rsi
Last active August 26, 2018 17:24 — forked from anonymous/stochastic_and_rsi
slightly improved version of indicator with Stochastic RSI and RSI with alerts from autemox for use in trading view.
// ver 1 alerts show significant stoch rsi crossovers as long as they arent in outermost bounds
// ver 2 fixed error with > to >= that caused some alerts to not appear
// ver 3 changed from symbols to columns to make it easier to set up real trading view alerts with it!
// BASED on https://www.tradingview.com/script/aUZVp1GC-Stochastic-RSI-with-Crossover-Alerts/
// Author: autemox
study(title="Stochastic RSI with Crossover Alerts", shorttitle="Stoch RSI with Crossover Alerts")
smoothK = input(3, minval=1)
smoothD = input(3, minval=1)
lengthRSI = input(14, minval=1)
lengthStoch = input(14, minval=1)