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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
182 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
334 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
258 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
358 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
188 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment