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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X