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 tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    67 views
    0 likes
    Last Post tsantospinto  
    Started by cre8able, Today, 03:20 PM
    0 responses
    6 views
    0 likes
    Last Post cre8able  
    Started by Fran888, 02-16-2024, 10:48 AM
    3 responses
    48 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by martin70, 03-24-2023, 04:58 AM
    15 responses
    114 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by The_Sec, Today, 02:29 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X