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

run many strategies, in the same account name

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

    run many strategies, in the same account name

    Hello, I am developing a strategy that I need to run on several instruments and several different time frames, but I don't want to add Data Series into a single strategy, I want to run each one on a different Chart.

    But with the same account, then I must always Select the same account for all strategies.

    I am running a Filter indicating that if the Selected account is not equal to the account Included in the Strategy, then Return, but for some reason it ignores these lines and is considering the account PlayBack101, when I am in my kinetick connection​
    Attached Files

    #2
    Hello HGTrader,

    Thank you for your post.

    The Account.All collection is a collection of account objects in the database file for the platform. Although you may not be currently connected to it, the Playback101 account is part of your database and is found before Sim101 if you are looking for the first name that contains "101"
    For this reason, you may want to consider using the exact account name rather than looking for a name that contains 101, such as the following:
    Code:
    myAccount = Account.All.FirstOrDefault(a => a.Name == "Sim101");
    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X