Moving average Display

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #99301 quote
    Stocks008
    Participant
    Average

    Good day,

    I would like to display a moving average only on the last 6 bars only. I used “calculateonlastbars” but the longer period MA’s do not display the actual values. I just want to know how this can and should be done..if possible?

    thank you,

    kind regards.

    Justin

    #99305 quote
    robertogozzi
    Moderator
    Master

    Try this (not tested):

    Defparam drawonlastbaronly=true
    Avg = average[100]
    For i = 0 to 5
       DRAWSEGMENT(barindex[i],Avg[i],barindex[i+1],Avg[i+1])
    Next
    Return
    #99308 quote
    Stocks008
    Participant
    Average

    Thank you I appreciate it! It works. 🙂

    #99323 quote
    GraHal
    Participant
    Master

    I added to here

    Snippet Link Library

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

Moving average Display


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Stocks008 @jd008 Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by GraHal
6 years, 8 months ago.

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