10 week moving average on daily chart

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #173881 quote
    AlfyAlfy
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    AlfyAlfy
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 AlfyAlfy
5 years, 2 months ago.

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