Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

start of real time test

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

    start of real time test

    Hi
    Sorry for advance, may be that it is a very simple issue, but I cant resolve it. There is a real time test, I start it from the stategies window. The messages appear in the output window show that the counting started before the enabling. For example I enabled the strategy at 2:00 PM, and I see, that it made executions before 2:00 PM. I want to make the first position after the start of the script. What can I do? (I hope that I could reveal my problem clearly)

    Best regards

    Akos

    #2
    Hello akkiss,

    From your description, it sounds like you do not want your script to be able to place orders historically.

    If so, you can a check for Historical to prevent orders from being made.

    For example at the top of OnBarUpdate add:
    if (Historical)
    return;

    Below is a link to the help guide on the Historical bool.
    http://www.ninjatrader.com/support/h...historical.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Dear ChelseaB

      Thank You so mutch the adequate response!

      Best

      Akos

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Tim-c, Today, 02:10 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Taddypole, Today, 02:47 PM
      0 responses
      2 views
      0 likes
      Last Post Taddypole  
      Started by chbruno, 04-24-2024, 04:10 PM
      4 responses
      50 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      10 responses
      399 views
      1 like
      Last Post beobast
      by beobast
       
      Started by lorem, Yesterday, 09:18 AM
      5 responses
      25 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X