Moving average value of 1 day ago

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

    Good morning guys, is there an easy way of calling up the value of a moving average from a day ago? So for example im looking at the 21 day Exponential moving average and would like to know where it was a day ago. Thank you for any help you can offer
    Best wishes

    #163192 quote
    VonasiVonasi
    Moderator
    Master
    timeframe (daily, updateonclose)
    avg = exponentialaverage[21](close[1])
    
    return avg

    Change UPDATEONCLOSE to DEFAULT if you want it to update more than once a day.

    Alfy thanked this post
    #163203 quote
    AlfyAlfy
    Participant
    Average

    Thanks you so much!

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

Moving average value of 1 day ago


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, 8 months ago.

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