Indicator open range price at 9am

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #151038 quote
    snow_onarsnow_onar
    Participant
    Senior

    Hello

    I need your help. I would like to draw a segment with the price at 9am (1min/5min/15min and 30min timeframe).

    If I am using the following indicator script I get the segment with a future (ex. DAX or NQ) but not with a stock (ex. SAP or Apple).

    What is wrong in my script ?

    Thanks for your help.

    DefParam CalculateOnLastBars = 1400 // one day (23h) when using 1min timeframe 
    
    IF time = 090000 then
    backgroundcolor (0,255,255,70)
    DRAWSEGMENT(barindex+1, close, barindex+120, close) coloured(255,255,0,255)
    //drawtext("   openprice9am    [#DAXhh#]",barindex-30,Daxhh,sansserif,bold,18)
    endif
    
    return
    #151049 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Are Apple and SAP open at 090000?

    #151050 quote
    snow_onarsnow_onar
    Participant
    Senior

    SAP is open at 09am(but 9am is exactly the opening minute). It is a Dax Stock.

    For US Stocks like AAPL i am using 153000.

    #151056 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    TIME is the time a candle closes, OPENTIME is when it opens but is not supported by ProScreener.

    At 090000 or 153000 there’s no candle closed yet, try adding 1 minute.

    snow_onar thanked this post
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

Indicator open range price at 9am


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
snow_onar @snow_onar Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 10 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 11/20/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...