• 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

Historical & CalculateBarOnClose = false

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

    Historical & CalculateBarOnClose = false

    Does checking for Historical in a CalculateBarOnClose = false situation work?

    #2
    Hello,

    Thank you for the question.

    Yes this would still be the same with either CalculateOnBarClose set to true or false.

    you can test if a bar is historical or realtime by doing one of the following:

    This would be to check if a bar IS historical
    Code:
    if(Historical)
    {
    
    }
    This would be to check if a bar IS NOT historical or realtime.
    Code:
    if(!Historical)
    {
    
    }
    the difference would be the preceding exclamation point defining Not historical in the second example.

    Please let me know if I may be of additional assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fredfred, Today, 03:41 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by TraderYoda, Today, 03:33 AM
    0 responses
    0 views
    0 likes
    Last Post TraderYoda  
    Started by pjsmith, Today, 02:56 AM
    0 responses
    2 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Started by ntbone, Yesterday, 08:10 PM
    0 responses
    9 views
    0 likes
    Last Post ntbone
    by ntbone
     
    Started by chrislou, 08-28-2015, 03:27 AM
    14 responses
    2,882 views
    0 likes
    Last Post nkhoi
    by nkhoi
     
    Working...
    X