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...
This script is similar to the "Hi-Lo" or "Clear" methods of painting bars. Instead of using the tips/edges of the candles like those two, the "(H+L)/2" method uses the change in (high+low)/2 to paint the bars. This gives you some similar results if you were to be binary with the candle coloring. However, my coloring scheme is not entirely binary. There are 5...
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.
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...
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...