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 mattbsea, Today, 05:44 PM
    0 responses
    3 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    31 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    20 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Working...
    X