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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    167 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    88 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    128 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    208 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    185 views
    0 likes
    Last Post CarlTrading  
    Working...
    X