How to Backtest an EA in MT4 (Complete Guide)

Поділитися
Вставка
  • Опубліковано 2 лис 2024

КОМЕНТАРІ • 147

  • @TradingHeroes
    @TradingHeroes  4 роки тому +6

    If this video helped you, a thumbs up (👍) is always appreciated. To get more trading tutorials, subscribe and hit the bell (🔔). Get more MT4 tutorials here: ua-cam.com/play/PLOn0-_K-aYvQceg0lCXwbzqnnED_u1KHN.html

    • @awwalbalogun4805
      @awwalbalogun4805 4 роки тому +1

      @trading heroes
      .. I would really appreciate if you could create a video on how to trade for beginners like me who has never traded before... I like at least a one hour video or more.... And I would be really glad if anyone who sees this can refer me to maybe a video tutorial set on trading on meta trader... I would really love to learn and practice 🥺🥺❤️❤️

    • @awwalbalogun4805
      @awwalbalogun4805 4 роки тому +1

      I would really Appreciate

  • @enterxenter2147
    @enterxenter2147 3 роки тому +2

    i watch about 20 videos about how to set up ea an mt4 for 2 weeks now and ur video is the only one that went to ground zero, u said to go to mt4 platform and click on file. thank u very much. i had watch many video on how to get started and could never find the file mt4 that thay said to find, did every thing thay said, got no were until i found ur video. god bless u. please keep making videos showing us ground zero for us beginners. now i can move on.

  • @42buhamad
    @42buhamad 2 роки тому +7

    you forgot to mention that you have to download the data from the historical center in order to get the best result.

    • @TradingHeroes
      @TradingHeroes  2 роки тому +2

      Yes, good point. Thanks!

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

      Can you help me where i can download the max data available??

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

      @@ChilledNights In MT4, goto 'Tools>History Center' A box will open up, with available data. Look there, to D/L the data you need.

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

      How exactly do we do this?

  • @MCandMosRandomChannel
    @MCandMosRandomChannel 2 роки тому +1

    noiceee - gonna come back to this one. Left it sitting for a few months whilst focussing on my actual trading!! But refinement and mastery in all areas of course ;);) :) ))) )

  • @michaeldunnell1216
    @michaeldunnell1216 2 роки тому +3

    as someone already mentioned you forgot the most important step. Downloading the M1 data. BTW I also have the double in a day ea. I've done it 3 times, it's almost impossible to do it with that EA. I do have the top up calculator and that's a much better one to double 20 bucks 40 bucks even 100 and beyond.

  • @ericsbando6240
    @ericsbando6240 3 роки тому +1

    Great guide!! I needed to look at the optimization settings

  • @tomchambers9787
    @tomchambers9787 2 роки тому +2

    Great lesson Trading Heroes: Thanks: Question: when I load the strategy tester on my MT4 there is not tick box for Visual mode.... do i have something turned off.... can anyone help with this..

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      Extend the bottom panel by dragging the edge. They hide some elements if the window is too small.

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

    Amazing! Thank you! This is powerful

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

    This is the first video I've seen on the subject showing the same type of results mine is giving. I'm not sure I understand the multiple results it's giving. I just ran one for 3 previous months that gave me 170 results varying wildly from $50 to $1000 profit.
    I would have thought that an algo ran on the settings I gave it would have one set of results and I could see maybe a list of trades.
    I had MT4 with a different broker a while back that DID work like that. Got out of FOREX for a while and recently picked it back up with a different broker.

  • @nene3844
    @nene3844 2 роки тому +1

    Quick question, what is the library’s section of the MT4?
    Do you have a bitcoin tip jar? If you do, please post it on this question, if you do happen to answer. I would love to tip you for your information.

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      The libraries contain reusable functions that the program utilizes for basic operations. There are libraries for drawing charts, math calculations and more.
      If you feel like tipping, it's always greatly appreciated:
      bc1q604t7rl6w8ddzz6mq2c3xerw5fvacesakuk9jk

    • @nene3844
      @nene3844 2 роки тому

      @@TradingHeroes Thank you for the immediate answer. I have Coinbase do you have an email address I could send it to. Tried doing a copy through screenshot and paste, it saying it’s an invalid Bitcoin Address, however I’ve tried doing this before and it doesn’t work🥲🥲. I’m stuck with Apple products so I can’t copy and paste like I could on a laptop. Sorry for the inconvenience.

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      All good, thanks for trying. A like on the video helps me a lot too.

  • @aussiert
    @aussiert 2 роки тому +1

    Hey thanks for the video, when I load my EA to the chart it loads fine but it says waiting for tick. Any idea how to fix this? Thank you.

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      Sounds like there's an error in the program or the quotes aren't being update. Maybe you're offline, or it's the weekend.

  • @StargateMax
    @StargateMax 2 роки тому +1

    The "Use date" feature doesn't seem to have any effect at all. Different EAs behave randomly. One only tests during one week in July 2022 (it's September 2022 now), and that's it. The time frame also didn't make a difference, it's always somewhere in July. Another EA starts from a few months ago, seems to make more sense, although the date feature still has no effect at all.

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      You probably haven't downloaded enough historical data. Set the Max Bars in History to a huge number in Tools > Options > Charts. Then go to Tools > History Center and download data for the 1-minute chart.

  • @thalibk
    @thalibk 2 роки тому +1

    Thanks for this video. Is there anyway to test the strategy only during Asian and London sessions? I want to completely avoid US. thanks

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      You're welcome. A couple of ways you could do it...
      1. Code the EA to not take trades during US.
      2. Let the EA do its thing, then export the trades to a spreadsheet or DB and filter out the trades with timestamps that are not in the Asian/London session.
      The second choice is much easier because the timezone conversion can get mixed up in programming the EA.

    • @thalibk
      @thalibk 2 роки тому +1

      @@TradingHeroes Thank you sir! You're a star!

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

    Hi I have an EA that is currently running in a remote server, I would like to back test it with different inputs and different amount, would this affect the function/performance of the EA, am not tech savvy, bought the EA from someone and would not like to mess it up as I have a limited version of the EA.

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

      Hi, the backtesting function is separate from the live trading function, so you won't mess anything up. Test as much as possible!

  • @tbase8971
    @tbase8971 3 роки тому +2

    does it take into account the spread and the commission you are paying on your current broker?

    • @TradingHeroes
      @TradingHeroes  3 роки тому +1

      It usually does, but you should demo trade it for a few months just to double check.

    • @tbase8971
      @tbase8971 3 роки тому

      @@TradingHeroes thank you sir will do

  • @bignerd7568
    @bignerd7568 2 роки тому +1

    On your strategy tester it doesn't show up model option. It only gives me which expert advisor and which pair and what hour on my mt4 .how can add that

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      Make that section bigger by expanding it.

    • @bignerd7568
      @bignerd7568 2 роки тому

      @@TradingHeroes how do that or if you can point me to the right direction
      Thanks for helping me out

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

    Hi can I ask why my testing can only go 2-3 days back?

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

    Is it possible to test multiple symbols at the same time?

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

      Not in MT, look at something like NakedMarkets: ua-cam.com/video/IYE2qXvQC1U/v-deo.html

  • @elfndy
    @elfndy 3 роки тому

    Why does the date of test depends on the period frame?
    the bigger frame can run earlier date !!!
    is the a solution? I want to test M15 for 10 years ago

  • @ketarohoshi2933
    @ketarohoshi2933 2 роки тому

    i have a problem , i can only load data up to 3 months max same goes with backtesting, couldn't do 6 to 12 months how to do that?

  • @nene3844
    @nene3844 2 роки тому +1

    Time for a tough question. Working with an EA that needs leverage 1:1000 how do you change the leverage on the strategy tester? 😬

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      It uses the leverage of the account. You can only change it if the demo broker allows you to change it.

    • @nene3844
      @nene3844 2 роки тому

      @@TradingHeroes Makes sense! I had emailed the broker and they replied with the exact same answer.
      Thank you for all the videos that you make! I started following you here recently.
      We have a small team and we have been working on several different algorithms for eight years and just wrapped it up 2 about three years ago. I’m sure in one shape form or another will be paying for some of your services here in the very near near future.
      Cheers and thanks again for replying!

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

    Bonsoir, j'aimerais savoir quelle sont les conditions ou critères pour valider un robot de trading apres l'avoir backtester?

  • @worldwideoffline6423
    @worldwideoffline6423 2 роки тому +1

    mine wont test when i add a time frame- when i choose no date it works... whats wrong?

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      Maybe there are no trades during the selected time period?

  • @claudiusandika5366
    @claudiusandika5366 3 роки тому +1

    sir how can we backtest multiple ea at once? im trying to open ea by opening new desktop tab but it doesnt work lol, any idea? thanks! ^^

  • @fxgold4026
    @fxgold4026 3 роки тому

    Thanks for Video. I know you did a video on manually backtesting but do you have a way, independent of MT4, to test and optimize EA's. Thanks

  • @HereIsmarcus
    @HereIsmarcus 3 роки тому +3

    Nice video. Thanks ! In the strategy tester I tested the same EA twice in a row and got way different results. 80 dollar profit and 120 dollar profit. Any idea what might cause this ? ( I wrote the EA )

    • @TradingHeroes
      @TradingHeroes  3 роки тому +2

      You're welcome! The results will usually be slightly different because of the spread, data and how the computer reacts to the EA. It's important to remember that backtesting is not an exact science, but you're looking for situations where the probability is in your favor. So even if you have a favorable backtest, run the stats through a Monte Carlo simulation and on out of set data to verify that you have an edge. That will also give you a range of results that you can expect.

    • @HereIsmarcus
      @HereIsmarcus 3 роки тому +1

      @@TradingHeroes Thanks so much for your help. I'm testing my first EA. Is Monte Carlo simulation a software ?

    • @TradingHeroes
      @TradingHeroes  3 роки тому +1

      It's a process of running multiple simulations given a return and win rate. There are multiple software solutions that can do it.

    • @HereIsmarcus
      @HereIsmarcus 3 роки тому +2

      @@TradingHeroes that sounds so cool. I'll look into that. Cheers

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

    Im trying to do this but, is showing blank results why? i have downloaded the data and when i click start looks like is working but if i click graph is blank and results too.

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

      1. The results might not show until it's finished.
      2. Maybe not trades were executed.
      3. You may need to change your settings.

  • @simplyselling
    @simplyselling 2 роки тому +1

    I tested my first EA today but it doesn’t show the report, graph, or chart on mine, and it only works on one pair. Have you ever had this issue? Great video, thanks for sharing.🇨🇦

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      It might not show anything if there were not trades. You can only test one pair at a time.

  • @arvis1700
    @arvis1700 3 роки тому

    I seen in end of my backtest trades in minus shown ''close at stop'' I assume its not s/l trades cuz then there will be shown S/l mark. I dont know what this means

  • @thefloki1071
    @thefloki1071 4 роки тому +2

    Thanks!

  • @OWI___d
    @OWI___d 4 роки тому +2

    GOOD WORK

  • @JackSkellington-l4u
    @JackSkellington-l4u Рік тому

    Maybe im missing a file or something, but i have files from a bot that and just dragging that file ex4 file over works. Then i can get the name to show on the top right of the chart(disappears shortly after). I click start(ran test for the current week which i know the bot ran in) but at the end there are all zeroes in the results. It never shows a single trade. How to i get it to trade in my backtest ??

  • @domovohernidoupe
    @domovohernidoupe 7 місяців тому +1

    Why my EA makes close at stop?:/ and the graph goes always down at the end..

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

      Sounds like you ran out of money.

  • @CRYSAW
    @CRYSAW 2 роки тому +1

    whenever i click the start button to start the EA it never works theres just a squeak sound and nothing happens
    Help please!!

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      Probably because there are no trades. Check your settings on the EA and in the tester.

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

    Sir how to backtest ea..which have 2 file one buy and one sell please reply

  • @azhyslemany8559
    @azhyslemany8559 3 роки тому +1

    is there any difference between the result of strategy tester and real account?

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      There usually is some difference. That's why it's important to test in a demo account, before going live.

    • @azhyslemany8559
      @azhyslemany8559 3 роки тому

      @@TradingHeroes but for example i have an EA that has a perfect result on strategy tester if there is 5ms server and 0 spread so is there any difference?
      i mean in this case the result will be very little difference?

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      @@azhyslemany8559 Does your broker have zero spread?

    • @azhyslemany8559
      @azhyslemany8559 3 роки тому

      @@TradingHeroes yes

  • @theforexcodes8133
    @theforexcodes8133 3 роки тому +1

    Do you prefer Forex Tester to the MT4 strategy tester?

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      Two different tools. FT is for manual backtesting, MT4 ST is for automated backtesting.

  • @nyny9189
    @nyny9189 3 роки тому +1

    I wish there was backtest mode for mobile ,it really should be as standard as indicators

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      It would be nice, but it's hard to do from a technical standpoint.

    • @asrafnasriofficial6520
      @asrafnasriofficial6520 3 роки тому

      You can backtest in android use that option... just watch my youtube channel

    • @asrafnasriofficial6520
      @asrafnasriofficial6520 3 роки тому

      @@TradingHeroes bro thank you... cause you i learn more about ea forex now i can make my own ea robot and yesterday i share tutorial for running robot in android device😘😘😘😘thank you master

  • @gamekoek114
    @gamekoek114 3 роки тому +1

    how can you see the orders that are still open when the ea has reached a date you have chosen?

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      You can use visual mode or look at the Results tab.

  • @samueluzoma4121
    @samueluzoma4121 3 роки тому

    heyyy I need help backtesting because it is not working

  • @carinemarcelle5867
    @carinemarcelle5867 4 роки тому

    How to backtest the MACD sample or Moving Average that comes with the MT4? When I click on start it is not doing anything. I can just see no connection at the bottom.

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      You have to be logged in with a valid account. Just create a free demo account.

  • @stephantia701
    @stephantia701 3 роки тому

    Hi, can you help to show how to test EA which requires other indicators to complement its execution?

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      Hi, thank you for the suggestion, but I don't understand what you mean. All indicators required for testing should be in the EA.

  • @StargateMax
    @StargateMax 2 роки тому +1

    I don't have the "visual mode" section available at all.

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      Expand the Tester section, it's hiding.

  • @krismills4151
    @krismills4151 2 роки тому +1

    Hey bro.. I have an amazing EA would you be able to help do some back tests?

  • @awwalbalogun4805
    @awwalbalogun4805 4 роки тому +4

    @trading heroes
    .. I would really appreciate if you could create a video on how to trade for beginners like me who has never traded before... I like at least a one hour video or more.... And I would be really glad if anyone who sees this can refer me to maybe a video tutorial set on trading on meta trader... I would really love to learn and practice 🥺🥺❤️❤️

    • @sagaliina
      @sagaliina 4 роки тому +1

      yessssssss me too

  • @totamitotami4232
    @totamitotami4232 10 місяців тому +1

    I tried doing a backtest with a simple and fast running EA
    but when you do it with a rather complicated ea you made yourself it takes a very long time, why?

  • @mrdecember5715
    @mrdecember5715 4 роки тому

    Hi, How do you add the RESULT bottom?

  • @jordan4541
    @jordan4541 2 роки тому

    So if you have one of the variables ticked and not checked 'optimize' what will happen?

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      It won't do the optimization on the variable.

  • @kabitamukherjee768
    @kabitamukherjee768 2 роки тому

    if i click on Report to see backtesting result, why Report showing nothing. what to click to see the no.

  • @meshackgithaiga8088
    @meshackgithaiga8088 3 роки тому

    Btw which spreadsheet do u used in recording your backtesting results

  • @jephthahanyanwu2779
    @jephthahanyanwu2779 3 роки тому

    Pls can i hv trading conditions that i want to be programmed as an EA...Pls i will neva a professional to do that for me...i will importantly need ur help pls

    • @TradingHeroes
      @TradingHeroes  3 роки тому

      Here's our guide on how to find a programmer: www.tradingheroes.com/find-forex-trading-programmer/

  • @woodycheng2452
    @woodycheng2452 2 роки тому +1

    i dont know why my Strategy Tester doesn't show me the time frames to select

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      Maybe you need to expand the section. It could be hiding.

  • @diogogoncalves653
    @diogogoncalves653 4 роки тому

    I do not know if you could help me but I'vs just installed MT4 to backtest EA's and nothing really happens. I've tried free ones just to download, tried Demos to backtest nothing really happened and the EA's creators do not respond.

    • @TradingHeroes
      @TradingHeroes  4 роки тому +1

      See if the settings are actually allowing trades to execute. Also be sure to download additional data.

    • @diogogoncalves653
      @diogogoncalves653 4 роки тому

      I changed to MT5 but now the problem is that an EAI'm trying is only losing since the trades are all taken in contrary of what it should be. Example: up trend with sells on place of buys and buys in place of sells. How do I fix this? Many thanks!!

  • @mulkproject687
    @mulkproject687 3 роки тому

    how to backtest with Previous Year example if current year is 2021 i want to backtest Year 2020 From January-December

  • @Respectthemynd
    @Respectthemynd 2 роки тому

    🍋It keeps loading then after doing a squeaky sound. From there nothing happens.

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      Either you have no trades or you need to download more data.

    • @Respectthemynd
      @Respectthemynd 2 роки тому

      @@TradingHeroes 🍋😅no trades as in no funds in my account?? And more data as in "libraries" files and "includes"?? I have funds and have files I installed in there but everytime I click "Start" there's a squeaky sound and nothing really happens.

    • @TradingHeroes
      @TradingHeroes  2 роки тому +1

      No trades as in the EA didn't execute any trades because there wasn't enough historical data or the EA didn't find any trades that met the execution criteria.

    • @Respectthemynd
      @Respectthemynd 2 роки тому

      @@TradingHeroes 🍋alright, thank u

  • @xxxpark
    @xxxpark 2 роки тому +1

    Do I need download data from history center before I do backtesting?

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      First check how much data has already been downloaded and if that's enough for what you want to test.

  • @jonmanilenio
    @jonmanilenio 2 роки тому

    You don't need to restart MT4, you can just refresh it.

  • @fitwithwin8382
    @fitwithwin8382 2 роки тому +1

    why when i pressed start button nothing happened except the sound of squeezing rubber duck 😆

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      There were no trades, check your settings.

    • @fitwithwin8382
      @fitwithwin8382 2 роки тому

      @@TradingHeroes there’s no data to be backtest for the selected period, did you download it?

    • @TradingHeroes
      @TradingHeroes  2 роки тому

      Yes: ua-cam.com/video/BDIOYyGHRws/v-deo.html

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

    Can you test a MT4 EA that uses multiple currencies?

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

      Yes, but you have to test each pair individually.

  • @meowcat2363
    @meowcat2363 2 роки тому

    i fail to test 2020 whole year of strategic tester

  • @Ligress
    @Ligress 4 місяці тому +1

    You have a very good face

  • @61tree_VR_Gliding
    @61tree_VR_Gliding 4 роки тому +1

    I wrote my first EA and it tested out quite well. For some reason I don't get the same results on live as with demo. If I hit start on demo account I get one set of results and then switch to my live account and run the tester again with the exact same settings I get drastically different results. Same thing happens with other EA's I've tested. Anyone else have this issue?

    • @TradingHeroes
      @TradingHeroes  4 роки тому +1

      First thing to look at is the spread. Are you accounting for a bigger spread in the EA? If you test with a low fixed spread, then move to a variable spread, that will give you poor results in demo.

    • @61tree_VR_Gliding
      @61tree_VR_Gliding 4 роки тому

      @@TradingHeroes I have it set to "current". Without changing any settings I get different results...not only that I installed mt4 on a different computer and when I run any EA on the same account with all of the same settings, I still get different results, not as drastic as the demo and live but still not the same. Are you able to replicate the same issue on your end or it's just me? :)

    • @TradingHeroes
      @TradingHeroes  4 роки тому +1

      @@61tree_VR_Gliding That's normal. Go through each trade individually in both backtest and demo and you'll usually be able to see the issue. This is not an exact science. There are several factors that can cause trades to trigger unexpectedly, so you have to analyze each trade and build a system that's robust enough to overcome these variable conditions.

    • @61tree_VR_Gliding
      @61tree_VR_Gliding 4 роки тому +1

      @@TradingHeroes will do, thanks.

    • @WaRKinG15
      @WaRKinG15 4 роки тому

      Quality of data/ticks of demo account is usualy very bad compared to live account, so always do your backtest on live account