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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      21 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      10 views
      0 likes
      Last Post cre8able  
      Working...
      X