Master MQL5 Programming (Complete All In One Guide)
Vložit
- čas přidán 24. 07. 2024
- *Complete MT5 Programming Course: en.bmtrading.de/mt5-masterclass/
*Complete MT5 Martingale Class: en.bmtrading.de/mt5-martingal...
*Recommended Broker: en.bmtrading.de/broker/
*Free Trading Journal: en.bmtrading.de/tradebuddy/
**FTMO Funded Trading: trader.ftmo.com/?affiliates=y...
*These Links redirect to my webpage where you can find free or paid products and lots of useful information.
**These Links are Affiliate Links. If you use this link you can support the channel because I will receive a commission form the company. You do not have any disadvantages of course!
Learn about the benefits of automated trading. After programming trading strategies for a while I started teaching how to program expert advisors for the MT4 (MetaTrader 4) and MT5 (MetaTrader 5). Until now I only did videos in German but now I will start this channel with English videos to reach a larger audience of traders and help them improve their trading. There will be no fake trading on this channel and no lies. I show trading as it is - the good and the bad sides. Stay tuned and subscribe because you don't want to miss ;)
Instagram: / rene_balke
Trading in derivative products such as futures, options, CFDs, Forex and certificates involves a considerable risk. These products are not suitable for every investor. Investors could potentially lose all or more of the original investment. If anything, only money that equals personal risk capital and can be lost without jeopardizing financial security or lifestyle should be used. Partially or fully automated trading programs can only be used to support the trader. Past performance is not an indication of future results.
Timestamps:
00:00:00 Introduction
00:02:18 Explaining the Strategy
00:06:52 Creating a New Expert Advisor
00:10:55 Expert Advisor Properties
00:12:47 Code Comments
00:14:28 Basic Event Handler Functions
00:26:02 Explaining Variables
00:30:30 Variable Data Types
00:37:58 Indicator Handles
00:46:10 Reading Indicator Buffers
00:51:11 Explaining Arrays
00:59:35 Reading Candle Open and Close
01:04:25 Input Variables and Concept of Scope
01:12:00 If Statement Control Structure
01:26:39 Sending Orders to Open Positions
01:24:34 Process Code Once Per Bar
01:40:18 Order Entry, SL, TP and Comment
01:53:40 Explaining Functions
02:05:49 Explaining Position Indexing
02:08:00 For Loop Control Structure
02:15:27 Trailing Stop and Position Properties
02:26:41 Magic Number
02:30:30 Summary
02:34:48 Outro
PLEASE READ THIS: I worked on this video for two days and really put a lot of effort into it. I am really proud and this might be one of my best (and most valuable) videos! Please leave a like and write a comment if you like it.
If you watch it you will UNDERSTAND how mql5 programming works. From this point on you will no longer just copy and paste code but you will be able to understand it on a fundamental basis. This is the level of teaching that you can also find in my Masterclass course and this time you have the chance to watch it for FREE. Do not miss this chance.
Feel free to share the video with your friends so we can all benefit from the power of automated trading!
ALSO... If you like this style of teaching you should also have a look at this: en.bmtrading.de/mt5-masterclass/
In this complete mql5 programming course I teach everything you need to know about MT5 programming. Needless to say that it covers far more than this video on CZcams. Everything is explained in detail and you will learn to write multiple working EAs. Watch the videos on the linked page to learn more about it.
Thanks for your support on the channel
Glad you said that because I was thinking I just spent @$500 for your course and now it's here for free.
@@BlackCatSyndicate Haha no worries. This is just the tip of the iceberg of what is possible with mql5 programming. In the Masterclass course I teach a lot more than just the basics!
With the basics can i earn the $500 to buy the course? XD@
This video could be my life changer, thank you for sharing your precious knowledge!
@@WasimZayed Hope you like it :)
Just want to say I’m so happy you put this together. I’ve learned a lot from you and your channel and this puts it all into a nice easy to follow review and you really give the reasons WHY the computer needs the inputs it needs. Thank you again and keep the great content coming!!!❤
Thanks for the feedback! I am glad you like it :)
I have been looking for this kind of education for years, god bless you man
You've done something with your teaching that you'll be proud of even after you're gone. You've made a meaningful impact with your teaching. Giving with liberation, love, and good intentions is the best form of caring for people around us. And you are doing this. I deeply appreciate your gifts. 🙏💚
I literally can't describe how usefull was this tutorial, everything is described inch by inch and i would never say that one youtube video will make me understand mql5 soooo much better. Some people would charge over 1000$ for such a course and probably not as good as this one, but you gave it to us FOR FREE!!!!! That is just incredible Rene. Thank you so much, keep up a good work! 😇😍🤑
Thanks for the great feedback!! I won't stop ;)
Hi. Wie geht's. Sehr gutes Video. Vielleicht gibt es bereits einen EA oder hast du eins den man nutzen könnte um die challenge von Prop firm zu passen? Vielen Dank
Thank you so much for creating such an insightful and thorough tutorial on the basics of MQL5! I found your explanations to be incredibly clear and easy to understand. Your detailed approach not only helps to clarify many basic questions, but it also gives the confidence to start experimenting straight away. I really appreciate the effort you put into making this content accessible and engaging. Looking forward to more great tutorials from you!
Rene, I really want to say thank you for all the work you have posted. You have moved my coding skills along considerably in a short time and this resource is invaluable.
Woaaa so good to hear that! Thanks for supporting the channel :)
Just finished this course all the way to the end. Seriously great tutorial and as soon as I can afford it you will have another participant in your MasterClass course...
Thanks a lot! This tutorial is what I wanted, it's amazing. Great channel, keep it up.
Hey René
Nice Video with all important parts of Basic MQL5-Programming!
Your way to explain things is allways easy to understand and helps a lot to get better in progamming!
Thanks again!
Thanks for the feedback! :) I am happy that you like my tutorials :)
Ooo this is perfect for my weekend watch list.
But seriously though, 2 hour long tutorial video is not an easy task.
Thank you for the time & effort you put in the video, Rene, as always.
Took me two days in total and my throat is always super dry after talking so much :D:D Hope you like the video :)
Also das ist mit Abstand der beste Einstieg in MQL5 den ich bisher gesehen habe. Danke Rene für Deine Arbeit die Du da reingesteckt hast und man merkt Dir das Programmierer Gen wirklich an :) Ich habe vor ca. 8 Jahren eigentlich mit Programmierung aufgehört, aber Dein Video hier hat mich echt wieder motiviert mich in die Thematik einzuarbeiten :) Vielen Dank dafür!!!
this video is awesome!! for non programmers like me, it is incredibly easy to understand and follow what you are explaining. thanks so much for taking the time to do it!!
Great to hear! Thanks for the feedback. mql5 is great for beginners also. Keep up the good work :)
What a great video, very detailed breakdown. Thanks mate!
What an amazing work done. Thanks Rene.
Rene, well done, have had some programing knowledge, but this helped
The first CZcams video I've seen that the code and strategy tester actually works for me. I have seen many videos. Thanks. But as a beginner like myself, there is a lot to learn.
I am glad that you like it!! If you are ready for some advanced stuff you can also check out my course: en.bmtrading.de/mt5-masterclass/
This was an amazing tutorial with lots of critical learning items. The magic No. as you said is accessible somewhere. It can be seen among the inputs list. Not sure which one your videos I will choose to watch next as they are all fantastic. Thanks a lot.
Thank you so much for the video, it took me almost the whole day to go through it but definitely it was worth it! God bless
most highly anticipated video for the past 24 hours. Thanks René for all your efforts.
👍
I hope you like it :)
I watched your whole video till the end, much appreciated. You really add tremendous value to learning MQL5 programming. 👌👌
Thanks for watching the whole thing!! :]
thank you René . I really appreciate your work and effort , your videos were very helpful for building many trading projects . I hope you make a video for the webrequest() function in mql5 wich I found very important to communicate with external data
Thanks Rene. You're really an inspiration. I'll use it for my ICT automated trading
Great! Thanks for the support :)
Thanks for taking the time to share your knowledge. I have so much to learn, but I am exited after watching this video to continue with automated trading. Thanks again!
Sounds great! If you want to learn as efficient as possible you should also check out my course: en.bmtrading.de/mt5-masterclass/
I've been dreaming about this day, when you finaly release your codding tutorial! Thank you!
I released a lot of tutorials already. But this time it is a bit more in depth ;)
As a total newbie to coding, I spent 2 days getting through this tutorial. The concepts were a little intimidating at first but I started getting comfortable a little more than halfway through. I can't wait to add more code unique to my trading style. I really appreciate you creating this video, thank you very much!
Hey René! Salute from Brazil, what a great video! Thanks for the effort :D
Hi Rene, yes I’ve watched the whole video and it is very well done and gives better insights for starting programmers like me. Thanks for your ever enthusiastic way of tutoring and hope you’re doing fine. I wish you nice holidays and a great 2024. Bye, Frank
Thanks for watching the whole thing!! :) All the best for you, too!
Thank u so much
I am a programmer and alao a trader i cold finish this course in like 1.5 h and it was very usefull i learned every syntax
In this video you really explained everything in detail...You are the best
Thank you for the video, it was very helpful. I initially had a background in mt4 and the mt5 course was a very fruitful add-on. I ended up making an 80%+ win rate indicator with all the trailing stops and TP. If the indicator continues with this win rate for the next 3 months, I'll will post for grabs. That will be on April, Easter.
where can we find you when you are gonna post it ?
Definitely one to run back through a few times. Thanks!
That is what it was made for ;)
Easily the best programming primer for a computer language I've ever watched, and I've watched hundreds of the things.
Wow thank you so much!! :)
Thanks Renè, for your good work !!!
So excited to get into this. Thank you Rene!!!
Once you worked with automated programs you do not want to go back ;)
Hi Rene, YOU ARE THE BEST! Thank you so much for the great effort! 😊 Appreciate it very much! Your videos are so well done, clear and concise, I have learnt so much from you. 💯🧡
Thank you so much for the comment!! I am glad you like it :)
New coders. See that little blue icon that looks like a shower head in the upper right - that is an auto code formatter. It straightens up all your code automatically. Try it. Thanks Rene for this video. I love the enthusiasm that you bring to coding. I think you are the happiest coder I ever listened to. I'm migrating from MQL4, and I am delighted with how you approach your teaching. Big Thanks!
I will watch this and still buy your mql programming course. I am certain everything you give is always of value 💯
You will not regret it :) The Masterclass covers a lot more besides the basics from this video ;)
thank you for the thorough tutorial. very helpful
Wonderful work, mate. Many thanks.
Within the first 10 seconds I smashed the like button! :D I think I can learn something new. I can't wait to watch the complete video.
Love this! Hope you like the complete video :)
May God bless I learnt alot about mql5 programming as a CS student from you since day one on your first video . congratulations to you and me
Thanks for supporting the channel! :)
Excellent video. Thanks for taking the time. Great teaching style, very nice and easy to follow. 👍👍
Thanks
I was planning to watch this video in 30 mins break but the way you are explaining things properly its keeping me in this video
Wow love to hear that!! Thanks for the kind feedback :)
Thanks Rene. I joined this channel without any knowledge about MQL5 programming and everything I am Improving my skills in the MQL5 programming Thanks to your tutorials. Greetings from Ghana
Thanks for your support! Keep up the good work :)
Thanks Rene , really appreciated
Thanks man, it was very informative.
so cool rene, very useful for the community. Thank you so much
Glad you like it! :)
Thank you for putting up this video together. 👍👍👍
Mindblowing! A lot more possible than I thought! Thank you so much!
And in this video I just scratched the surface of what is possible with mql5 ;)
Hi Rene,
I have learned a lot from this channel.❤
Lots of thanks. I really appreciate your work and your time spent in this video. Thanks.
Thanks for supporting the channel! :)
Neat and clear tutorial. Thank you!!
ooh....nice!!...will be watching this Rene!!.....great work brother!!!!!
Thanks! I hope you like it :)
Rene! Thanks a lot for this video! I've learned too much!! Again, thank you!!
I am glad that you like it :)
Thank you Rene. I am from South Africa and your course of 570€ is just too hefty for me. I subscribed to this channel at only 1k subs and i have been learning mql5 ever since. This video has come in very handy 🎉
René you are the best. Thank you for the effort you put in to teach us the skill of making EA's
🙏
Thanks for supporting the channel! :)
@ pleasure! I just completed and started trading with my first EA with the help of your channel. So far it's in profit 😁
amazing explanation, really you did big effort to record this rich information video , thanks a lot , god bless you
Awesome. This is great stuff Rene 😊
I am glad you like it!
Really loved this video, I can understand the codes a lot better now! Can you please do a video explaining how to use 3 indicators in an EA? Basically, i want one to confirm trend, one to confirm momentum, and the last one for volatility and entry points
Thank you very much for this valuable teaching.
Amazing Rene - you are the MQL5 Master!
Thanks :) I am glad you like the video!
thanks a lot... realy appreciated for the very useful video.
Thanks for the video man! I started programming in C# 10 years ago. When I got into trading I got into PineScript, but after being exposed to MQL5, its like a breath of fresh air. Object Oriented programming is just so much cleaner.
Thank you René.
I would recommend using OOP as the EA grows.
This video is very useful. Thank you so much!
I am glad that you like it :)
Amazing work, thanks a lot for that.
excellent cant wait to get started, this MQL5 is so frustrating, i have been at it for over a week trying to code a simple SMA7 and gave up!!
Watch the turorial and mql5 will feel easy for you :)
Thanks for this video René. I really appreciate this. it is helping me to learn to create my own EAs.
I am really glad you like it :)
Thank you very much Rene again, I waited this video very much
I hope you like it
Great Video !
Thank you
Thanks Rene, mql5 no more a unreadable language, from your yt lesson , teaching , wish your nice new year .
Thanks for the feedback :) I am glad you like the videos!
Thank you for your effort. Great mql5 overview 👍
Thanks
Amazing video, this helped a lot, thank you!
I am glad to hear that! :)
Thank you for a very good tutorial, it has been one of the Best I have come across. I would of course like to copy it to be able to go through it multiple times, but, if it took you two days to put it together, it would take me weeks to copy. I have chronic arthritis affecting my now non existent typing skills, one finger stuff. ☹
I have watched all of the video , even downloaded it for future reference and guidance, sad that the code is not available, that would make things easier for me.
Once again thank you for your effort.
Hi Rene, thanks again for your video. I took me the last two days to copy your code, well faster than I expected. Towards the end, I got frustrated because of the 37 or more errors and double the number of warnings. Re-watching the video, and LISTENING to your explanations, I corrected the typos, that dropped the error count to 17, that is where the frustration came in. Eventually, I found a "}" that did not look as if it belonged where it was, so after following the "flow" decided it should not be there, so deleted it, what do you know, compiled no errors or warnings. The feeling of success, fantastic.
After multiple attempts to copy EAs from video, this is the first time I got it right. I have, I think, learnt a great deal from you, thanks.
For a 7 decade + old bloke to learn something new with little to no experience, is a reflection in my mind of how good your tuition really is. You have made this old bloke very happy.
“Thank you so much for this amazing course! It’s unbelievable what you taught me in those mere two and a half hours!”
Glad you like it :)
"Very professional video. I appreciate your ability to explain things understandably. I know it might not be appropriate here, but if I could give a suggestion for the next video, I would ask for a demonstration of working with the history of closed trades. I understand that it's a quite complex area in MQL5, but who if not you is capable of explaining it to us? Thanks again
I am glad you like it :) I am pretty sure I worked with historical deals before on the channel but do not remember a specific video. Just go through the videos and you might find something useful. If you want to have a structured course you can also check out my masterclass: en.bmtrading.de/mt5-masterclass/
"Rene, your MQL5 playlist is an absolute gem! ✨ Each video feels like a journey into the heart of trading, filled with practical wisdom and insights that have truly enriched my understanding. 🚀 Your dedication to sharing this invaluable knowledge shines through every tutorial, making learning MQL5 not just educational but also deeply inspiring. 🙏 Thank you for lighting the path towards mastery in such a captivating way. Your work is a beacon of excellence in the trading community! 👏
Thank you, Rene! ❤ Love you so much! 💖
Thanks for your comments!!! I appreciate the support
thanks Rene , very helpful , please teach how to draw a channel or trend line
Have a look at the other tutorials on the channel. I worked with trend lines already ;)
Good tutorial. I'm more into indicators, however I'm struggling trying to program the alarm.
thank you very much!
Thanks , this was helpful.
This is great thank you very much !!!!
Mr Rene, I cannot appreciate you enough for this video, please can you do a part two and make is simpler for people like, something like "from top to bottom" jumping from OnInit to OnTick and jump back to the beginning can be confusing, pls 🙏 even if it 30 mins, let it be sequential
I am glad you like it. I do not really think it makes sense to code from top to bottom like this. When you write more complex programs it is easier to work task oriented.
The best all-in-one EA guide.
Woaa thank you! :)
Rene, another excellent video.
Thanks I am glad you like it :)
Really helpfull thank you so much keep it up
Thanks for watching!
Rene thank you for sharing this and thank you for choosing to share your knowledge in English. I am so very grateful and I'm currently going through the video course now. I was thinking of learning a different language as I've been using Python for a good few years now but I love the speed of MQL5 from what I've seen so far. Do you think I should do a thorough C language course or would it be sufficient to continue learning MQL5 specifically? Thanks again and looking forward to hearing from you as I'm now a sub.
thanks for supporting the channel :) if you only want to write mt5 programs for trading you do not need to learn c. you can start with mql5 directly.
This video was very educative and informative and for us who haven't been profitable at all in the market getting 570€ is Big deal for us if not there nothing better than grabbing the master class course immediately one watch this video finished
But thanks i learned allot and i pray to make out money so i can go for the master class course
I hope this video go viral and the birth of our algo trading legend to be born as manual trading legends
Thanks for the support :)
Uaaaaaaau. You are amazing. Thank you so much!
Thanks René. 🏅
Thanks for the video 👏👏🙏
:]
Thank you.. very much..
I was going to watch one of your earlier videos, but i think i need to watch both now🤣🤝😎
Never a bad idea ;)
@ btw, just found your channel. The best channel I’ve found so far🙌
@@ScamFreeFX Spread the word! :D
Nice video! Can I ask for a little bit more explanation on the barsTotal and bars variables? I dont understand how they get different values. Why should we compare them? Thank you in advance!
barsTotal is a global variable and bars lives only in the OnTick. They are completely different variables. I explain this stuff in detail in my course: en.bmtrading.de/mt5-masterclass/
Big big THANK YOU
thank you man
Great video!
Is it also possible to let your entry, tp and sl be based on fibonacci levels? For example if you trade a breakout where you want the entry on the level 1.1, tp on the level 2 and the sl on the fib level 0.2.
Is it possible to program this in such a way you have the fib levels as input variables which you can optimize to see which fib levels are the most profitable for the entry tp and sl?
Sure! You can do almost everything with mql5 programming.
Thanks for your support. But how can someone create an EA for a custom indicator like SMC indicator?
Thank you very much
:)