Using another chart period in Indicator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #212668 quote
    phanz
    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
    GraHal
    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
    JS
    Participant
    Senior

    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.

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

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