Since the plots and lines are persisted for performance reasons, I would expect you to need to add a fresh instance of your study to see any compiled changes included.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Scaling Plots on a New Panel
Collapse
X
-
Hi Will, correct that would need to go into Initialize(). Does the Add line also have transparent color, would you outcome change if you just set it to the Charts background color instead?
Since the plots and lines are persisted for performance reasons, I would expect you to need to add a fresh instance of your study to see any compiled changes included.
-
Hi Bertrand,
I did try setting the add line to a colour other than transparent and it didnt make any difference. I did manage to work out that the line is persistent, although I didnt realise that it was for performance, nor that it is meant to work that way.
The only way I have been able to get it to work properly is by doing both the Add line (transparent works) as well as drawline() with at least one end of the Drawline also on zero. I suspect at this point that with the add line only there is something strange happening with the autoscaling. I noticed that doing a single drawline() from zero only worked until that line moved off the left of the chart, then the whole plot jumped down again. My guess is that something like that is happening when only the add line is present.
Will.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment