Select a range of bars

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #143372 quote
    christofferR
    Participant
    Average

    Hi,

    I’ve searched in the forum and tried a bunch of different things but cant seem to get it right.

    Im looking for a way to set an intervall of say 10 – 20 bars and get the highest and lowest from that intervall, the last 0- 10 should not be taken in consideration.

    Best,

    Christoffer

    #143377 quote
    robertogozzi
    Moderator
    Master

    There you go:

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

    that will scan bars 11,12,….20 (ten bars) starting from the 11th bar prior to the current one.

    The returned values are the same for the two lines.

    christofferR thanked this post
    #143392 quote
    Vonasi
    Moderator
    Master

    christofferR – Welcome to the forums…. however please re-read the few simple forum rules and make sure that you post in the correct forum with any future topics. I have moved your post to the ProBuilder forum as that is the place for indicator topics.

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

Select a range of bars


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/04/2020
Status: Active
Attachments: No files
Logo Logo
Loading...