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 doihaveto13, Today, 05:45 AM
    0 responses
    2 views
    0 likes
    Last Post doihaveto13  
    Started by giulyko00, 04-24-2024, 12:03 PM
    9 responses
    43 views
    0 likes
    Last Post giulyko00  
    Started by memonic, Yesterday, 01:23 PM
    2 responses
    25 views
    0 likes
    Last Post memonic
    by memonic
     
    Started by merc410, Today, 03:41 AM
    2 responses
    16 views
    0 likes
    Last Post merc410
    by merc410
     
    Started by sugalt, 04-30-2024, 04:02 AM
    2 responses
    13 views
    0 likes
    Last Post sugalt
    by sugalt
     
    Working...
    X