trying to find the US open price

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253108 quote
    robert123robert123
    Participant
    Master

    I am trying to find the US open price, the same code to be used on the 1m and the 30m chart. I find there is a difference in price. Could one of you geniuses guide me as to how I get them to be the same, please?

    Below is the code I’m using.

    if time=093000 then

    US=open

    endif

     

    Many thanks,

    RR

    #253109 quote
    Iván GonzálezIván González
    Moderator
    Legend
    Hi! I'll give you a few examples. It depends on whether you trade stocks or futures/forex.
    if opentime>=093000 and day<>day[1] then
       us1=open
    endif
    
    if intradaybarindex=0 then
       us2=open
    endif
    
    if opentime>=093000 and opentime[1]<093000 then
       us3=open
    endif
    
    return us1, us2, us3
    #253113 quote
    robert123robert123
    Participant
    Master
    Thanks, Ivan- I will give them a try. RR
    #253114 quote
    robert123robert123
    Participant
    Master
    Prefect -Again, thank you, Ivan
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

trying to find the US open price


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robert123 @robert123 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robert123robert123
11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/28/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...