EA for Beginners, set and forget breakout, code, optimisation, testing part 8/8

Поділитися
Вставка
  • Опубліковано 2 лип 2023
  • Yes, finally calling an end to this series. Going back to basics for a beginners coding guide, I'm writing a complete breakout expert based on a published strategy including tips and optimisation.
    Part 8 of 8
    This part is a rewrite in a much less complex form of the break even logic in part 7.
    The strategy was published by TradePro and is a time range based breakout trading USDJPY with 3 stage take profit.
    As a beginners guide I'm taking things slowly so I have to break the tutorial down to multiple videos. This is the first part and there is a link to the playlist below. I will add further parts to the playlist in the coming days.
    The code is for Metatrader 5 but is almost the same for Metatrader 4 and I'll try to point out the differences as I go in the videos
    Looking for a broker? Support the channel by using this link. We receive a commission on your trades from the broker at no cost to you:
    orchardforex.com/live-account
    Links:
    Original Strategy Video: • 100 PIPS A DAY Highly ...
    Earlier range breakout: • Time Range Breakout Ex...
    Time entry formats: • Add this code to your ...
    Web Page: orchardforex.com/build-a-set-...
    Discord: orchardforex.com/discord/
    Playlist for this series: • Set and Forget Breakout
    #Breakout #Forex #metatrader #expert #finance
  • Розваги

