Metatrader 5 optimization tutorial

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • 💰 Join Darwinex Zero and get 20% off: trustfultradin...
    💎 Take a FTMO prop firm challenge: trustfultradin...
    💎 5%ers prop firm: trustfultradin...
    ✅ Code your own trading bots: trustfultradin...
    ✅ Learn advanced mql5 programming: trustfultradin...
    🏛️ My broker: trustfultradin...
    🖥️ Get a good and cheap VPS: trustfultradin...
    📊 My EA: www.mql5.com/e...
    📊 SpreadRecorder: www.mql5.com/e...
    📊 DataEditor: www.mql5.com/d...
    🌐 Website: trustfultradin...
    💬Join my free Discord server: / discord
    As an algo trader I develop and trade strategies with metatrader 5.
    Automated trading makes it possible to be consistently profitable in the forex market. If you have any questions about algo trading, metatrader or programming trading systems (Expert Advisor or EA), just write a comment or visit my website. You can also join my discord server for free.
    ⚠️ Disclaimer: Some links included in the description might be affiliate links, so I might receive a tiny commission if you use my links. But there is no additional cost for you! Thanks for supporting my work. Your support allows me to keep recording the videos.
    Trading in derivative products such as futures, options, CFD's, forex and certificates contains significant risk. These products are not suitable for every investor. Investors could potentially lose all or more than the original investment. If anything, only money equal to personal risk capital should be used and can be lost without jeopardizing financial security or lifestyle. Partially or fully automated trading programs can be used to assist the trader only. Past performance is not an indication of future results. Our trading systems have been developed to the best of our knowledge and belief. Despite careful programming, errors may still exist. We do not assume any liability for errors in the programming of the trading systems. You use the trading systems on your own responsibility. You are responsible if losses occur due to the trading systems.
    Total risk notice: trustfultradin...

