Set timeframe (not length) for AverageTrueRange indicator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56352 quote
    leendertcloete
    Participant
    New

    Hi,

    I was wondering if there’s a way to set the timeframe (not length) of the AverageTrueRange indicator (see https://www.prorealcode.com/documentation/averagetruerange/).

    For instance, let’s say I am currently looking at a Daily chart. I would like to set my stop-loss to AverageTrueRange(Weekly)[14](close).

    Is this possible, and if so, how would I go about implementing it?

    #56363 quote
    robertogozzi
    Moderator
    Master

    It’s not possible at present, it will be when the Multi Time Frame (MTF) feature will be available around (?) mid 2018.

    You can try to work it out our by multiplying the daily ATR periods by 7 (since there are 7 days in a week)

     AverageTrueRange[98](close)

    but it will not return the same output as the weekly one!

    Roberto

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

Set timeframe (not length) for AverageTrueRange indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
8 years, 1 month ago.

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