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 Stops / Position Sizing

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

    Portfolio Stops / Position Sizing

    Assuming you have multiple automated strategies across multiple instruments, how would one implement the following in NT7:

    a) Sizing algorithm where you don't take a trade in an automated strategy based on your current portfolio position (max portfolio exposure has been met)?

    b) Portfolio Stop - reduce exposure across strategies after a certain portfolio loss has been exceeded?

    #2
    Hello,

    To access your account value, you can use the GetAccountValue() method. This will give you real-time account value data, so you will need to track the changes within each session in each script that you run.

    http://www.ninjatrader.com/support/h...countvalue.htm

    Alternatively, you can also check trade performance within your script, to limit your strategy to a certain level of loss. We have a reference sample available that will show this in action:

    http://www.ninjatrader.com/support/f...ead.php?t=4084
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AdamDJ8, Today, 09:18 PM
    0 responses
    2 views
    0 likes
    Last Post AdamDJ8
    by AdamDJ8
     
    Started by knowmad, Today, 03:52 AM
    2 responses
    26 views
    0 likes
    Last Post knowmad
    by knowmad
     
    Started by ETFVoyageur, Today, 07:05 PM
    0 responses
    8 views
    0 likes
    Last Post ETFVoyageur  
    Started by Orion815, 05-02-2024, 08:39 AM
    2 responses
    18 views
    0 likes
    Last Post Orion815  
    Started by suroot, 02-25-2017, 04:43 AM
    11 responses
    2,553 views
    0 likes
    Last Post Zilvercat  
    Working...
    X