КОМЕНТАРІ • 83

  • @trustfultrading
    @trustfultrading  Рік тому +7

    Enjoy 🙂

  • @ray_an_e
    @ray_an_e Рік тому +5

    Thank you very much 🙂

  • @XaviAndreu
    @XaviAndreu Рік тому +11

    You are a crack bro, you have a lot of talent to explain things. Thank you so much, you give us a lot with all your videos!

    • @trustfultrading
      @trustfultrading  Рік тому +1

      I appreciate that! Thank you for watching! ✌

    • @XaviAndreu
      @XaviAndreu Рік тому +4

      Your content is worth gold, it is an honor to see it 🏆

  • @Fxjprichmore
    @Fxjprichmore Рік тому

    very very very helpful, I watched the video and felt comfortable enough to navigate the EA's setting and inputs to ultimately optimize for the results im looking for results and most importantly sustain them.
    There will never be a time to not optimize because market conditions are constantly changing and as a trader you must be able to adapt.

  • @EricAnderson-s9s
    @EricAnderson-s9s Рік тому

    Very helpful. Thank you. I look forward to more on optimisation, but this is enough to get me started for now.

  • @AlejandroSanchez-xv2hv
    @AlejandroSanchez-xv2hv Рік тому

    This is so far the best video on mt5 optimization I've seen!!! 😎 Have you ever thought of using neural networks for an EA????

    • @trustfultrading
      @trustfultrading  Рік тому

      Thanks, thats a topic I want to take a look at in the future ;)

  • @haxpor
    @haxpor Рік тому +2

    Excellent!

  • @baumhaus42
    @baumhaus42 Рік тому

    Love this channel

  • @joosschoeman4673
    @joosschoeman4673 Рік тому +2

    Hi Toby. Thanks for the great series. Did you noticed during the optimisation there were errors in the Journal tab. The errors during the optimisation could that be from the dow selection when all days are false? "tested with error - incorrect input parameters in 0:00:00.000" . -- The actual EA compiled with no errors. 🙂

    • @trustfultrading
      @trustfultrading  Рік тому

      Yes, I know. That's perfectly fine. If you test all five days, there will be combinations with all days "wrong". The EA will simply skip these combinations as we check the inputs directly in the Oninit function. This way we don't waste time with these combinations. Thanks for watching ;D

  • @mitchboom4874
    @mitchboom4874 7 місяців тому

    Thanks for the video, I like to learn more about stable strategy development optimization. Any tips?

    • @trustfultrading
      @trustfultrading  6 місяців тому +1

      Thinking about uploading more about this in the future. Make sure neighbor parameters also work.

  • @AsadullahHabibi-ey7zt
    @AsadullahHabibi-ey7zt 9 місяців тому

    Please test with every tick based on real ticks!

  • @IMChrisThom
    @IMChrisThom Рік тому

    Great video but I'm wondering in the results column why are the numbers different colors? It's doesn't reflect largest to smallest so I wasn't sure what it could be

  • @JDMVERSUS
    @JDMVERSUS 8 місяців тому

    when have the best is possible save the parameters or need reedit the code of ea ¿ thnx 4 all

    • @trustfultrading
      @trustfultrading  6 місяців тому

      You can save all the paramters to a file. Right click in the Inputs tab and save it ;)

    • @JDMVERSUS
      @JDMVERSUS 3 місяці тому

      @@trustfultrading tnks for your fast answer , need your help when optimiz you check all parameters or 1 to 1 ..? Becouse if check all parameters its a overoptimize ? Or fix it with a out sample analisis thnks men

  • @OneOfTheManyJason
    @OneOfTheManyJason Рік тому

    is the default data in MT5 making huge difference comparing to yours? because I've followed your previous video all along and with the same setting, the profit is different from yours.
    Like $10000 -> around $10500 maximum for 6~7years
    I am not sure is it because of the data quality or what. Is the default data in MT5 really that bad that isn't even trustworthy?

    • @trustfultrading
      @trustfultrading  Рік тому

      Yes. First of all, there is a high probability that the data contains errors. Second, there is not enough high-resolution data. So every year further back it often gets worse. Take a look here where I also talked a bit about the data problem: ua-cam.com/video/VKZPf6V4zHU/v-deo.html

    • @OneOfTheManyJason
      @OneOfTheManyJason Рік тому

      @@trustfultrading oh I found the reason why the profit is so low over 6~7years. It's because I set the lotsize as 0.01.
      However, the situation got even more weird when I change the lot size back to 1. The profit is way higher than yours in this video. like $10000 -> $37000 something.
      Is it again about the data quality? How could I ensure every setting is fine for the historical data if the difference coudl be so huge?

    • @OneOfTheManyJason
      @OneOfTheManyJason Рік тому

      and because I am new to algo trading. I wonder if you really use this strategy in real market and earn profit with it? As it looks so simple to me and this kind of breakout doesn't really make sesne to me in terms of technical anaylsis (not an expert tho).
      I wonder if I could really use this strategy right now in all kinds of market after a few input tuning.

  • @OneCreator87
    @OneCreator87 Рік тому +4

    Goof job, I am interested in knowing more about your optimization process.

  • @maffysmods9718
    @maffysmods9718 Рік тому +5

    Another great video Tobias thanks for all your work making these - I am learning a lot and watching all your videos and looking forward to the next one - Appreciate all that you do 💯👍

    • @trustfultrading
      @trustfultrading  Рік тому

      Thanks for watching, it's nice to know the content is useful! ☺

  • @supermarketfx
    @supermarketfx Рік тому

    I’m currently having an issue with an EA that I’m trying to use in the MT5 strategy tester. “Error: ActionTrade::ManageOrderSend(): OrderCheck(): Invalid order filling type” It will run the test but not execute any trades and there are 0 bug or error if I compile it. The MT4 version of this EA works without any issues. Have you ever had this problem?

  • @user-zo1np4lh5u
    @user-zo1np4lh5u 4 місяці тому

    Thank you, finally, I know how to optimize, always thought it has to be done on the code xD I was just one click away from selecting a parameter to optimize lol

  • @farashay4587
    @farashay4587 Рік тому

    Why your optimization result shows that trades on Wednesday should be off? I mean what is special about Wednesday. Perhaps it is just by chance.

  • @mepartoelpecho
    @mepartoelpecho Рік тому

    HELLO...MI FRIEND WHEN TRYING TO OPTIMIZE IT TELLS ME SERVER SWITCHED OFF... AND I DO NOT KNOW WHAT I SHOULD DO CAN HELP ME? THANK YOU

  • @fulkrumfx
    @fulkrumfx Рік тому +2

    Hello, thank you for the great video! Is there a way I can find the optimization result with the smoothest equity curve? Without having to individually go through each result and running a test to see the graph. Thanks!

    • @trustfultrading
      @trustfultrading  Рік тому +2

      Thank you! Yes there is. You can write your own custom optimization criteria. What I do is to calculate the coefficient of determination. On my video list.

    • @fulkrumfx
      @fulkrumfx Рік тому

      @@trustfultrading bro. You are on a different fucken level. Keep up the awesome videos. Thank you!!

  • @kuldeeprathore5284
    @kuldeeprathore5284 Рік тому +3

    Another GEM 💎 👽

  • @AqualataCode
    @AqualataCode Рік тому +3

    Thank you so much! your videos are pure gold!

  • @kuldeeprathore5284
    @kuldeeprathore5284 Рік тому +1

    Waiting for your New Videos Mate 👽🙏

    • @trustfultrading
      @trustfultrading  Рік тому

      Very soon! What topic would be interesting for you?

  • @dimatistrading
    @dimatistrading Рік тому +2

    Your explanations are simple and clear. As you explain as you write the code, the pace is perfect. Thanks a lot for these wonderful videos.

  • @startatrix
    @startatrix Рік тому

    Why is MasterEA not available?

  • @vinh-le
    @vinh-le 11 місяців тому

    useful big thanks bro

  • @lohziyang7918
    @lohziyang7918 Рік тому +2

    keep doing what you do😀

  • @freenrg888
    @freenrg888 Місяць тому

    Thank you again.

  • @kgothatsobojosi2377
    @kgothatsobojosi2377 Рік тому +1

    Your channel will grow keep adding different videos that are unique like this can u also do monte carlo pls

    • @trustfultrading
      @trustfultrading  Рік тому +1

      Thank you man, I'm trying ;D Monte carlo analysis is a bit more advanced. I still got some more basic stuff to cover.

  • @harmansairani5430
    @harmansairani5430 Рік тому +1

    Can you test it with everytick base on real tick because the other are not accurate at all

    • @trustfultrading
      @trustfultrading  Рік тому

      I used the open tick mode. This is the most accurate test you can do. A real tick test is not really useful. Unless you get tick data from your broker.

    • @harmansairani5430
      @harmansairani5430 Рік тому

      @@trustfultrading yea u can try mt5 backtester mt5 backtester uses your broker spread and slippage you should try that one

    • @trustfultrading
      @trustfultrading  Рік тому

      @@harmansairani5430 You should use a custom symbol for backtesting.

    • @harmansairani5430
      @harmansairani5430 Рік тому

      @@trustfultrading dude i have many ea that perform millions percent in mt4 but not in mt5 i tested 1 of my ea for week in real life and then backtest it on mt5 it was same result but you have to chose every tick base on real tick

    • @trustfultrading
      @trustfultrading  Рік тому

      @@harmansairani5430 I'm happy for you if you have profitable strategies, thats nice 👍

  • @kidoiarts4843
    @kidoiarts4843 Рік тому

    Hey Toby. When will you create the videos for stable strategy development, curve fitting and over-optimization? You promised to create those.

  • @kellyphilip2451
    @kellyphilip2451 Рік тому

    Would it be the same for a multisymbol EA

    • @trustfultrading
      @trustfultrading  Рік тому +1

      No. These settings are only for USDJPY. They might work on other JPY pairs too.
      The optimization part would be the same yes.

  • @minnoxdnb
    @minnoxdnb Рік тому

    single year tests to check the deviation helps also to build something stable.

  • @high_level_trade
    @high_level_trade Рік тому +1

    great 💜💜💜💜💜💜

  • @raphaelarguello5020
    @raphaelarguello5020 Рік тому

    Thanks for the great video. Do we have to define the variables differently so they can get optimized? I have a code running fine on a simple test but as soon as I try to optimize it, the code run without error but not a single trade is taken

    • @BlitzTrader
      @BlitzTrader 8 місяців тому

      Same as mine did you figured out how to fix it

  • @EugenePekeur-g7z
    @EugenePekeur-g7z 9 місяців тому

    Much appreciated. thanks

  • @nilsmueller81
    @nilsmueller81 Рік тому

    Hi thanks for the great Video! But one Question about you. Are you a german or from Germany and where are you living now? Tanks.

    • @trustfultrading
      @trustfultrading  Рік тому

      I'm a german from germany living in germany

    • @nilsmueller81
      @nilsmueller81 Рік тому

      @@trustfultrading lol. Man hört es am Akzent. Hast du einen Discord Server oder ähnliches wo man sich mal austauschen kann?
      LG

    • @trustfultrading
      @trustfultrading  Рік тому

      @@nilsmueller81 ;D Kannst mir gerne auf telegram schreiben. Können dann auch mal kurz quatschen. 😊

  • @OneOfTheManyJason
    @OneOfTheManyJason Рік тому

    Is comission considered in this symbol?

    • @trustfultrading
      @trustfultrading  Рік тому

      Yes, thats very important!

    • @OneOfTheManyJason
      @OneOfTheManyJason Рік тому

      @@trustfultrading no wonder why I made more profit on my backtest as I haven't setup the commission yet

    • @trustfultrading
      @trustfultrading  Рік тому

      @@OneOfTheManyJason 🤑

    • @OneOfTheManyJason
      @OneOfTheManyJason Рік тому

      ​@@trustfultrading I've added the commission now. However, with the same period & setting & input & code & commission, my result is still a bit different from yours.
      my profit is now 37435.95 and yours is 35813.41
      It's pretty close but it's still different. I wonder what am I missing for the history data.
      Did you add/delete/modify your data for USD/JPY?

    • @trustfultrading
      @trustfultrading  Рік тому

      @@OneOfTheManyJason I use the data from tickstory(dukascopy). I also looked through the data and deleted/added things to get a good data set.

  • @beliebigerusername
    @beliebigerusername Рік тому

    More of these tutorials with more detailed explaining information would be great.
    Anyhow this is a great beginning!!

  • @shagarcool
    @shagarcool 9 місяців тому

    Nice