Select a range of bars

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

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

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 VonasiVonasi
6 years, 1 month ago.

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