КОМЕНТАРІ • 59

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

    Thanks so much Arthur for this brilliant education and free resources. Your whole channel is a goldmine.

  • @alis7398
    @alis7398 10 місяців тому

    Thank you very much for sharing your knowledge

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

    Thank you so much for your time. For me it's very helpful for understand.

  • @SathishKumar-cg8er
    @SathishKumar-cg8er Рік тому +3

    Hi... Excellent video series.. cant thank you enough... awesome work... whether the strategy works or not, the education on MQL4 & MQL5 coding is amazing... 🥳

  • @rafael-carlosmanzanaresalm2272
    @rafael-carlosmanzanaresalm2272 8 місяців тому

    Thanks, I have already found the small error in assigning an operation symbol. I continue learning with your contributions.

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

    Thank you the great efforts, last part was difficult to follow :)

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

      I hope this means part 7 was hard and part 8 was better.

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

      @OrchardForex Part 7 was hard as a logic, part 8 was hard to follow as a code :-)

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

    Thanks for all your videos, they are very insightful. Your use of the include MQH file is a new way to access functions I never even considered. I have some modifications I’m adding to your code, I’ll share the ideas after I finish and test to see how they work. Thanks again !!

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

    Thanks for free knowledge

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

    you are master! thanks

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

    Thank you again.

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

    Hi, thank you for the "simplified" version. I did like also the 7, using struct, but this one is maybe more homogeneous. In any case it's great having both to compare the logics & coding methods. Many thanks

  • @m.ilkertemucin7239
    @m.ilkertemucin7239 11 місяців тому

    thank you again

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

    An idea as another follow-up (if at some point you fell like it):
    I've started modifying the code to run multiple ranges per day. Which is relatively easy to do, until you enable "move to break even"... (multiple groups, multiple magic numbers to check etc etc)
    I've also edited the code so it doesn't move to break even exactly but a few pips above or below (which can vary per range if needed. Haven't tested yet), depending on buy or sell (to compensate for spread and/or slippage).
    Also, just wanted to say I loved this series. :)

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

      Don’t waste time. Just run multiple experts

    • @grrrrrr1288
      @grrrrrr1288 5 місяців тому

      Hellos Martin’s would you be able to share me the code if I give you my email?

  • @geha9999
    @geha9999 25 днів тому

    hi Arthur, thank you for your great method on MQ5 coding that bring this EA as a sample for us... well done 👍👍
    but I wonder to one feature to be aligned with your coding method in this EA, so apologize if I need to ask you a favor,... please add a trailing feature that perhaps can give the EA a better or optimized result?
    Thank you again Sir

  • @jaytolentino4219
    @jaytolentino4219 10 місяців тому

    Hi, thank you for this, great source for people like me who is just starting to learn to code. Can help share the source code link, The source in the webpage was somehow replace with the RSI expert

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

    "Make it work; make it better." I think it was you that said that. 😉

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

      I say it a lot but I got it from someone else years ago and I don't even remember his name.

  • @rafael-carlosmanzanaresalm2272
    @rafael-carlosmanzanaresalm2272 9 місяців тому +1

    Hi. The link for the download is wrong, I have written the code according to your instructions and I have reviewed it. There is no error when compiling it, but the ea does not respond and does not perform any operation, I don't know where I have the error. I would like to compare it with your code and continue learning. I am learning much more from your videos than from all the books and other videos I have been able to read and watch. Thank you very much for your contributions and teachings.

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

    Hello Orchard, great content. I have a quick question, risk percentage works fine on currency pairs, but on gold and silver for instance, the risk is 10 x the risk of I use 1.0 as my risk input .

    • @OrchardForex
      @OrchardForex  2 місяці тому

      The formula is the same for everything. There was an error in the early code where I think I used SYMBOL_TRADE_TICK_SIZE for both tick size and value, or it might have been using TICK_VALUE for both. Anyway you have to use TICK_SIZE for size and TICK_VALUE for value.

  • @colaboracionesderobertfrip9209

    I have started testing this EA on all xxxJPY pairs.
    For now the feeling is good.
    It would be good, in my opinion, that when he reaches TP2 he puts the SL of TP3 in TP1.
    Now I do it manually, if he catches me in front of the computer.
    Thus we would secure 15 more pips.👍👍

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

      Moving the first to break even resulted in lower profits. Moving the second might do the same.

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

      @@OrchardForex It would be an option to choose, as BreakEven is now.
      I have done a lot of testing in Strategy Tester with all xxxJPY pairs.
      From June 1 to today the AUDJPY, CADJPY and USDJPY pairs give better results without BreakEven.
      The CHFJPY, EURJPY, GBPJPY and NZDJPY pairs work best with BreakEven.
      Curiously, the pairs AUDJPY (the best), CADJPY and NZDJPY are the ones that have given the best results in this period.

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

    Pay attention to lux algo those guys coding the things that makes sense

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

    Thanks for all the videos and to teach us how to coding in mql. Can you please tell me how to change background color from time[a] to time[b] from the rest of the background.

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

      You could draw a background rectangle

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

      @@OrchardForex Ok, thank you. But what will be the height? If I zoom in or zoom out, it should fill the top to bottom of the chart. Height should be changeable?

  • @SathishKumar-cg8er
    @SathishKumar-cg8er Рік тому

    hi .. Did you share the complete code anywhere in the description.. I couldnt find it.

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

      Yes there's a link to the web page in the description

  • @hamzavictor2385
    @hamzavictor2385 11 місяців тому

    Hello Mr Arthur,
    I have been experimenting with the UpdateBreakEven() function in this Breakout SnF EA. I was thinking of a condition in which the trades should be updated to breakeven if and only if the trade with TakeProfit2 has been closed. This means the only running trade will be the one with TakeProfit3.
    Unfortunately my tinkering with the code has brought fruitless results. Can I have your input on this please?

    • @OrchardForex
      @OrchardForex  11 місяців тому +1

      You would probably have to assign first magic to trades 1 and 2 and second magic to trade 3 but I haven't tested any of that.

    • @hamzavictor2385
      @hamzavictor2385 11 місяців тому

      @@OrchardForex I got a solution immediately after I asked the question. I used different magic numbers for each trade and then used the magic numbers for the 2nd and 3rd trades in the logic and it worked out perfectly well. Now the breakeven function works only after the first 2 trades have been closed. Thank you for the response

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

    sir , i have a question , hedge 'recovery zone'' strategy , i can use for crypto or is worth only on forex?

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

      If you are talking about zone recovery then you can use the math and technique on anything but if you want to know if it's a good idea then I don't recommend it for any trading.

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

      Better to study and learn divergence then apply maths and code it .

  • @chukwujoseph8219
    @chukwujoseph8219 11 місяців тому

    ca you help me out on how to use icustom mql4 to use my custom indicator to build an ea

    • @OrchardForex
      @OrchardForex  11 місяців тому

      What you can find when you search
      ua-cam.com/video/hXq5r7jy0HQ/v-deo.html

  • @joseluisfernandezdevelasco4869

    I have a problem.
    I have done many hours of testing and I have managed to parameterize a few hours in which the EA makes profitable trades for me every day.
    The problem is that I have put the EA in another broker and it makes me different trades and most of them losers.
    I know it's a time problem but I don't know how to fix it.

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

      Apart from changing the settings to work with individual brokers you can't.

  • @MahmoudNader-td4nf
    @MahmoudNader-td4nf 7 місяців тому

    The attached code is different

  • @willemlourens9967
    @willemlourens9967 2 місяці тому

    Cannot get the code to work!

  • @LOrealHardly
    @LOrealHardly 9 місяців тому +1

    I've watched all of this and you've cleared up so many questions I had around general MQL coding. I thought I'd take a look at the code for reference to the key areas you've taught us but your web page has 'RSI Expert MT4' available for download. The code in this download looks to be for perhaps another project or am I going mad ?
    Many thanks for taking the time to not only work through the code but just as importantly, for explaining the why of it all.