Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help with Draw.HorizontalLine

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

    Need help with Draw.HorizontalLine

    I am not much of a programmer, I am trying to load numbers from txt file and then plot horizontal lines on the chart. Base on research and trial and error, I got as far as loading numbers using SampleStreamReader_NT8 file provided in older post. But it does not like any sort of horizontal line code. Even if I just copy and paste this line HorizontalLine myLine = Draw.HorizontalLine(this, "tag1", 4361, Brushes.Black); NT8 would not import the ninjascript. Do I need to include any libraries at the top?








    #2
    Hi flybuzz, thanks for posting. There is an example here that takes data from a text file and draws support/resistance lines:
    This indicator reads a comma‐separated values data file that contains support and resistance line data, and then plots those lines on a chart. Lines have a start time, an end time and a price. An empty end time means the line is still active and continues to draw as the chart progresses. There are some […]


    Please let me know if you have any questions on this.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 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