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:	302
Size:	24.2 KB
ID:	1251335

      Comment

      Latest Posts

      Collapse

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