Relative Strength Index Wave Indicator [CC]
"Relative Strength Index Wave Indicator [CC]" by cheatcountry, MIT. Ported to FloScript by FloSignals; modifications under MPL-2.0. Original: Relative Strength Index Wave Indicator [CC] (v2.0), read 2026-10-12T15:43:02.093Z; source language v5.
Licence: MIT License (MIT) — full text.
Relative Strength Index Wave Indicator [CC] by cheatcountry, ported from Pine v5. Pane indicator with 4 plots, 1 level, alerts and 9 inputs.
// Copyright (c) 2019-present, Franklin Moormann (cheatcountry)
// Relative Strength Index Wave Indicator [CC] script may be freely distributed under the MIT license.
// ------------------------------------------------------------------------------------------------
// Original author: cheatcountry
// Original title: Relative Strength Index Wave Indicator [CC]
// Licence: MIT (the header above is the original notice, kept verbatim)
// Pine version: 5
// Fetched: 2026-10-12
// Ported to FloScript by FloSignals; modifications under MPL-2.0.
// Converter: @flosignals/floscript 0.1.0, strict mode, score 100/100
// ------------------------------------------------------------------------------------------------
//@floscript=1
//@version=5
indicator("Relative Strength Index Wave Indicator [CC]", overlay=false)
requestSecurity(_symbol, _res, _src, _repaint) =>
_src[_repaint ? 0 : barstate.isrealtime ? 1 : 0][_repaint ? 0 : barstate.isrealtime ? 0 : 1]
float inp = input.source(title="Source", defval=hlcc4)
string res = input.timeframe(title="Resolution", defval="")
bool rep = input.bool(title="Allow Repainting?", defval=false)
bool bar = input.bool(title="Allow Bar Color Change?", defval=false)
float src = requestSecurity(syminfo.ticker, res, inp, rep)
float h = requestSecurity(syminfo.ticker, res, high, rep)
float l = requestSecurity(syminfo.ticker, res, low, rep)
int rsiLength = input.int(title="RSI Length", defval=14, minval=1)
int length1 = input.int(title="Length1", defval=2, minval=1)
int length2 = input.int(title="Length2", defval=5, minval=1)
int length3 = input.int(title="Length3", defval=9, minval=1)
int length4 = input.int(title="Length4", defval=13, minval=1)
float customRsi = ta.rsi(src, rsiLength)
float highRsi = ta.rsi(h, rsiLength)
float lowRsi = ta.rsi(l, rsiLength)
float hlcRsi = (highRsi + lowRsi + 2 * customRsi) / 4
float rsiMa1 = ta.wma(hlcRsi, length1)
float rsiMa2 = ta.wma(hlcRsi, length2)
float rsiMa3 = ta.wma(hlcRsi, length3)
float rsiMa4 = ta.wma(hlcRsi, length4)
float slo = rsiMa1 - rsiMa2
int sig = slo > 0 ? (slo > nz(slo[1]) ? 2 : 1) : slo < 0 ? (slo < nz(slo[1]) ? -2 : -1) : 0
alertcondition(ta.crossover(sig, 1), "Strong Buy Signal", "Strong Bullish Change Detected")
alertcondition(ta.crossunder(sig, -1), "Strong Sell Signal", "Strong Bearish Change Detected")
alertcondition(ta.crossover(sig, 0), "Buy Signal", "Bullish Change Detected")
alertcondition(ta.crossunder(sig, 0), "Sell Signal", "Bearish Change Detected")
alertcondition(ta.crossover(sig, 0) or ta.crossover(sig, 1), "All Buy Signals", "Any Bullish Change Detected")
alertcondition(ta.crossunder(sig, 0) or ta.crossunder(sig, -1), "All Sell Signals", "Any Bearish Change Detected")
color rsiwColor = sig > 1 ? color.green : sig > 0 ? color.lime : sig < -1 ? color.maroon : sig < 0 ? color.red : color.white
barcolor(bar ? rsiwColor : na)
hline(50)
plot(rsiMa1, title="RsiMa1", color=color.aqua, linewidth=2)
plot(rsiMa2, title="RsiMa2", color=color.orange, linewidth=2)
plot(rsiMa3, title="RsiMa3", color=color.blue, linewidth=2)
plot(rsiMa4, title="RsiMa4", color=color.gray, linewidth=2)
This file is under the MIT License; it is a port of the original by cheatcountry, with the original licence header kept and the changes made for FloScript noted in the file.
- v2
Library refresh 2026-10-14
- v1
Library refresh 2026-10-12
Disclaimer. Scripts are written and published by members, or ported by FloSignals from open-source originals, and are their authors' own work and opinion. FloSignals does not review them for correctness and nothing in a script is financial advice or a recommendation to buy or sell anything — read the Risk Disclaimer. Posting here is under the Community Rules; a script that is not the poster's to post can be reported as the Copyright & Takedowns page says.

Comments (0)
No comments yet. Members can leave one.