Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Best way to set PrintTo as input property

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_PaulH
    replied
    Hello westofpluto,

    Thanks for your reply.

    State.DataLoaded.

    Leave a comment:


  • westofpluto
    replied
    You didn't answer the question.

    In which state is it safe to assume that the input properties have been set?

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    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

    Leave a comment:


  • westofpluto
    started a topic Best way to set PrintTo as input property

    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?

Latest Posts

Collapse

Topics Statistics Last Post
Started by voltation, Today, 04:32 PM
1 response
7 views
0 likes
Last Post NinjaTrader_ShawnB  
Started by coopgrafik, Today, 03:44 PM
2 responses
23 views
0 likes
Last Post coopgrafik  
Started by cionjay, Today, 02:36 PM
1 response
9 views
0 likes
Last Post NinjaTrader_Kate  
Started by onnb1, Today, 02:08 PM
1 response
10 views
0 likes
Last Post NinjaTrader_Jim  
Started by omermirza, Today, 01:15 PM
4 responses
20 views
0 likes
Last Post omermirza  
Working...
X