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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X