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

Strategy placing entry on wrong bar

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

    #16
    Hi guys,

    I wanted to post sooner but couldn't because of the weekend site maintenance.

    I figured out the issue. If you look at the first condition I have, where I compare the two EMA values, you'll notice that it runs on a different data set (different time frame). This particular condition uses 60 minute bar data.

    All the other conditions run on 15 minute bar data. I had CalculateOnBarClose set to true, which means the strategy was waiting for the next hourly bar to finish before it could evaluate the entire condition set and place or not place the order.

    Thanks for all the help. Can't believe it took me 4 days to spot this!

    Comment


      #17
      PhillyD, thanks for letting us know, glad to hear you could find the cause.
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by llanqui, Today, 12:07 PM
      2 responses
      3 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by nleitman, Today, 11:46 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Salahinho99, Yesterday, 04:13 AM
      3 responses
      30 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by leojimenezp, 04-20-2024, 05:49 PM
      5 responses
      58 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by ntbone, 12-22-2022, 08:25 PM
      24 responses
      452 views
      0 likes
      Last Post MisterTee  
      Working...
      X