Moving average displayed at certain time/points

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #223541 quote
    robert123robert123
    Participant
    Master

    Hi all,

    I wonder if any of you might be able to help me.? Is it possible to have a moving average appear from (x) point to (y) point on the chart, ideally this would be executed from a prompt.

    I would be grateful for any help.

    Many thanks,

    Robert

    #223546 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can select the date interval to display a custom indicator:

    ONCE FromDate = 20231028
    ONCE ToDate   = 20231107
    Sma = average[20,0](close)
    r = 0
    g = 0
    b = 255
    t = 255
    IF (Date < FromDate) OR (Date > ToDate) THEN
       t = 0
    ENDIF
    RETURN Sma AS "Sma" coloured(r,g,b,t)
    #223552 quote
    robert123robert123
    Participant
    Master

    Thank you very much 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

Moving average displayed at certain time/points


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robert123 @robert123 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robert123robert123
2 years, 10 months ago.

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