Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MID LINE Indicator for Emini ES ?

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

    MID LINE Indicator for Emini ES ?

    can someone guide me to the right place for MID LINE ( calculating 50% of the RTH session and plotting it as a line Like VWAP )
    Indicator on NT8 ?

    Thanks

    #2
    Hello saeed,

    Thanks for your post.

    Please clarify, are you wanting to make an indicator that plots the midpoint price between the current day high and low?

    If you are wanting to create a custom indicator that accomplishes this, you could use the AddPlot() method to add a plot to the indicator.

    Then, to calculate the midpoint price between the daily high and low you could add the CurrentDayOHL indicator CurrentDayHigh value and the CurrentDayLow value together and divide that by 2. That calculated value could then be assigned to the plot.

    For example:

    //OnStateChange() State.Configure section
    AddPlot(Brushes.Blue, "MidpointPricePlot");


    //OnBarUpdate section
    double midpoint = (CurrentDayOHL().CurrentHigh[0] + CurrentDayOHL().CurrentLow[0]) / 2;
    Value[0] = midpoint;


    See the help guide documentation below for more information and some sample code.

    CurrentDayOHL: https://ninjatrader.com/support/help...nt_day_ohl.htm
    AddPlot(): https://ninjatrader.com/support/help...t8/addplot.htm

    Below is a link to a forum post with helpful information about getting started with NinjaScript.
    https://ninjatrader.com/support/foru...040#post786040
    <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


      #3
      Saeed, you can use the Donchian Channel with a Period of 1 and Displacement of 1, then make the Upper and Lower means transparent. This wouldn't require any coding at all. Hope it helps! Click image for larger version

Name:	image.png
Views:	291
Size:	24.2 KB
ID:	1251335

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      651 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      577 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X