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
This is a script for a view I wanted to go along with the Autoview plugin I bought. Keep in mind this is my first script and was created for me to learn the Pinescript framework. This isn't meant to be perfect. Indicator colors are usually blue or green or red. Also keep in mind since this is my first script in a new framework, the more stuff I build the better...
A colorful indicator that visually shows momentum, fast-moving average on the outside and the slower moving averages in the core. The outer moving average is to see where the outer momentum breaks below again.
Working MACD Histogram which colors bars based on the slope from the previous. The default colors will work for both Deuteranopia and Protonopia color-blind people but can be modified.
There is a bug with 'MACD 4C' by vkno422 + signal line - squattter and 'MACD for colour blind people' by cfhrtd in that it draws the MACD line itself as a histogram, rather than...
This is a very simple script... it does not necessarily create signals. It only provides useful feedback via statistics & probability.
There will be a green background if there are two green bars in a row, and it will stay green until two red bars show up (in which it switches color to red until two green bars show up again).
The fuchsia arrows show the double...
Colours for candles/bars determined by
- standard deviation of price, and also
- additional inputs to determine if the candle/bar is significant:-
1) volume more than half the average volume, or
2) net movement (up, down) same as previous candle/bar
Developed for black background, but you can adjust the colours to your liking. Best used...
study("Forex Sessions", shorttitle="SessionsFX", overlay=true)
t1 = time(period, "0700-1600")
t2 = time(period, "0200-1100")
t3 = time(period, "1800-0300")
t4 = time(period, "1600-0100")
NewYork = na(t1) ? na : green
London = na(t2) ? na : red
Tokyo = na(t3) ? na : blue
Sydney = na(t4) ? na : aqua
//white silver gray maroon red purple fuchsia...