Moving average value of 1 day ago

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #163187 quote
    Alfy
    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
    Vonasi
    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
    Alfy
    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.

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 Alfy
4 years, 11 months ago.

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