Back to the Old Days of Creating Custom Technical Indicators
Sofien, is the entire TradingView script the 8 lines you spread through the article? Or is the complete script located somewhere else we can access it?
Hi Ray, spread it, but here's the whole thing together:
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Sofien-Kaabar
//@version=5
indicator("Rainbow Collection - Yellow", overlay = true)
rsi = ta.rsi(close, 13)
buy = rsi < rsi[1] and rsi[1] > 30 and rsi[2] < 30 and rsi[13] > 30
sell = rsi > rsi[1] and rsi[1] < 70 and rsi[2] > 70 and rsi[13] < 70
plotshape(buy and sell[1] == 0, style = shape.triangleup, color = color.yellow, location = location.belowbar, size = size.small)
plotshape(sell and buy[1] == 0, style = shape.triangledown, color = color.yellow, location = location.abovebar, size = size.small)
Sofien, is the entire TradingView script the 8 lines you spread through the article? Or is the complete script located somewhere else we can access it?
Hi Ray, spread it, but here's the whole thing together:
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Sofien-Kaabar
//@version=5
indicator("Rainbow Collection - Yellow", overlay = true)
rsi = ta.rsi(close, 13)
buy = rsi < rsi[1] and rsi[1] > 30 and rsi[2] < 30 and rsi[13] > 30
sell = rsi > rsi[1] and rsi[1] < 70 and rsi[2] > 70 and rsi[13] < 70
plotshape(buy and sell[1] == 0, style = shape.triangleup, color = color.yellow, location = location.belowbar, size = size.small)
plotshape(sell and buy[1] == 0, style = shape.triangledown, color = color.yellow, location = location.abovebar, size = size.small)