Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Replay-Connection and ExitClose

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

    Replay-Connection and ExitClose

    Hi,

    I tried to check the automatic OnExitExecution with the replay-connection.
    In live-trading the local-server time is used, so I have to synchronize it.
    Am I right?

    In replay-connection there is no automatic exit-handling (actual local time is 6pm).

    Is the local-time also used in replay-connection. This would clarify this behaviour.

    So, there is no way to test it, only in live-trading ...

    Thx,
    Gamba

    #2
    DarthTraderson, correct local PC time is used as reference and therefore daily synching recommended, in backtest it should take the bars time - which session definitions are you using?

    If you still see issues, try a manual end of day exit with -

    Code:
     
    if (ToTime(Time[0]) >= your exit time as int)
    {
    ExitShort();
    ExitLong();
    }
    PS: Nice blog, best of luck on the operation.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I'm using 3.30pm to 10.15pm for NQ and YM, but nothing happens in replay-connection. Hm .... don't know whay, but I think I will use the manual time exit then ...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by llanqui, Today, 08:32 AM
      1 response
      7 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by lollers, Yesterday, 03:26 AM
      1 response
      53 views
      0 likes
      Last Post lollers
      by lollers
       
      Started by Salahinho99, 05-05-2024, 04:13 AM
      7 responses
      62 views
      0 likes
      Last Post Salahinho99  
      Started by knighty6508, 05-10-2024, 01:20 AM
      4 responses
      30 views
      0 likes
      Last Post knighty6508  
      Started by OllieFeraher, 05-09-2024, 11:14 AM
      6 responses
      19 views
      0 likes
      Last Post OllieFeraher  
      Working...
      X