Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

accessing the cummulative chart data

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

    accessing the cummulative chart data

    after running an optimizer, when I get back some results, I can usually see a cummulation P&L graph. is there any way to access it during an optimization to build a custom optimization function ?

    for example, suppose I want to write a custom optimization fitness function some like this structure below, where I want to use the data from the Cummulative P&L chart


    public class MyOwnFunction : OptimizationType
    {
    public override double GetPerformanceValue(SystemPerformance systemPerformance)
    {
    foreach (xxx t in systemPerformance.yyy)
    {
    ... // do something
    }
    }

    }


    For example, hypothetically say, I want to rank results based on the stability of their sharpe ratio :

    calculate say this way - first get a time-series of a rolling 30 day sharpe ratio, and then use the metric/objective function of the optimization as the mean of rolling 30 day sharpe ratio divided by the standard deviation of rolling 30 day sharpe ratio.
    Last edited by uday12; 02-19-2016, 03:36 PM.

    #2
    Hello uday12,

    Thank you for your patience.

    If I understand this correctly, you mean the performance over all optimizations made. I am not aware of a means to pull this through in GetPerformanceValue() or any other method. You could write to an external file on each run and then read from that file.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    117 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    226 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    414 views
    0 likes
    Last Post CaptainJack  
    Working...
    X