Moving average Display

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

    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
    Stocks008Stocks008
    Participant
    Average

    Thank you I appreciate it! It works. 🙂

    #99323 quote
    GraHalGraHal
    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.
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 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 GraHalGraHal
7 years, 4 months ago.

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