Capture variables of highest high?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #134540 quote
    robdavrobdav
    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
    VonasiVonasi
    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
    robdavrobdav
    Participant
    Veteran

    Perfect, thanks again Vonasi.

    #134572 quote
    GraHalGraHal
    Participant
    Legend

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

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 GraHalGraHal
6 years, 4 months ago.

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