Daily SMA’s drawn on other charts

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #191193 quote
    efahmy
    Participant
    Average

    Anyone knows a code which can draw lines for daily SMA5, Daily SMA10, ..etc. on other charts with different time frames or ticks charts or range bars charts.

    Thanks

    #191225 quote
    robertogozzi
    Moderator
    Master

    There you go:

    Timeframe(Daily,UpdateOnClose)
    DailySMA10a = average[10,0](close)
    Timeframe(Daily,default)
    DailySMA10b = average[10,0](close)
    Timeframe(default)
    RETURN DailySMA10a AS "DailySMA10a",DailySMA10b AS "DailySMA10b"

    but you can only use this indicator with time-based charts, not ticks, range bars, etc…

    #191249 quote
    efahmy
    Participant
    Average

    Thanks mate

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

Daily SMA’s drawn on other charts


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
efahmy @efahmy Participant
Summary

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

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