Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Storing Byte Default Value in Template
Collapse
X
-
Storing Byte Default Value in Template
I have a basic question about the attached indicator. I have a byte value that I want to default to 55 and save in a template that way. As the code stands every time I add the indicator to a chart the opacityvalue byte defaults to 0. The same thing happens if I load a chart template with this indicator. Even of the template is saved with a byte value of 55 the chart template loads and the byte is back to 0. Is there a setting I can tweak to fix this? Thank you.Tags: None
-
Hello jhowinvest,
Thank you for your inquiry.
It looks like you are specifying the type byte once more for Opacityshade in State.SetDefaults, which creates a new byte variable called Opacityshade that does not link with your public property.
Upon removing the type byte from Opacityshade in State.SetDefaults, your public property is now set to 55 by default.
Please, let us know if we may be of further assistance.Zachary G.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, Today, 06:46 AM
|
0 responses
8 views
0 likes
|
Last Post
by Mindset
Today, 06:46 AM
|
||
|
Started by M4ndoo, Yesterday, 05:21 PM
|
0 responses
14 views
0 likes
|
Last Post
by M4ndoo
Yesterday, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
15 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
82 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
48 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment