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 - Розваги
Thanks so much Arthur for this brilliant education and free resources. Your whole channel is a goldmine.
Glad you enjoy it!
He knows the coding language. But those useless things will not let you be sustainable.
Thank you very much for sharing your knowledge
Thank you so much for your time. For me it's very helpful for understand.
Glad it was helpful!
Hi... Excellent video series.. cant thank you enough... awesome work... whether the strategy works or not, the education on MQL4 & MQL5 coding is amazing... 🥳
Thank you
Thanks, I have already found the small error in assigning an operation symbol. I continue learning with your contributions.
Thank you the great efforts, last part was difficult to follow :)
I hope this means part 7 was hard and part 8 was better.
@OrchardForex Part 7 was hard as a logic, part 8 was hard to follow as a code :-)
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 !!
Coding ideas is the problem .
You first have to develop a profitable strategy then code it. Idea is useless .
Good luck.
@@OrchardForex which you code that Is profitable?
Hello would you be able to share the code to me?
Thanks for free knowledge
It's my pleasure
you are master! thanks
You're welcome!
Thank you again.
You're welcome
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
You are welcome!
thank you again
Always welcome
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. :)
Don’t waste time. Just run multiple experts
Hellos Martin’s would you be able to share me the code if I give you my email?
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
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
"Make it work; make it better." I think it was you that said that. 😉
I say it a lot but I got it from someone else years ago and I don't even remember his name.
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.
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 .
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.
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.👍👍
Moving the first to break even resulted in lower profits. Moving the second might do the same.
@@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.
Pay attention to lux algo those guys coding the things that makes sense
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.
You could draw a background rectangle
@@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?
hi .. Did you share the complete code anywhere in the description.. I couldnt find it.
Yes there's a link to the web page in the description
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?
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.
@@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
sir , i have a question , hedge 'recovery zone'' strategy , i can use for crypto or is worth only on forex?
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.
Better to study and learn divergence then apply maths and code it .
ca you help me out on how to use icustom mql4 to use my custom indicator to build an ea
What you can find when you search
ua-cam.com/video/hXq5r7jy0HQ/v-deo.html
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.
Apart from changing the settings to work with individual brokers you can't.
The attached code is different
Cannot get the code to work!
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.