Announcement

Collapse
No announcement yet.

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.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      82 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      43 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X