Machine Learning in ProOrder ProRealTime

Forums ProRealTime English forum ProOrder support Machine Learning in ProOrder ProRealTime

Viewing 15 posts - 421 through 435 (of 455 total)
  • #146782

    Fantasio2020 whatever  number of variables you prefer and works for you.

     

    #146783

    looks like I got the difference between 200k & 50k fixed on the same strategy. If reset is used, the cycle should restart again too.

    One part will always be a bit doubtful, if reps 1  (ore more) is used, and in a backtest results is +0.01 and live -0.01 it can have on the impact on the rest of the strategy for value x & y.

    That’s why it’s important I guess to have a reset, daily, weekly etc. depending on timeframe.

    #147174

    this is the code as I’ve it now.

    Also interesting is to optimise the direction 1 to 6. The reset is set to daily here.

     

     

    1 user thanked author for this post.
    #147216

    get error when using your last code paul

    #147218

    ullle73  what errors?

    Paul’s code above is not a complete Algo with Buy and Sell etc.

    #148592

    Hi Juan, Hi All, I’m following your posts and grateful that you share a lot of fancy stuff here. Thanks. I’d like to better understand the operating mode of the so called ML and have a few questions:

    1/ where does the programme store the various results learned from the past?

    2/ what happen if the Algo is stopped for some reason? Are we starting again from scratch the “learning from the past” process? I noticed that even the Algo performance (calculated by PRT) are reset to zero when the same Algo is stopped and restarted, so I guess there is now way to capitalize on previous learning if the Algo is stopped, is that right? if so, is there a way to overcome this?

    3/ have you been running “live” the same programme with and without ML module? Backtest seems to give better results? are you really getting better results in rel trading?

    Facinating ML!!!

    Thanks

    #148627

    Hi Khaled, I am unfortunately not very active on the forum lately as I am kept just way too busy between PRT development and my other work. But to briefly answer your questions:

    1. It is stored locally in the respective variables defined in the code (WinCount, StratAvg, Best, etc.)
    2. Yes unfortunately the variables are reset. Although they can be initialized using the commented out once code and using the graph command in backtest to find the latest values.
    3. I use this successfully in most of my live strategies but only using a single heuristics set applied to a single variable not multiple ones as in the code above

    Hope this helps

    1 user thanked author for this post.
    #148681

    Hi Juan, Thank you for taking the time to answer my questions. I see in your ML Code that you don’t have CONDITIONS (IF C1 THEN..) before BUY and SHORTSELL instructions, which is not a problem in itself. However, in my case, the pending orders arenot cancelled automatically at the end of the candle, so I’m carying orders with irrelevant market conditions, which not only prevent other Orders with more “recent” conditions to come in but also sometimes stop the Algo…

    Do you have a trick to make the pending orders cancel at the end of each candle?

    Thanks

    Khaled

     

     

    #149166

    I have a doubt, and I am not joking, nor hesitating.

    You are dealing with a very interesting topic, but with so many explanations, so many codes, and so many posts it is impossible for me to know if there is something useful.

    I don’t know, it would be interesting for someone to explain in a single post what the code is for and if there is any specific code that is really useful.

    I have lost myself.

    #149171

    You should be thankful to those many explanations, codes and posts 🙂

    If it’s useful you can only understand by yourself with your own tests on your own strategies.

    #149190

    Fran55

    I was skeptical too and I’ve made a quick and dirty test. I’ve put together a simple LONG only code if SAR>Close and EMA21>EMA8 then buy 1 contract (Nasdaq cash 1€, 15 min TF) and exit if SAR<Close and Close<EMA8. This strategy run on a Tick by Tick mode over the period 10 Oct. 2018 to 30 Oct. 2020 (2 years) did generate a Win Rate 40.04%, Profit Ratio 1.09x and Capital gain 2048€ (attached results and ITF file).

    I’ve added a simple ML code on 1 variable (courtesy of juanj) that you can find at (https://www.prorealcode.com/topic/machine-learning-in-proorder/), and the results are better: Win Rate 40.1%, Profit Ratio 1.2x and Capital gain 3057€ (attached results and ITF file). The increment in € absolute gain is +50%!

    You can also note that the number of losing positions have been reduced from 950 to 814 and the Drawdown has been reduced from 1817€ to 1161€. The biggest loss went from -191€ to -113€.

    So, even though I didn’t write the ML code and have nothing to sell 🙂 it seems like it’s working !

    Others have had different experience?

     

    1 user thanked author for this post.
    #149196
    And I thank you very sincerely Francesco, I learn a lot with all of you.

    But it is that in the meantime post and explanations I do not reach any conclusion.
    Not only do I not know exactly how learning works, but I have also tried to include some algorithms in my strategies and, either I can’t, or the statistics come out exactly the same.

    I am not a professional programmer.

    #149197
    Not that Khaled is an exception.

    I don’t know what, or how to include learning in my strategies

    #149198

    Está bien Khaled, he introducido ese código.

    Problems!

    Okay Khaled, I entered that code. Problems!

    #149203

    @Fran55

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.

    Thank you 🙂

     

Viewing 15 posts - 421 through 435 (of 455 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login