Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

On Transition

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

    On Transition

    Can I call methods that download stuff from web sites and methods that loop through the historical data from the OnStateChange method State == State.Transition ?

    I need to get stuff done when all historical data have been loaded but before processing real time data.

    If not where should I put these methods ?

    Thanks

    #2
    Hello,

    Thank you for the question.

    In general if you are waiting for data to be loaded, you could use the DataLoaded state to know that the Data has been loaded. DataLoaded is called only once after all data series have been loaded. Following this state the Historical state should be run.

    You can certainly test with putting items like this in the various states, likely DataLoaded would be the earliest you could use to ensure the request is not sent when opening menus.

    With using these type of items, if you are doing requests synchronously you may see the user interface become sluggish or freeze during the request, so you may need to look into doing asynchronous requests as well. Unfortunately this would be outside what I can assist with but MSDN has many samples of web related syntax to get you started.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    124 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Yesterday, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Yesterday, 03:01 PM
    2 responses
    22 views
    0 likes
    Last Post helpwanted  
    Working...
    X