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 rhyminkevin, Today, 04:58 PM
    4 responses
    52 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    50 views
    0 likes
    Last Post futtrader  
    Working...
    X