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

How flatten everything in a strategy

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

    How flatten everything in a strategy

    Hi NT8,

    What is the code for flatten everything in an account for a strategy? also, how do I print my Max Drawdown for a strategy. I am having trouble finding this in the help guide.

    IF(thing happens)
    {
    // code for flatten everything, all instruments, entire account;
    // Print(Code for max draw down);
    }


    thank you
    Last edited by Austiner87; 07-17-2022, 09:47 PM.

    #2

    Account.Flatten();

    Comment


      #3
      Moved Q to another post
      Last edited by Austiner87; 07-22-2022, 09:28 PM.

      Comment


        #4
        Moved Q to another post
        Last edited by Austiner87; 07-22-2022, 09:28 PM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by BIOK.NT, Yesterday, 02:18 PM
        2 responses
        10 views
        0 likes
        Last Post BIOK.NT
        by BIOK.NT
         
        Started by designer01, 03-03-2022, 04:36 PM
        2 responses
        193 views
        0 likes
        Last Post DerkWehler  
        Started by frenchFlorent, Yesterday, 11:26 AM
        4 responses
        14 views
        0 likes
        Last Post frenchFlorent  
        Started by jevillanueva7, 05-08-2023, 09:36 AM
        12 responses
        198 views
        0 likes
        Last Post jeronymite  
        Started by franatas, 02-23-2024, 02:01 AM
        2 responses
        14 views
        0 likes
        Last Post franatas  
        Working...
        X