Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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;
    BertrandNinjaTrader Customer Service

    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.

        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Tin34, Today, 03:30 AM
        2 responses
        15 views
        0 likes
        Last Post Tin34
        by Tin34
         
        Started by sastrades, Yesterday, 09:59 AM
        2 responses
        28 views
        0 likes
        Last Post brucerobinson  
        Started by ETFVoyageur, Today, 12:52 AM
        1 response
        14 views
        0 likes
        Last Post Leeroy_Jenkins  
        Started by lollers, Today, 03:26 AM
        0 responses
        10 views
        0 likes
        Last Post lollers
        by lollers
         
        Started by aliyahany, Today, 03:16 AM
        0 responses
        2 views
        0 likes
        Last Post aliyahany  
        Working...
        X