Capture variables of highest high?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #134540 quote
    robdav
    Participant
    Veteran

    I’m trying to capture the time, date and the barindex of the highest candle in a specific period using

    HighCheck = Highest[20](High)

    How can I do this please?

    Thanks again, Rob

    #134542 quote
    Vonasi
    Moderator
    Master

    Use a loop.

    HighCheck = Highest[20](High)
    
    for a = 0 to 19
    if high[a] = highcheck then
    mydate = date[a]
    mytime = time[a]
    mybarindex = barindex - a
    break
    endif
    next
    robdav and Nicolas thanked this post
    #134543 quote
    robdav
    Participant
    Veteran

    Perfect, thanks again Vonasi.

    #134572 quote
    GraHal
    Participant
    Master

    Vonasi code above added as Log 221 here …

    Snippet Link Library

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

Capture variables of highest high?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

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

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