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
Best way to set PrintTo as input property
Collapse
X
-
Best way to set PrintTo as input property
Is there a preferred way to set PrintTo as an input property? In OnStateChange, it looks like at least some states call OnStateChange before the property is actually read from the UI. For example, we set default values for properties in state SetDefaults, so the input properties are not read by that state. So in which states can we assume that the input properties have indeed been read, ie in which states do we know that the code is using the user-selected value for a property rather than the default value?
Tags: None
-
Hello westofpluto,
Thanks for your post.
Please see the help guide for the OnStateChange() method that describes the states and what occurs or can be done in each state:https://ninjatrader.com/support/help...tatechange.htm
Here is a link to the help guide for the correct usage of PrintTo: https://ninjatrader.com/support/help...8/?printto.htm
Paul H.NinjaTrader Customer Service
-
You didn't answer the question.
In which state is it safe to assume that the input properties have been set?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by timmbbo, Today, 08:59 AM
|
1 response
2 views
0 likes
|
Last Post Today, 09:16 AM | ||
Started by KennyK, 05-29-2017, 02:02 AM
|
2 responses
1,281 views
0 likes
|
Last Post
by marcus2300
Today, 09:13 AM
|
||
Started by fernandobr, Today, 09:11 AM
|
0 responses
3 views
0 likes
|
Last Post
by fernandobr
Today, 09:11 AM
|
||
Started by itrader46, Today, 09:04 AM
|
1 response
6 views
0 likes
|
Last Post Today, 09:10 AM | ||
Started by bmartz, 03-12-2024, 06:12 AM
|
5 responses
33 views
0 likes
|
Last Post Today, 08:34 AM |
Comment