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

Excel to ninja

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

    Excel to ninja

    Hello

    I have values ​​prices in an excel spreadsheet.

    A1=2110,70
    B1=2140,70

    How Can I move automatically those prices from excel to ninja to lines on a chart?

    Is there any indicator?

    Thank you

    #2
    Hello anmir55,

    Thanks for your post.

    To automate line creation on the chart based on values in excel, you would need to create an indicator that would read the values from a file and then create the lines on the chart. Here is a link to a reference sample on how to read data from a file: http://www.ninjatrader.com/support/f...ead.php?t=3476 In addition you would use the DrawLine() method: http://www.ninjatrader.com/support/h...l?drawline.htm

    You might also want to search through the forums file sharing threads to see if there might be another indicator that you could use as a starting point for creating your own.

    Alternatively, as that seems like a lot of work for two line, you could use the indicator priceAlert in your ninjaTrader and enter those values into two instances of the indicators to not only draw the lines but to provide automatic alerting ability. Note that if your values change each day, you can simply move the lines directly on the chart to the new values. Moving the priceAlert line will rearm it as well.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gemify, 11-11-2022, 11:52 AM
    6 responses
    803 views
    2 likes
    Last Post ultls
    by ultls
     
    Started by ScottWalsh, Today, 04:52 PM
    0 responses
    3 views
    0 likes
    Last Post ScottWalsh  
    Started by ScottWalsh, Today, 04:29 PM
    0 responses
    7 views
    0 likes
    Last Post ScottWalsh  
    Started by rtwave, 04-12-2024, 09:30 AM
    2 responses
    22 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    70 views
    0 likes
    Last Post tsantospinto  
    Working...
    X