Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get the open price for all days in the chart at a specific hour.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get the open price for all days in the chart at a specific hour.

    Hello,

    I am trying to get the opening price of everyday at 9:30 for E-mini. Unfortunately CME data only give the open price at 16:01 or 18:00 which is about the same price as previous close.

    Anyone know if there is a tool in NT to do that or some code already available somewhere or even a website?

    Thank you

    #2
    Hello frankduc,

    Thanks for your post.

    Something to consider is creating a class-level Series<double> variable, making a Time Comparison condition that checks if the current Time is 9:30 AM, and saving the Open[0] price to the Series<double> variable inside that condition.

    The variable could be referenced later in the script for other conditions or actions.

    See this help guide page about creating Time Comparisons: https://ninjatrader.com/support/help...imeComparisons

    This help guide page contains information about accessing the Open price: https://ninjatrader.com/support/helpGuides/nt8/open.htm

    Review this help guide page about Series<double> variables: https://ninjatrader.com/support/help...t8/seriest.htm

    And, see this help guide page about Time: https://ninjatrader.com/support/help...eries_time.htm

    Please let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    92 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    122 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X