trying to find the US open price

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253108 quote
    robert123
    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ález
    Moderator
    Master
    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
    robert123
    Participant
    Master
    Thanks, Ivan- I will give them a try. RR
    #253114 quote
    robert123
    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.

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 robert123
3 months, 1 week ago.

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