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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        316 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        202 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        187 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        282 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        234 views
        0 likes
        Last Post CarlTrading  
        Working...
        X