Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by llanqui, Today, 03:53 AM
    0 responses
    4 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Working...
    X