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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X