Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orders not being submitted when CalculateOnBarClose is false

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

    Orders not being submitted when CalculateOnBarClose is false

    Hi, I am using a demo ZenFire feed with AMP systems. I have created a strategy which was working fine until I changed CalculateOnBarClose to false to see if I could sort out some timing submission problems.

    Historical orders are still being placed without a problem but the strategy does not seem to be placing 'live' orders anymore. I have checked the log and traceorders and there does not seem to be a problem.


    Any ideas?



    #2
    TrevorE, you would need to add Print statement and perhaps even visual confirmations (drawing arrows for example) so you could verify the conditions still work as you would expect in this changed scenario then.

    Are you calling any indicators in the strategy that use a hardcoded CalculateOnBarClose reference still in their Innitialize()? If yes, please remove completely and then retest setting this only from the calling strategy.

    Thanks

    Comment


      #3
      I am only using the system indicators, not any custom indicators. Indicators such as Bollinger, EMA etc should be ok? Or not?

      Comment


        #4
        Yes, Trevor correct - those not be affected anymore from the hardcoded COBC settings. Did you check with Prints that your conditions indeed evaluate as you expect with updates on each tick?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X