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:
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 johnMoss, 03-04-2024, 01:53 PM
|
3 responses
46 views
0 likes
|
Last Post
by AndyM
Today, 06:13 PM
|
||
Started by algospoke, Today, 06:01 PM
|
0 responses
6 views
0 likes
|
Last Post
by algospoke
Today, 06:01 PM
|
||
Started by cre8able, Today, 05:53 PM
|
0 responses
8 views
0 likes
|
Last Post
by cre8able
Today, 05:53 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
24 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
32 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
Comment