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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        148 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        284 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X