Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting additionnal figure from the optimizer

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

    Getting additionnal figure from the optimizer

    Hello

    I am uzing the optimiser to generate automatically several backtests. At the end of a run the strategy script is exporting the performance of the run (performance All trades) to a mysql database for additional analysis using a statistical tool
    I am missing some information, mainly profit in risk (profit/ (entry point - Stop))

    I could calculate this value after the completion of each trade and clean the variable at the end of each backtect but i am not sure it will work considering the fact that the optimizer is generating several threads Will my computation be executed in the thread or not.

    Please give me your thought about that, i don't want to spend time developping the solution to discover at the end that it could not work due to multithreading.

    Better ideas are also welcomed

    Many thanks in advance

    Lionel

    #2
    Hello Lionel,

    I am not sure how you are writing to your custom mysql file but using the Optimizer it is going to run several threads at once so it is possible that the threads are conflicting that may throw off your results.

    It is not supported by you may use the following to disable multithreading when running a Backtest that may help.

    Code:
    protected override void Initialize()
    {
            MultiThreadSupport = false;
    }
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    6 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Working...
    X