Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pre Market High & Low, and today's opening price indicators?

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

    #16
    Hello MathWiz,

    Thank you for your reply.

    Nope, the only difference would be that you'd see the plot extend to the currently forming bar if it's outside of the premarket time frame.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #17
      For anyone curious:

      Here is my solution, you need to create a Trading Hours Template (which I call “AH&PM”) that matches the after-hours / pre-market hours for which you seek data.

      This works by putting a thick yellow line 1 bar after the last closing bar on a daily bar chart, but it should work on other charts fine, too, although you may need to play with the Draw.Line formatting [the y start and end values as well as the width of the line).

      Hope this helps!


      else if (State == State.Configure)

      {
      AddDataSeries(Bars.Instrument.FullName, new BarsPeriod() { BarsPeriodType = BarsPeriodType.Minute, Value = 1440 }, "AH&PM");
      }

      . . . then in the OnBarUpdate section:

      Draw.Line(this, "PREMARKET", false, -1, Lows[1][0], -1, Highs[1][0], Brushes.Yellow, DashStyleHelper.Solid, 18);

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by trilliantrader, 04-18-2024, 08:16 AM
      4 responses
      18 views
      0 likes
      Last Post trilliantrader  
      Started by mgco4you, Today, 09:46 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by wzgy0920, Today, 09:53 PM
      0 responses
      10 views
      0 likes
      Last Post wzgy0920  
      Started by Rapine Heihei, Today, 08:19 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Rapine Heihei, Today, 08:25 PM
      0 responses
      10 views
      0 likes
      Last Post Rapine Heihei  
      Working...
      X