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 helpwanted, Today, 03:06 AM
        1 response
        7 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        7 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        5 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Working...
        X