Set timeframe (not length) for AverageTrueRange indicator

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

    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.
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

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 robertogozzirobertogozzi
8 years, 9 months ago.

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