This is a script I made which uses 6 moving averages to decide how to color the trend. These SMA are configured to run on 4H, 6H, 8H, 12H, 18H and 1D timeframes. The script will check how many of them are bullish or bearish.
I made this script to reference the current market environment while working on the lower time frames. You are free to use it as a filter in any script as long as you mention me in the description of it.
.
.
.
.
.
.
.
.
GREEN:
If many SMAs are bullish, the snake will be completely green. If there is a green glow around it that means that all SMAs are bullish.
RED:
If many SMAs are bearish, the snake will be completely red. If there is a red glow around it that means that all SMAs are bullish.
PURPLE:
Purple will be used to indicate that some SMAs are not in the trend the snake was going.
MID:
The small blue line in the middle of the snake means that the 1day trend is bullish.
The small magenta line in the middle of the snakes means that the 1 days trend is bearish.