Hello ez2njoy,
This message is in regards to your PM to ScottJ about your formula error. You were getting an error on line 67 because your onAction3() function was actually inside onAction2(). The end brace for onAction2() was misplaced.
After fixing the code error, I changed a couple other things for you to make the study a little easier to read visually. Returning a price oscillator and moving averages to the same pane creates a bit of a scaling problem. So I removed the price oscillator and changed your conditions to paint the background green if the osc < 0 and maroon if it was > 0.
This message is in regards to your PM to ScottJ about your formula error. You were getting an error on line 67 because your onAction3() function was actually inside onAction2(). The end brace for onAction2() was misplaced.
After fixing the code error, I changed a couple other things for you to make the study a little easier to read visually. Returning a price oscillator and moving averages to the same pane creates a bit of a scaling problem. So I removed the price oscillator and changed your conditions to paint the background green if the osc < 0 and maroon if it was > 0.