• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Identifying live vs. simulated account

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

    Identifying live vs. simulated account

    I want to change the color of objects that my indicator generates when the active account is a live account. What is the best way to accomplish this? Currently I have:

    if(activeAccount.Provider != Provider.Simulator && activeAccount.Provider != Provider.Playback){

    }

    #2
    Hello martyn73,

    Thank you for the post.

    That looks like it should cover the general simulator situations where you would have a simulation account in use, this should also report for a sim account being used. Are you seeing any issues with this in your use cases or were you just checking if this would be valid?

    There is not a specific recommendation in the help guide surrounding checking for this, what you have seems to be sufficient unless you have found a case where it is not and we could explore that directly.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by augustfay, Today, 10:46 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by neilzep, Today, 11:16 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by thebanik, Today, 10:18 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Started by Hyper, Yesterday, 09:45 AM
    11 responses
    56 views
    0 likes
    Last Post bltdavid  
    Started by TAJTrades, Today, 09:55 AM
    0 responses
    8 views
    0 likes
    Last Post TAJTrades  
    Working...
    X