10 week moving average on daily chart

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #173881 quote
    Alfy
    Participant
    Average

    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.

    Thanks in advance and best regards

    #173883 quote
    robertogozzi
    Moderator
    Master

    Using MTF support should help you achieve your goal:

    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
    Return AvgW AS "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.

    Alfy thanked this post
    #173887 quote
    Alfy
    Participant
    Average

    Thats just what i was looking for. Thanks once again Roberto

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

10 week moving average on daily chart


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Alfy @alfy Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Alfy
4 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/20/2021
Status: Active
Attachments: No files
Logo Logo
Loading...