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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X