Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session Times For Live Stratergies.

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

    Session Times For Live Stratergies.

    When I setup a new strategy in NT it seems to ignore the session start/end settings. For example if I set my session interval to 12:30AM - 08:00AM when I start the strategy at 4:00PM it starts trading immediately, am I missing something here?

    #2
    The strategy processes the historical data part first (to e.g. sync indicators) before it goes live. You could code something like:
    Code:
    if (Historical)
        return;
    to prevent this.

    Please see related docs for details.

    Comment


      #3
      Can I access this property in OnMarketDepth?

      Comment


        #4
        Any of the documented NinjaScript properties/methods is accessible in any of documented NinjaScript event handlers, unless you find a explicit restriction on the docs of this property/method.

        -> yes, you can. However, OnMarketDepth would only be triggered live anyway (see docs).

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        27 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 04-23-2024, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        193 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,235 views
        0 likes
        Last Post xiinteractive  
        Working...
        X