Daily SMA’s drawn on other charts

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

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

    Thanks mate

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

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 efahmyefahmy
4 years, 6 months ago.

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