Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Need help with Draw.HorizontalLine
Collapse
X
-
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?
Tags: None
-
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.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment