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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X