Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

opening price + formula to print horizonal line

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

    opening price + formula to print horizonal line

    Hello, i have been using the opening price indicator and would like a way to add a math formula to the opening price and print it as a horizonal line but do not understand a way to do it. If anyone can help me that would be great. Here is the indicator that i am using: Opening Price (R1) - NinjaTrader Ecosystem

    #2
    Hello kass2112,

    Thanks for your post.

    To modify the OpeningPrice indicator you linked to, you could open a New > NinjaScript Editor window, open the Indicators folder, and double-click on the 'OpeningPrice' indicator file you mentioned.

    Then, you could program your custom calculations into the indicator script and call the Draw.HorizontalLine() method to draw a horizontal line on the chart at a specified value.

    See the help guide documentation below for more information.

    NinjaScript Editor: https://ninjatrader.com/support/help...nt8/editor.htm
    Draw.HorizontalLine(): https://ninjatrader.com/support/help...zontalline.htm
    <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

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    636 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    568 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    571 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X