I’m trying to write and indicator which will, for example, add 30 moving averages to a chart in sequence from 1 to 30 but I’m not quite how to code this.
Can someone please help? My attempt below obviously doesn’t like the RETURN statement in the FOR NEXT loop.
Because, it is not possible to draw curve in the past, I used segments instead. You can choose the MA’s first period to last period to be plotted. First time I made a Guppy / Fishnet indicator like this 🙂
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue