Highest high starting after a period

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #163391 quote
    Finning
    Participant
    Veteran

    Hi there,

    I am trying to work out how to do the highest high,  but with the highest high not starting from [0 to 10], but from [10 to 20], for example.

    What I mean is –

    For bars 0 to 10 previous, the highest high would be

    HH = highest[10](high)

    This is the usual formula.

    But – what I need – is how do I then find the highest high from bars 10 previous to bars 20 previous, as a separate number.

    something like:

    HH2 = highest[10 to 20](high)

    Would like to have HH and HH2 as two separate numbers to compare.

    Any help with how to do this?

    Thanks,

    Finning.

    #163402 quote
    robertogozzi
    Moderator
    Master

    There you go:

    HH = highest[11](high[10])

    it’s eleven bars, 10 to 20.

    Finning thanked this post
    #163404 quote
    Finning
    Participant
    Veteran

    Hi Roberto,

    that seems to work!

    Thanks,

    Finning

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

Highest high starting after a period


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Finning @finning Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Finning
4 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/08/2021
Status: Active
Attachments: No files
Logo Logo
Loading...