Can someone code a little indicator that waits for 2 moving averages (that the user chooses in the inputs) to cross.
And IF they stay crossed for a certain number of bars (that the user chooses in the inputs) the background changes colour (maybe blue background for when the averages are crossed up for x number of bars, and red when the averages are crossed down for x number of bars)
Once the averages first cross back, the background goes back to normal again, waiting for the conditions to be met again
so IF x moving average is above Y moving average and has been for X amount of bars, color background green
When they cross back background goes back to normal
And IF they stay crossed for a certain number of bars (that the user chooses in the inputs) the background changes colour (maybe blue background for when the averages are crossed up for x number of bars, and red when the averages are crossed down for x number of bars)
Once the averages first cross back, the background goes back to normal again, waiting for the conditions to be met again
so IF x moving average is above Y moving average and has been for X amount of bars, color background green
When they cross back background goes back to normal