Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Code for flatten instrument and print max draw down, thank you

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

    Code for flatten instrument and print max draw down, thank you

    Hi Nt8, can you please help with this request, thank you!

    in short; how can I fix this code to work to flatten an instrument: (it's not working)

    Account.Flatten(new [] { Instrument.GetInstrument("MNQ 09-22") });

    and what is the code for max draw down

    // Print(Code for max draw down);


    thank you!!

    #2
    Hi Austiner, thanks for posting. Check the Log tab of the Control Center for any errors about the flatten command. This can help to find out why this code is not working. The Drawdown is a feature of a TradeCollection object. All the values in the SystemPerformance can be found here:

    https://ninjatrader.com/support/help...ancevalues.htm

    Kind regards.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X