See the current trend strength of the market. An additional filter makes trend consolidation areas visible. The color changes there each bar back and forth between green and red.
This area was interesting. Would have been a better example:
If the filter is deactivated the indicator shows the last measured price trend (green for up and down for red).
Hope you doing well, I was looking at your script and can't figure out what are you doing here, would you mind to explain it?
nz(GetBgColor[switch?ShowConsolidation:1], 0)
I see that if 'switch' variable is 'true' then you pass the ShowConsolidation variable '2' else a '1' . Are you accessing the previous values in GetBgColor by passing the number inside the square brackets? is GetBgColor a serie?
This is a serie and the key is the "nz". But I can't tell you any more the though process behind this script, because it's 2 years ago that I coded it, sorry.