Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2 strategies, one instrument, only one orders

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

    2 strategies, one instrument, only one orders

    Hi

    I am searching for reasons why a strategy did not place orders for one person, but did for another.

    I have two versions of a strategy, one uses EnterLongStop() and the other uses EnterLong() when the "stop" level is reached. The actions of each should be identical.

    However, when testing them both at the same time on a live demo account, only the one with EnterLongStop() executed orders. The other detected set-ups, but did not place orders when I expected it to.

    The version with EnterLong() did place orders correctly for a different person who ran that version only.

    All these tests were run at the same time with the same data / demo account provider.

    Is there potential conflict between order names? They both use the same naming scheme for orders.

    Could it be that the second strategy to place orders (EnterLong) doesn't because it thinks the position is already open?

    What else should I look for?

    Any help appreciated.

    Cheers
    Tony

    #2
    Hi Tony, thanks for the post - there should be no conflict since the strategy instances are run independent of each other - did you enable TraceOrders = true in the strategy where it would not submit as you would expect based on the conditions?



    Would the market order strategy backtest normally and issue trades at your levels?

    Are there any Log error noted in NT's Control Center right most tab, for example any incorrect formatted stop orders seen?

    Thanks,

    Comment


      #3
      Hi Bertrand

      I have worked out the cause and it was "user error."

      The version that did not place orders used the margin requirement to calculate number of contracts, but the user had not set the margin in the instrument manager. Consequently, it traded 0 contracts!

      Thanks anyway for your suggestions.

      Regards
      Tony

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      657 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      373 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      579 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X