Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Extend a line from an indicator
Collapse
X
-
Extend a line from an indicator
I have drawn a line from point A to point B from my indicator. I want to extend line (identified by it's tag) to the current bar. Is it possible?Tags: None
-
Hello higher.high,
Thank you for writing in. Yes this is absolutely possible.
You simply need to call the DrawLine method again using the same tag.
For example:
Please let me know if I may be of further assistance.Code://Your original line where barA is the closest bar to the current bar and barB is the furthest back if(!drawn){ DrawLine("myLine", barA, Close[0], 10, barB, Color.Red); drawn = true; } //Extend the same line if(drawn) { DrawLine("myLine", 0, Close[0], 10, barB, Color.Red); }Michael M.NinjaTrader Quality Assurance
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
62 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment