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 rocketman7, Today, 01:00 AM
      0 responses
      1 view
      0 likes
      Last Post rocketman7  
      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
      74 views
      0 likes
      Last Post wzgy0920  
      Started by Kensonprib, 04-28-2021, 10:11 AM
      5 responses
      193 views
      0 likes
      Last Post Hasadafa  
      Working...
      X