I’m using it to simply plot both daily and 5 day, 2 day moving averages and on a 3 minute chart. (Back in the day when I was successfully scalping forex, I used to always check the Yahoo charts using a 2 day moving average for the daily and 5 day period, to make sure I was trading on the right side of the short term trend).
I wanted to add a dotted line style to the SMA’s and also change the price line from black to blue and wondered how to do that as when I add something like style(dottedline,2) to the graph code:
Do you know why a working MTF indicator (using a 3 min default TF with 1 day and 5 day simple moving averages indicators) gives that warning “All timeframes in your code should be multiples of the timeframe used on the chart” (3 mins), if all I did was change a simple 2 day moving average to a 2 day exponential moving average?
Update, it’s not the exp average causing the issue. I even pasted in the working code I keep as a copy in Text Edit that was fine and it’s also giving me the same “All timeframes in your code should be multiples” warning?
Logged out, but now I’m back in the PRT platform is frozen. Had to force quit and re-log back in but it’s still slow, so I guess despite no orange warning triangles on the charts and good broadband I must have too many charts and indicators. You can delete these last two comments if you wish. Cheers.
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