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 Waxavi, Today, 02:10 AM
    0 responses
    3 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    7 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X