Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Event trigger on Data Series Visual change
Collapse
X
-
Event trigger on Data Series Visual change
Is there an event trigger to detect when a user changes a visual property of a Data Series? (like the "Center price on scale" for example) It appears that when those visual properties are changed it does not trigger OnStateChange()Last edited by martyn73; 02-28-2019, 04:45 PM.Tags: None
-
Yes, that's what I'm doing. I have added a custom checkbox on the chart trader panel to set this property value. But when you change the value from the data series window the OnStateChange does not trigger so I can't update my custom checkbox right away.
Right now I have added the code below in the OnRender method which still can cause a delay of the checkbox updating. And it's probably not the best place to put this logic either.
if(ChartBars != null)
{
if (ChartBars.Properties.CenterPriceOnScale)
{
if(this.cbCenter != null)
if (this.cbCenter.IsChecked == false)
this.cbCenter.IsChecked = true;
}
else
{
if (this.cbCenter != null)
if (this.cbCenter.IsChecked == true)
this.cbCenter.IsChecked = false;
}
}
Is there anything else I can monitor when visual properties in the data series windows are updated?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
82 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
43 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
56 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment