Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLong(....) detailed

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

    EnterLong(....) detailed

    Hi,

    in EnterLong order
    how can I detailed the account SIM102 in an EnterLong ?

    Thanks

    #2
    Hello Pcomm69,
    Thanks for your note.

    To assist you further may I know what do you mean by "detailed".

    If you are trying to assign any particular account to the order then unfortunately you cannot do so. The account has to be selected while initializing the strategy from the strategy parameters dialog.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      OK

      so in Protected Override Void Initialize()
      can i add a line
      Account = SIM 102
      or something like that

      Comment


        #4
        Hello Pcomm69,
        Unfortunately not.

        You can however check for the account name and if it does not matches with your desired account you can disable the strategy.

        Code:
        if (Account.Name != Sim101)
        {
           Disable();
        }


        The account class is not officially supported and thus not documented.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        662 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        376 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X