TradingView
RicardoSantos
17 Oca 2019 22:09

[RS]Function - RGB Color (low resolution) 

Euro Fx/U.S. DollarFXCM

Açıklama

Function to handle rgb color selection, it has low resolution due to pinescript limitations.
included examples with manual background color selection via inputs and automatic color of a rsi plot based on its value.

let your rainbow dreams come true!! :D
Yorumlar
overttherainbow
The master is back.

Thank you for your generosity and keep up the good work. You are TV’s greatest asset
ICEKI
@overttherainbow, That true =D
marketrading001
Some rgb colors are not properly converted to their appropriate hex codes. These are the ones I found mistakes in:

if round(_r/51) == 0 and round(_g/51) == 5 and round(_b/51) == 0
//_output := #003300
_output := #00FF00
if round(_r/51) == 0 and round(_g/51) == 5 and round(_b/51) == 1
//_output := #003333
_output := #00FF33
if round(_r/51) == 0 and round(_g/51) == 5 and round(_b/51) == 2
//_output := #003366
_output := #00FF66
if round(_r/51) == 0 and round(_g/51) == 5 and round(_b/51) == 3
//_output := #003399
_output := #00FF99
if round(_r/51) == 0 and round(_g/51) == 5 and round(_b/51) == 4
//_output := #0033cc
_output := #00FFCC
if round(_r/51) == 0 and round(_g/51) == 5 and round(_b/51) == 5
//_output := #0033ff
_output := #00FFFF

if round(_r/51) == 1 and round(_g/51) == 1 and round(_b/51) == 0
_output := #333300
if round(_r/51) == 1 and round(_g/51) == 1 and round(_b/51) == 1
_output := #333333
if round(_r/51) == 1 and round(_g/51) == 1 and round(_b/51) == 2
_output := #333366
if round(_r/51) == 1 and round(_g/51) == 1 and round(_b/51) == 3
_output := #333399
if round(_r/51) == 1 and round(_g/51) == 1 and round(_b/51) == 4
_output := #3333cc
if round(_r/51) == 1 and round(_g/51) == 1 and round(_b/51) == 5
_output := #3333ff

if round(_r/51) == 1 and round(_g/51) == 5 and round(_b/51) == 0
//_output := #333300
_output := #33FF00
if round(_r/51) == 1 and round(_g/51) == 5 and round(_b/51) == 1
//_output := #333333
_output := #33FF33
if round(_r/51) == 1 and round(_g/51) == 5 and round(_b/51) == 2
//_output := #333366
_output := #33FF66
if round(_r/51) == 1 and round(_g/51) == 5 and round(_b/51) == 3
//_output := #333399
_output := #33FF99
if round(_r/51) == 1 and round(_g/51) == 5 and round(_b/51) == 4
//_output := #3333cc
_output := #33FFCC
if round(_r/51) == 1 and round(_g/51) == 5 and round(_b/51) == 5
//_output := #3333ff
_output := #33FFFF
OutsourcE
Is it possible to replace the rsi with the highest/ lowest function?
NathanielTosh
Looking forward to testing it out...thanks!
ballofpaper
nice :)
blackcat1402
great work, thanks for sharing this rgb function!
Daha Fazla