Moving average displayed at certain time/points

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #223541 quote
    robert123
    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
    robertogozzi
    Moderator
    Master

    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
    robert123
    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.

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 robert123
2 years, 2 months ago.

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