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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X