Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with using StrategyID

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

    Problem with using StrategyID

    I've got a strategy running in Delphi that executes using Ninja Trader's ATI. The order statements work fine without my including a strategyID in the statement. But when I use a string for the strategyID I get the following error in the diagnostics tab.

    ERROR: OIF, 'PLACE;Sim101;ES 06-09;BUY;1;LIMIT;878.75;0;DAY;;ES 06-09-ES #F-1-233-I 4.200-40-27-20090526-081010-LE-Limit;;ES #F-1-233-4.200-40-27' strategy id 'ES #F-1-233-4.200-40-27' does not exist

    I'm not clear about why the order shouldn't execute. Any thoughts?

    Here's my order statement code.

    NJ_result := Command( 'PLACE',
    NinjaTraderTradeAccount,
    OrderSymbol,
    'BUY',
    TradeSize,
    'LIMIT',
    TriggerLevel,
    0, 'DAY', '', ThisOrderID, '', SystemInstanceString );
    Last edited by OregonReboot; 06-03-2009, 09:46 AM.

    #2
    Please try using a strategy if you wish to provide a strategy ID.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Please try using a strategy if you wish to provide a strategy ID.
      Hi Josh,

      The problem with that is that I wish to set the STop and Target Orders using ATI. It appears that a Strategy cannot be created without creating ATM established Stop and Targets.

      I'd like to create the StrategyID in order to be sure to reference the right entry order fill in subsequent order statements.

      Thoughts?

      Comment


        #4
        StrategyID is for use with the ATM strategy. I suggest you keep track of your entries via the order ID instead.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        88 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        31 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        34 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        69 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X