# Define the 50-day simple moving averagedef SMA50 = Average(close, 50);# Highlight background based on close vs SMA50AssignBackgroundColor( if close > SMA50 then Color.GREEN else Color.RED);
having trouble creating this:
want to have my ticker highlight green or red, pending on status relative to 50SMA - - - any thoughts ????
having trouble creating this:
want to have my ticker highlight green or red, pending on status relative to 50SMA - - - any thoughts ????