HighBredCloud
Well-known member
What are some ideas to turn this upper study that paints the candles into a lower study of some sort? A cross over between two lines...perhaps a histogram...what are some ideas to turn this study into a lower study that makes sense? Trying to get a visual across different timeframes of what makes the candles change color.
Code:
# Price Range Color
# Mobius
# Smooths price over a range of bars eliminating noise
input range = 4;
def h = Highest(high, range);
def l = Lowest(low, range);
def c = close;
def Data = if ((c - l) / (h - l)) > .5
then low - TickSize()
else high + TickSize();
AssignPriceColor(if data < low then color.green else color.red);