Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Current day OHL

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

    Current day OHL

    ||| SORRY FOR DOUBLE POST |||
    Greetings,

    I am using a hidden 24x5 data series to show the midnight open of NQ (neither here, nor there).

    Just wondered if there is a way to modify the default NT8 indicator to only show the current day, not show every day prior as well?

    Click image for larger version  Name:	CdOHL.png Views:	0 Size:	153.0 KB ID:	1288400
    Last edited by dwbstreet; 01-27-2024, 05:57 PM.

    #2
    Just to clarify, I am aware that I can add an additional hidden data series with a "Days to Load" of 1 to accomplish this (link the indicator to this data series)... but this seems like an unnecessary use of cpu resources. Thanks in advance if anyone can assist.

    Comment


      #3
      Hello dwbstreet,

      Thanks for your notes.

      To clarify, are you wanting to program your own custom indicator or are you looking for an existing solution using the NinjaTrader Current Day OHL indicator?

      The Current Day OHL indicator that comes with NinjaTrader would plot the current day OHL values on the chart for each day, not only for the current day.

      The solution you provided would be the correct workaround for accomplishing this with the Current Day OHL indicator that comes with NinjaTrader.
      <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


        #4
        Thanks so much for your response Brandon.

        Was wanting to program my own custom indicator that referenced midnight EST and only plotted 1 "Days to Load," so I do not have to have any additional data series.

        Comment


          #5
          Hello dwbstreet,

          Thanks for your notes.

          You would need to add some filtering logic to prevent a value for an indicator's dataseries to be set. Since NT sessions can only be defined within a calendar day, you could try doing something like:

          if (Time[0].Date == DateTime.Now.Date)
          Values[0][0] = CurrentDayOHL().CurrentOpen[0];

          Where Values[0][0] is the first plot added to the script and CurrentDayOHL().CurrentOpen[0] is the CurrentDayOHL CurrentOpen plot value being assigned to the plot.

          The above code would only assign a value to the plot from midnight to the current bar on the current session so the plot would only appear on the current day.​
          <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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          344 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X