Good afternoon guys, is there any way in PRT to plot the 10 week moving average on the daily chart using for example the average price of the last 10 fridays as opposed to using the 50d day Moving average.
Using MTF support should help you achieve your goal:
1
2
3
4
Timeframe(Weekly,UpdateOnClose)//or Timeframe(Weekly,Default) if you need it live
AvgW=average[10,0](close)
Timeframe(Default)//use this indicator on a Daily chart
ReturnAvgWAS"Weekly Average"
With UPDATEONCLOSE the Daily chart will be updated AFTER the weekly candle closes, so you will see the Friday closing price of the weekly SMA10 plotted for 5 days starting on Monday next week.
With DEFAULT the daily chart will plot the weekly SMA10 while the weekly chart is forming, so that both will only match at the closing on Friday night.
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