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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      30 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      16 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X