Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer - How to see the most profitable trade, even if it is negative

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

    Strategy Analyzer - How to see the most profitable trade, even if it is negative

    What is the correct setting/configuration when optimizing in the Strategy Analyzer if you want see if there was any trade for every stock in your stock symbol list?

    My goal is to see the most profitable trade that happened in the backtest, even if it is a negative number.

    If you optimize on “Max. net profit”, any stock that has all negative trades will show a “0.00%” return if the “Total net profit” column. The trades that did exist are hidden from view by the collapsed arrow by the stock name.

    If you don't expand the arrow, you would not know that a trade had triggered. This becomes unwieldy when backtesting hundreds of stocks.

    Thanks in advance.
    Last edited by ArmKnuckle; 12-19-2017, 02:56 AM.

    #2
    Hello ArmKnuckle,

    Thanks for opening the thread.

    When I run an optimization backtest for max net profit on the SP-500 instrument list, I don't see 0 values for Total net Profit except for instruments that have a Gross profit equal to Gross Loss. I also see a value for # of trades so I don't see anything misleading with the results. (See attached.) I will be happy to run an example backtest if you notice some results that look misleading.

    For your goal, I do not think you can accomplish seeing what the most profitable trade between all instruments is without using a custom performance metric. The provided performance metrics will tell you fitness information relating profit to loss or to a number of trades, etc. You only wish to know which instrument had the most profitable trade, disregarding other factors.

    I've included some information on the Performance Metrics we have available and our documentation on creating custom performance metrics. You may also view the example SampleCumProfit Performance Metric in the NinjaScript Editor for a working example. Custom Performance Metrics can be enabled from the Control Center under Tools > Options > General.

    Optimization Fitness Metrics - https://ninjatrader.com/support/help...ss_metrics.htm

    Performance Metrics - https://ninjatrader.com/support/help...ce_metrics.htm

    Please let me know if I may be of further assistance.
    Attached Files

    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
    135 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
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X