Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Account code in Initialize area

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

    Account code in Initialize area

    Hello,

    I need to be able to specify account name in the code rather than going into parameter and set specific account up. Like "Account = Sim101;" in the initialize part. Is it possible?

    Thanks,
    -traderjh

    #2
    traderjh, you could unfortunately not hardcode in an account - however as further safeguard you could return for exampe out of OnBarUpdate() if the account selected did not match a specific one -

    if (Account.Name != "Sim101") return;

    Comment


      #3
      Great.

      Is it possible for NT7 to be linked to multiple accounts? If so, is there a special way to code to work with accounts?

      Thanks again,
      -traderjh

      Comment


        #4
        Generally NT7 could create so called Account Groups, however you could not run NinjaScript's on those unfortunately.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        63 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        54 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        61 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        48 views
        0 likes
        Last Post CarlTrading  
        Working...
        X