Lowest Low and Date/Timestamp

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #60240 quote
    mr bluemr blue
    Participant
    Senior

    I am looking for a code snippet to identify the lowest low over a specific period – let’s say 200 bars and the function should return following 3 values:

    the value of the low candle

    the date when the low occured in format YYYYMMDD

    the time when the low occured in format HHMMSS

    has anybody already coded this or a hint, how to do this smart?

    many thanks in advance

    #60241 quote
    mr bluemr blue
    Participant
    Senior

    after having RTFM i coded following

     

    for i=0 to IntradayBarIndex do
    if low[barindex[i]] = DLow(0) then
    mydate = date
    mytime = time[barindex[i]]
    break
    endif
    next

    works for the moment. as I need to identify the low of the day with date/timestamp.

    if you have a smarter way, share it.

    GraHal and Juan Salas thanked this post
    #60248 quote
    NicolasNicolas
    Keymaster
    Legend

    There is no built-in instruction to find it, and you did it the good way. For future readers, we should say that your code snippet is made to identify the timestamp of the lowest bar in an intraday timeframe.

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

Lowest Low and Date/Timestamp


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
mr blue @marco_sala Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by NicolasNicolas
8 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/23/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...