Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Changing ChartBars ShowGlobalDrawObjects Property Does Not Work
Collapse
X
-
Wow, another half-feature. It seems like everything I try to use to make the platform better turns into this kind of answer.
-
Hello aslane,
To follow up, it looks like this is expected based on the ChartBars object and how it works.
There is actually a note about this in general and not specific to ShowGlobalDrawObjects.
Warning: These are UI properties which are designed to be set by a user. Attempting to modify these values through a custom script is NOT guaranteed to take effect.
I look forward to being of further assistance.
Leave a comment:
-
Hello aslane,
Thank you for the question.
I will need to research this further to see if there is a way to propagate the change to the charts how you are expecting. I see that toggling this from an indicator will change the property as you described when it is run, but the chart requires an additional reload for the drawing objects to reappear. Once I have further details on this, I will reply back here.
I look forward to being of further assistance.
Leave a comment:
-
Changing ChartBars ShowGlobalDrawObjects Property Does Not Work
In an AddOn, I am toggling the value of ShowGlobalDrawObjects for the ChartBars object in the active workspace. The property takes the new value, but the Chart does not update using the new value. For example, if global drawings were being displayed, then after the toggle the drawings are still displayed but should not be displayed
I can verify in the DataSeries properties window that property was changed. Also, if I save the workspace and then restore it, the new value does take affect properly and the drawings are displayed correctly.
I have tried invalidating the visual to force a redraw, but that does not force the drawings to update. What can I do to force this property to properly take affect?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by techgetgame, Today, 11:42 PM
|
0 responses
7 views
0 likes
|
Last Post
by techgetgame
Today, 11:42 PM
|
||
Started by sephichapdson, Today, 11:36 PM
|
0 responses
1 view
0 likes
|
Last Post Today, 11:36 PM | ||
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,612 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
9 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
19 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
Leave a comment: