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

Portfolio Risk Manager

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

    Portfolio Risk Manager

    Hi,

    I'm sure this has been asked a million times. But I'm looking to run just say 10 different strategies for 10 different instruments. Has somebody created a separate add-on for NT7 that can manage total exposure by all strategies? Or is it possible to be created by a developer if someone made a separate script that integrates into NT7? For instance, if each strategy is trading 1 contract and I want to limit my maximum contracts in the market at any given time to 5...but all 10 strategies want to be in the market, is there something that can control strategy entry signals on a first come first serve basis? Or if I'm in a drawdown on the day, can there be set limits on the max daily drawdown for the basket of 10 strategies, not just individual strategies? Or functionality if account margin is below a certain level among all strategies, to not accept any new entries. Thanks.

    #2
    Hello dirkdiggler,

    Thank you for writing in.

    It is most certainly possible to keep track of the number of contracts each strategy has entered and assign this to a variable that is available to all strategies. This can be done within the UserDefinedMethods partial Statregy class with a static variable.

    You can then utilize this variable in a condition to check how many contracts have already been entered and to not enter or enter based on this value.

    You can obtain the draw down with the DrawDown property on the TradesPerformance object, though this will need to be obtained from each strategy: http://ninjatrader.com/support/helpG.../?drawdown.htm

    You would be able to access various account information by utilizing the GetAccountValue() method and passing a particular AccountItem object: http://ninjatrader.com/support/helpG...countvalue.htm
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    213 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    544 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    12 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    7 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Working...
    X