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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X