Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to know if is a historical order or a real time order?

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

    How to know if is a historical order or a real time order?

    Hi

    I need to put a counter for realtime order launched by my strategy.
    When I activate it with a chart historical, the strategy is counting all the orders made.
    How to start counting with the real time orders?

    Thank you



    #2
    Hello ninjo,

    You could add a condition checking the state and only count when you are in realtime.

    Code:
    if(State == State.Realtime)
    {
    
    }
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by BeachTrader11807, Today, 01:14 PM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by futureszone, Today, 06:09 PM
    0 responses
    5 views
    0 likes
    Last Post futureszone  
    Started by futureszone, 02-07-2025, 02:48 AM
    2 responses
    21 views
    0 likes
    Last Post futureszone  
    Started by cutzpr, Today, 05:24 PM
    0 responses
    5 views
    0 likes
    Last Post cutzpr
    by cutzpr
     
    Started by Ezequiel40, Today, 05:23 PM
    0 responses
    7 views
    0 likes
    Last Post Ezequiel40  
    Working...
    X