Using another chart period in Indicator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #212668 quote
    phanzphanz
    Participant
    Average
    PRT v12 allows user to plot 2 of the same indicator but using another period.  Unfortunately, V11 does not come with that, at least not in the setting.  I am wondering if anyone has written a code to mimic that functionality in V11.  The indicators that I am interested in are the common ones like Stochastic, SMA, EMA, MACD and ATR. Thank you.
    #212672 quote
    GraHalGraHal
    Participant
    Master
    You can fudge it by using 2 different periods, eg MA20 on 5 min TF is same as MA100 on 1 min TF. Hope that makes sense?
    #212675 quote
    JSJS
    Participant
    Master

    If I understand your question correctly, you can use a simple code (in your indicator) with which you record the different time frames…

    (I think up to seven different time frames?)

    TimeFrame(5 minutes)
    S5=Average[14,0](Close)
    
    TimeFrame(15 minutes)
    S15=Average[14,0](Close)
    
    Return S5 as "S5" Coloured(255,0,0), S15 as "S15" Coloured(0,255,0)
    
    GraHal thanked this post
    Scherm­afbeelding-2023-04-02-om-21.50.54.png Scherm­afbeelding-2023-04-02-om-21.50.54.png
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

Using another chart period in Indicator


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
phanz @phanz Participant
Summary

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

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 04/02/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...