Mql4 reference

Mql4 reference смотреть последние обновления за сегодня на .

MQL4 TUTORIAL BASICS - 107 SIMPLE ARRAY REFERENCE

5960
68
0
00:05:06
14.03.2021

🤍 With MQL4 for Metatrader4 we create an Expert Advisor that can pass an array as a parameter to a user defined function - by reference. In this video, we are going to create an Expert Advisor that is able to pass a complete array as a parameter to different function. So let’s find out how to do that with MQL4. To get started, please click on a little icon here or press F4 on your keyboard. Now you should see the Metaeditor window and here you want to click on file. New file, Expert Advisor from template, continue. I will call this file simple array reference. Click on continue, continue and finish. Now you can delete everything above the ontick function and the two comment lines here. We start by creating a small array. This is an integer array and we want to fill our array with a few numbers. Please keep in mind that the first array item is always index zero. These array items are like boxes and we assign values to these boxes. This is just for a simple example and it’s a good idea to create small little programs like this one to find out how things work, because now we want to find out if we are able to pass our array as a parameter to a user defined function that is called add values. This function doesn’t exist so far, so we need to create it in a few seconds and we will get a returned result. So let’s create a chart output here. By using the comment statement. It will output the text the returned result is followed by the result that we have created, but this function doesn’t exist so far. So we need to create it now and our function will be called add values and it will get to the array as a single parameter. And we are using this little trick here. This is for INT Integer and this little ampersands symbol is used for references, so now we can try to add a few values by adding the array indexes zero, one and two, and finally we use the return statement to return the result to the main function, and that’s about it. Well, if you have no idea what all the code here does or if this was too fast for you, maybe you want to watch one of the other videos in this basic video series. And on our website, you can now find a link for basic courses that also contain the source codes for this basic video stuff. There is also the link for the Premium Course. This was another idea of a Premium Course member. And if you are already a Premium Course member and have an idea for a video like this one, please let me know. For now, please click on the Compile button or press F7 on your keyboard, that should work without any errors. And if that is the case, you can click on a little button here or press F4 to go back to Metatrader. And in Metatrader we click on View, Strategy tester or press Control and R. Please pick the new file simple array reference dot EX4. Enable the visual mode here and start your test. Here is the Expert Advisor, and it says the returned result is fifty six. So now let’s go and check the source code. We have added up eight and 16. So this would be 24. The third item here is thirty two. And if we add all three items, the result is fifty six. So let’s actually add another value here for index three. Now recompile the code, stop the current test and restart it. And this time it says that the returned result is one hundred and twenty. And in this little video, you have learned how to add up all the elements of an array that we have passed by a reference, and you have coded it yourself with a few lines of MQL4 code.

MQL4 TUTORIAL BASICS - 36 SIMPLE MOUSE CLICK EVENT

3690
49
0
00:05:13
22.09.2019

🤍 With MQL4 for Metatrader4 we create an Expert Advisor to handle mouse click events. Whenever we click on a chart, there is a chart event that we will use to output the X and Y coordinates. In this video we are going to find out how to use a mouse click to bring up a message box, when I click on the chart nothing happens, let's drag the expert advisor on to a live chart, click on ok, and when I now click into the chart I will get a message box telling me the chart was clicked, we also see the coordinates here, so let's find out how to code that in mql4. To do that please click on a little button here or press F4 on your keyboard, now you should see the Metaeditor window and here you want to click on file, new, expert advisor from template, continue, I will call this file simple mouse click, click on continue, continue and finish. Now you can delete everything above the on tick function and let's also remove the two comment lines here. Well usually we like to use the on tick event, that's also an event but this one is automatically caused whenever the price changes, but this time we are going to use the on chart event because when I click on the chart the event is fired. This one takes a few parameters. The first one is for the event id, you see that we use the term const because it's a constant value – in this case, an integer value – and we are going to find out the kind of event id that is fired and check if it is a mouse click. The second parameter is a long parameter so it's called lparam for long and this is not a mistake, it's the way that you can pass values by reference in mql4, the third parameter is called dparam because it's a double value, and the last one is called sparam because it's a string value, and that's basically it. So what can we do? We want to check if the id equals chart event click – all in capital letters – and if that is the case we will use a message box that will contain the text: “the chart was clicked”, it will output the x value that is what is inside of the l parameter, we also want to know the y value that's inside of the d parameter, this message here is just their heading and our message box will only have one button, that's the okay button and that's about it. When you are done you can click on the compile button here or press F7 on your keyboard… Oh, I did something wrong because this one needs to be the event id, so let's recompile the code and this time it worked. If this is also the case for you, you can click on a little button here or press F4 to go back to Metatrader. And in Metatrader right now when I click on a live chart nothing is happening so let's drag the expert advisor right on to the live chart, click on ok, now you should see the little symbol here and when you click on to the chart the message box comes up right away. By the way that wouldn't work in the strategy tester, if you would like to do something like this and use the strategy tester you would need to use the comment statement because the message box is not supported but it works on our live chart and in this little video you have learned how to get the coordinates for a mouse click on the chart and show a message box with the values and you have coded it yourself with a few lines of mql4 code.

What does & and const mean in MQL4/MQL5 functions

1122
60
14
00:14:42
27.02.2021

In answer to a question on why & is used in functions and how the const keyword affects it. Free downloads for Metatrader 4 and 5 MT4: 🤍 MT5: 🤍 Follow our regular market updates: Web: 🤍 Twitter: 🤍 Facebook: 🤍 Telegram: 🤍

How To Setup Trading Rules For Programming In MQL4

99
3
4
00:07:58
14.04.2023

How to program in MQL4 for beginners. In this video I show how to structure and setup your code prior to creating code. Setting up this structure for your code will will help you in many ways like the following: Finding errors, making it easier for others to review your code, making the code more streamline, making sure your code has all the rules and implementations added and also it can help you improve coding in other languages since you are setting a standard for yourself. I show multiple ways in creating these basic setups. I hope this helps you on your programming journey. Check out other information about trading and investing at my website 🤍 - If you enjoy this video, please like and share this video. Don't forget to subscribe to this channel for more updates. Stay Tuned. Check out my programming services, create indicators and trading Robots for clients 🤍 If you are looking for a custom made trading robot, indicator, script or program check out my fiverr 🤍 Check out my telegram group for direct access and updates 🤍 Check out other information about trading and investing at my website 🤍 Forex Trading account join start today 🤍 ???If you want a 1 free share of stock company click this below!??? 🤍 Get free $10 worth of crypto making and funding a Coinbase Account 🤍 helpful information for the video expert advisor, forex, forex trading, metatrader, algo trading, ea, automated trading, trading robot, forex robot, mql4, mql4 tutorial, mt4, metatrader 4, forex expert advisor, moving average ea, metaeditor, mql4 course, expert advisor forex trading, automated forex trading, moving average crossover expert advisor, programming, daytrading, trading, forex, mql4 reference, mql4 forum, mql4, mql4 tutorial, mql4 lessons, learn mql4, moving average, sma, simple moving average, expert advisor,ea, metatrader, metaeditor, metaquotes, oninit, ontick, MQL4

Learn how to make an mql4 DLL using Pass By Reference Coding

2211
68
11
00:18:15
25.07.2020

In this video you will learn how to make our dll pass variables 'by reference' and have the dll change the values in memory. It's not as confusing as it sounds. Give it a look if you've watched the previous video below. Learn mql4 coding at 🤍 Previous video you need to watch first. 🤍 Video from last year about passing by reference. 🤍 To download the video and the files subscribe here: 🤍

MQL4 TUTORIAL BASICS - 10 HOW TO CODE A CUSTOM FUNCTION

8523
119
2
00:05:15
24.03.2019

🤍 With MQL4 we can Code a custom function when we need one for our Expert Advisor. In this Video we are going to create a function, double a value and return it to the main function... In this video we are going to create a custom function, in our case the function will double a value each time when the price changes so let's find out how to do that. First we want to click on a little icon here or press a F4 in Metatrader and now you should see the Metaeditor window and here you want to click on: “File/ New/ Expert Advisor (template)” from template, “Continue”, I will call this file: “SimpleFunction”, click on “Continue”, “Continue” and “Finish” and now you can delete everything above the “OnTick” function and the two comment lines here. First we want to create a static variable for the counter, it will be called: “counter”, it's an integer (int) variable and the modifier: “static” is used to declare a local variable. A local variable is only available inside of one function, when you highlight the word: “static” and press F1 you will see that the “MQL4 Reference” says that the storage class of “static” defines a static variable, the static modifier is indicated before the data type and it exists throughout the function lifetime. Now we want to call an external function to double the value, the function we call will be named: “DoubleTheValue” (double the value) and we will pass the “counter” from the static variable here. Let’s create an output for the current value by using the “Comment” function, it will output the words: “Counter Value” and the current value of the “counter” on our screen but if we compile the code right now we will get an error that says that the double the value (DoubleTheValue) function is not defined, so let's create that function. The first thing is always to define what kind of value will be returned by the function, in our case we are going to double whole numbers, so we will return an integer value (int), this is the name of the function, I have called it: double the value (DoubleTheValue) but you could use any other name and inside the round braces here we pass the value of the “counter” to the new function, here is where we pass it when we call the function: double the value (DoubleTheValue) and here is where we get the value inside of the function and you can see that we use another name here, you don't need to call it “counter” because this is just the value of the “counter” that has been passed here. Let’s add two curly braces so this would be the declaration of the custom function but when we compile now we will see that “not all control paths return a value” and that is because we didn't do anything inside of the function and we have not returned a result, so let's take the counter value (CounterValue), multiply it by 2 and store the result in a new variable called: double value (DoubleValue) and afterwards we are going to return the result by using the “return” command, actually it's a “return operator”, it terminates the current function execution and returns the control to the calling program and that's about it. So let's compile the code one more time, now you should not get any errors and no warnings and if that is the case you can click on the little button here or press F4 to go back to Metatrader. And inside of Metatrader we want to click on: “View/ Strategy Tester” or press CTRL and R, please pick the new file: “SimpleFunction.ex4”, enable the visual mode here and start a test and now you should see the counter value and a doubled value that comes up every time the price changes, this is a very simple example we only do one thing inside of the custom function and we only pass one parameter, you could perform much more complicated stuff but in this short video you have learned how to create a custom function with MQL4 and you have done it yourself with a few lines of MQL4 code.

MQL4 How to get your expert or indicator inputs from a file

2813
60
19
00:29:09
08.05.2022

This video shows how to use a file to set inputs for your expert or indicator. You might use this if inputs are being set by an external application or to remotely update settings on your VPS expert See the Orchard blog post at: 🤍 To download the Metatrader 4 and 5 platforms and open demo accounts MT4: 🤍 MT5: 🤍 Related Videos and Playlists MQL5 video: 🤍 Do you want to suggest or vote for a topic? 🤍 Web: 🤍 Twitter: 🤍 Telegram: 🤍 00:00 - Start 00:11 - Introduction 01:16 - Donchian Channel Indicator 09:47 - Donchian Channel Demo 10:45 - Mods to read from file 26:32 - Demo from file 27:54 - Conclusion

How To Code DeMarker Indicator On MQL4 / MT4

134
5
1
00:10:02
16.06.2023

Here is a how to guide for programming the DeMarker indicator on #MQL4 #MT4 platform. I show step by step how to create and use strategy tester for the indicator. I also explain how to use the indicator. If you need the code it will be on my website. If you like to buy cryptocurrencies please check out my link below! 🤍 Check out other information about trading and investing at my website 🤍 Check out my programming services, create indicators and trading Robots for clients 🤍 If you are looking for a custom made trading robot, indicator, script or program check out my fiverr 🤍 Check out my telegram group for direct access and updates 🤍 Forex Trading account join start today 🤍 ???If you want a 1 free share of stock company click this below!??? 🤍 Get free $10 worth of crypto making and funding a Coinbase Account 🤍 Other details for the video. expert advisor, forex, forex trading, metatrader, algo trading, ea, automated trading, trading robot, forex robot, mql4, mql4 tutorial, mt4, metatrader 4, forex expert advisor, mql4 course, expert advisor forex trading, automated forex trading, programming, daytrading, trading, forex, mql4 reference, mql4 forum, mql4, mql4 tutorial, mql4 lessons, learn mql4, Demarker indicator, Demarker trader, demarker trading strategy

MQL4 Tutorial Bootcamp2 - 5 Check Any Trend Module

4510
29
1
00:02:35
26.02.2016

🤍 If we want to check several timeframes, it would be obviously a lot of work to create a separate module for each time frame so we want our module to handle all the time frames and we don’t want to recode it every time. And, we want people to be able to change the time frame in the expert advisor properties. Please hit the F4 key to bring up Meta Editor and remove every occurrence of the time frame value. So now, we would call our module CheckAnyTrend. And we would now declare a variable called extern double TrendFrame with the value of 10080. If you mark the word extern, and hit the F1 key, you will see in the MQL4 reference that external variables are available from the properties window. In the OnTick function, we want to call the CheckTrend function and handover the value TrendFrame to calculate the trend. Now, I open the CheckTrend MQ4 file and save it with the name CheckAnyTrend.MQ4. Right here, within the round brackets, it will receive the double value TrendFrame and it will now use the value TrendFrame to calculate the trend. So we have no fixed numbers anymore and now, we would be able to use our module for each and every time frame. Don’t forget to save it, and I will also give the main expert advisor a new name. The compilation succeeded but we got warnings. The reason is: The iMA function expects an integer for the time frame and we have used the double value. We are going to fix this in the next part. For now, hit the F4 key, select the new expert advisor and hit the Start button. Okay it works. In fact, the double value is more accurate than an integer value. This is the reason it says it’s a possible loss and it’s a warning so you should correct it, but you don’t absolutely have to, everything you absolutely have to correct would have created an error over here

Mql4 Structures... How do you use them?

4513
184
22
00:20:34
24.12.2019

Mql4 Programming Tutorials and Forex Trading Training. 🤍 Learn to trade here. 🤍 My Expert: Jimdandy Trade Management Tool.. Free download 🤍 My Trade Simulator: DownLoad Skill Builder and hone your trading skills. 🤍 My simple kindle book at: 🤍 Tip Jar: 🤍 Be a supporter: 🤍 Structures are very similar to classes.. Kind of the step between enumerations and classes if you will. Hopefully after this video you will understand how to write your own new data types using structures.. Thank you patreon patrons..

Add automation to your structures for MQL4 and MQL5

4652
124
30
00:20:12
09.07.2022

How to add constructors and inheritance to simple structures to improve code automation. You can set up structures to fill data automatically and to assist with your program logic. This video shows techniques for auto loading information from the current order or position but the same techniques can be applied in other situations. To download the Metatrader 4 and 5 platforms and open demo accounts MT4: 🤍 MT5: 🤍 Web: 🤍 Discord: 🤍 Twitter: 🤍 Telegram: 🤍 00:00 - Start 00:06 - Introduction 00:59 - Usual structure use 04:20 - Structures with constructors 10:12 - Inheritance 18:17 - Conclusion

MQL4 Tutorial - Language Basics #Structure

1408
19
7
00:14:12
10.03.2021

In this video, I'm going to teach you the basics of the MetaTrader 4 (MT4) language. This video will cover the language's structure, keywords, and some basic Trading Concepts. If you're new to MetaTrader 4 or just want to brush up on your basics, this video is for you! I'll teach you the basics of the MT4 language, including its structure, keywords, and some basic Trading Concepts. After watching this video, you'll have a better understanding of the language and be ready to start trading!

MQL4 TUTORIAL BASICS - 5 HOW TO DO BASIC CALCULATIONS

7915
104
2
00:04:57
17.02.2019

🤍 With Metatrader4 and MQL4 we can code an Expert Advisor for automated trading. In this video we are checking out how to do some basic calculations in Metaeditor... In this video we want to talk about simple calculations, obviously whenever you use an automated program like this Expert Advisor you need to do calculations. For example in our case we calculate the equity or the max number of allowed positions, so let's find out how to do that. First we need to click on the little icon here or press F4 to bring up Metaeditor and in Metaeditor we click on: “File/ New/ Expert Advisor (template)” from template, “Continue”, I will call this file: “SimpleCalculations”, click on “Continue”, “Continue” and “Finish” and now you can remove everything above the “OnTick” function and let's also delete the two comment lines here. So let's start by defining two integer variables, they should be 5 and “b” should be 3, and let's use the “Comment” function to output: ”The result is:” followed by the calculation. In our case we start with “a” plus “b” and that's it, when you're done you can click on the “Compile“ button or press F7, you shouldn't get any error messages here and if that is the case you can click here or press F4 to go back to Metatrader. In Metatrader you want to click on: “View/ Strategy Tester” or press CTRL and R, let's pick the new file: “SimpleCalculations.ex4”, enable the visualization and start the test. And now we see the text: “The result is: 8” because 5 plus 3 is 8, let's try a minus “b”, recompile the code, stop the test and start a new one, and now the result is 2 because 5 minus 3 equals 2. We can also try to multiply “a” and “b”, so now it's 5 times 3 and that of course equals 15. So far so good, let's try “a” divided by “b” and this time Metatrader says that the result is 1! – and the reason is that we have used integer variables so we can only deal with whole numbers. Let’s change the data type and use “double” and now we should get “The result is: 1.6667”. That is better! Okay, what do you think is going on when we try to calculate this expression here? “a” equals 5, 5 plus 5 would be 10, “b” equals 3, 3 times 10 would be 30, so let's find out! – and our strategy tester says that the result is 20, and the reason is that the multiplication is calculated first, so that's 5 times 3 and that equals 15 and afterwards “a” is added, and if you want to change the calculation order you can use round brackets and now you should get the result is 30 because everything within round brackets is calculated first and the part outside the brackets comes afterwards. Okay, that's it for the basic calculations. If you open the MQL4 Reference by pressing F1 you will find lots of other math functions and it's always a good idea to write such a small program here to find out how they work because in the future you are going to do more complex stuff and it will be helpful if you understand the basic stuff first because in this video you have learned how to do simple calculations and how to output the result on the chart and you have done it yourself with a few lines of MQL4 code.

Passing by reference ANSI or Unicode Strings to mql4 DLL while Properly Managing Memory Leaks

1076
49
7
00:23:07
08.08.2020

When passing ANSI or Unicode Strings to our mql4 Dll we must be careful about managing memory leaks. What's a memory leak you ask? It is bits of code left in memory that builds up and crashes our computer. This video will explain how to prevent this and also how to pass ansi chars.. and unicode shorts back and forth to our dlls.. Thank you patrons.. remember to hit that thumbs up!.. or down... Learn Mql4 Programming at 🤍 Learn to trade here. 🤍 My Expert: Jimdandy Trade Management Tool.. Free download 🤍 My Trade Simulator: DownLoad Skill Builder and hone your trading skills. 🤍 My simple kindle book at: 🤍 Tip Jar: 🤍 Support the Channel and download videos and files at... 🤍 and/or...Be a supporter: 🤍 Subscribe to the 2013 archives and download all of the videos and files. 🤍 Please like, share, and subscribe and click the notification bell. 🤍

MQL4 TUTORIAL BASICS - 117 SIMPLE MULTI CHART TREND

2537
42
0
00:06:33
30.05.2021

🤍 With MQL4 for Metatrader4 we create an Expert Advisor to calculate the trend for multiple charts with an Exponential Moving Average. In this video we are going to create an expert advisor that is able to calculate trends on two different charts by using an exponential moving average. So let’s find out how to do that with MQL4. To get started, please click on a little icon here or press F4 on your keyboard. Now you should see the Metaeditor window and here you want to click on File, new File, Expert Advisor from Template, continue. I will call this file simple multi chart trend. Click on continue, continue and finish. Now you can delete everything above the Ontick function and let’s also remove the two comment lines here. We start by creating a string variable. One is for the signal on the current chart, and let’s add another one, this time for the Euro US dollar. Afterwards we can use the integrated IMA function that comes with MQL4. It will calculate our exponential moving average for the current symbol on the chart and the currently selected period on that chart. We are going to calculate it for 20 candles. We are not using a shift value. The mode is mode underscore Ema, that stands for exponential moving average. The result should be calculated based on the close price and we want to calculate it for the current candle zero. Now let’s repeat the whole thing and this time we are going to calculate an old EMA 20. Everything is similar, but the result is calculated based on the value for candle two. Now comes the interesting part. This time we want to calculate it for the Euro US dollar, so we need to exchange the first parameter here. I have used the hard coded Euro US dollar currency pair. When you open MetaTrader, you should see how it is shown on your own account. Depending on the account type, you could maybe see a little suffix here. So please make sure that you name it as it is shown for the account type you are using. The rest is like in the first line, and as you might have guessed, we need to calculate the same thing for candle two because now we are able to check the trend. If the current EMA 20 is above the old EMA 20, that would be a buy signal for the current chart, and that’s when we assign buy to our chart signal. In the other case, if the EMA 20 is below the old EMA 20, that would be a sell signal, and that’s when we assign sell to our chart signal. Now it’s easy to do that for the Euro US dollar, everything is similar. All you need to do is to check if the value for the current EMA of the Euro US dollar is above the old value. That would be a buy signal, or if it is below the old value for the EMA Euro US dollar, that would be a sell signal. Finally, we want to add a comment statement that will output the current values for both charts and the trend for both charts and that’s about it. If this was too fast for you or if you have no idea what all the code here does, you maybe want to watch one of the other videos in the basic video series, or maybe even the premium course on our website might be interesting for you. But for now, please click on the compile button or press the F7 key. You shouldn’t get any errors here, and if that is the case, you can click on a little button here or Press F4 to go back to MetaTrader. And in MetaTrader, you want to pick an empty chart. Select Insert, Indicators, Trend, Moving Average. We want to use a moving average that is calculated for 20 candles. No shift value. The Ma method should be exponential, apply to the close price, you can pick a color and click on Okay. Now the moving average shows up and now you want to rightclick into the chart. Select template, save template and save it as tester.tpl and default.tpl. Tester.tpl is what will show up in the strategy tester and default TPL is what you will see when you open a new live chart. Today is Saturday so the markets are closed and we only can do a backtest. So I click on OK. If you don’t see the strategy tester, you want to click on View, Strategy Tester or press Control and R. Please pick the new file Simple Multi Chart Trend.ex4. Mark the option for the visual mode here and start your test. Of course you need to have historical data for both currency pairs. I have imported that before I started to make this video. Let’s speed that up a little bit and you see that it actually works. You can see that buy and sell trends are calculated. And in this little video, you have learned how to calculate multiple trends for different charts and you have coded it yourself with a few lines of MQL4 code.

Why Doesn't This Mql4 Logic Work?... Programming mql4 logic

2390
93
23
00:10:59
13.10.2020

Ever had Mql4 logic that just doesn't work as expected and wonder why? Programming 'If' statements can be trickier than you think! Watch and learn! Mql4 Programming at 🤍 Learn to trade here. 🤍 My Expert: Jimdandy Trade Management Tool.. Free download 🤍 My Trade Simulator: DownLoad Skill Builder and hone your trading skills. 🤍 My simple kindle book at: 🤍 Tip Jar: 🤍 Support the Channel and download videos and files at... 🤍 and/or...Be a supporter: 🤍 Subscribe to the 2013 archives and download all of those videos and files. 🤍 How about a thumbs up? Please like, share, and subscribe and click the notification bell.

How To Program The Basics For A Beginners On MQL4 / MT4

114
4
1
00:12:47
16.06.2023

How to guide for programming the basic functions on #MQL4 #MT4 platform for beginners. I show step by step how to create, use and test. I go over how to use Bool, if, double, INT, Print, Comments, and Alerts. also explain how to use the indicator. If you need the code it will be on my website. If you like to buy cryptocurrencies please check out my link below! 🤍 Check out other information about trading and investing at my website 🤍 Check out my programming services, create indicators and trading Robots for clients 🤍 If you are looking for a custom made trading robot, indicator, script or program check out my fiverr 🤍 Check out my telegram group for direct access and updates 🤍 Forex Trading account join start today 🤍 ???If you want a 1 free share of stock company click this below!??? 🤍 Get free $10 worth of crypto making and funding a Coinbase Account 🤍 Other details for the video. expert advisor, forex, forex trading, metatrader, algo trading, ea, automated trading, trading robot, forex robot, mql4, mql4 tutorial, mt4, metatrader 4, forex expert advisor, mql4 course, expert advisor forex trading, automated forex trading, programming, daytrading, trading, forex, mql4 reference, mql4 forum, mql4, mql4 tutorial, mql4 lessons, learn mql4, Programming for beginners, Programming on MQL4, expert advisor for beginners,

MQL4 to MQL5 Expert Advisor Conversion Ichimoku Programming Example

8992
134
62
00:38:22
08.05.2022

IchimokuTrader MT4 Source Code: 🤍 Complete MT5 Programming Course: 🤍 Recommended Broker: 🤍 Free Trading Journal: 🤍 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: 🤍 BM Trading: 🤍

MQL4 TUTORIAL BASICS - 92 SIMPLE DEVIATION CHANNEL OBJECT

1472
39
0
00:07:19
18.10.2020

🤍 With MQL4 for Metatrader4 we create a Deviation Channel object which is drawn and adjusted automatically as a trend channel directly on our Forex Chart. In this video, we are going to create a deviation channel object like this one. So let’s find out how to do that with MQL4. To get started, please click on a little icon here or press F4 on your keyboard. Now you should see the MetaEditor window, and here you want to click on file, new file, Expert Advisor from template. Continue. I will call this file SimpleDevChannelObject. Click on continue. Continue and finish. Now you can delete everything above the OnTick function and the two comment lines here. First, we need to calculate the number of candles on the chart and to do that, we use the function WindowsFirstVisibleBar, that will return the index or the number of the first visible bar on the current chart. I also would like to know the number for the lowest candle, and we can calculate that by using iLowest for the current symbol on the chart and the currently selected period. For low prices, we use MODE_LOW, for all the candles on the chart starting with the current candle, 0. Now let’s repeat the whole process and calculate the highest candle. That can be done by using iHighest. For the current symbol on the chart and the currently selected period, this time we use MODE_HIGH, for all the candidates on the chart. And we also start with candle 0. Now, before we create a new object, we use ObjectDelete to select the last channel object that we have created. We will not have such an object the very first time we call this function, but afterwards, we want to make sure that the former object that is called SimpleChannel will be deleted and afterwards we can draw another one. And that is done by using ObjectCreate. So let’s find out what parameters we need to fill. The first parameter is 0, that is for the current chart that we are using. The second parameter is the name of the object. It is called SimpleChannel. The next parameter is called OBG_STDDEVCHANNEL. So let’s mark that and press F1. Here is the object type that we want to create. There are lots of different object types and when we click on this one, we see that it will create a standard deviation channel right on our chart. That’s what we want. And then the next one parameter we are telling MetaTrader to draw it on the window 0, that’s the main window with the candles. If you like to use oscillators, you know that there are things like the MACD and when you use that one, you will create a second window below the candle chart window, but we don’t want to do that. The next parameter is for the point in time, that’s here. We have date times here and values here, and I would like that the deviation channel is drawn from the point in time where the first candle on the chart is drawn. The next parameter is for the lowest price of the lowest candle. I would like the channel to be drawn for the current candle that’s candle 0. Once again, I pass the low of the LowestCandle as a parameter here. And the second line should be drawn for all the candles on the chart. And here, I would like to have the high of the HighestCandle as a point of reference. And that’s it for the object creation. These values might not be perfect for you, so feel free to use your own values here, but it works for this simple example. Now let’s change a few values. The first one is for the color and to change that we use ObjectSetInteger for the chart ID 0, and the object that is called SimpleChannel, we want to change the property called object property color, and change it to yellow. Let’s continue and do that again. This time we want to change the object property style and use a solid line. So we use STYLE_SOLID. The next one is for the object width. This one is called OBJPROP_WIDTH and we use 3. That will give us a thick line. Let’s add another one. This one is called ObjectSetInteger for OBJPROP_RAY. That will give us a prediction and draw the channel right into the future. And there is another one. This one is called OBJPROP_DEVIATION. Let’s set this value to 2, and that’s about it. If you have no idea what all the code here does, or if this was too fast for you, maybe you want to watch one of the other videos in this basic video series, or maybe even the premium course on our website might be interesting for you. For now please click on the compile button or press F7 on your keyboard. I didn’t get any errors, and if this is the case, you can click on the little button here or press F4 to go back to MetaTrader. And in MetaTrader, you want to click on view, Strategy Tester or press control and R. Please pick the new file SimpleDevChannelObject.ex4, mark the option for the visual mode and start your test. Here we are. This is the deviation channel, and we see it is moving. So let’s zoom into the chart and you will see that the majority of the candles on the chart is inside of our deviation channel.

LEARN MQL5 TUTORIAL BASICS - 107 SIMPLE ARRAY REFERENCE

4390
65
0
00:04:58
14.03.2021

🤍 With MQL5 for Metatrader5 we create an Expert Advisor that can pass an array as a parameter to a user defined function - by reference In this video, we are going to find out how we can pass a whole array as a parameter to a different function, this is possible. So let's find out how to do that with an Mql5. To get started, please click on a little icon here or press F4 on your keyboard. Now you should see the Metaeditor window. And here you want to click on file, new file, Expert Advisor from template, continue. I will call this file simple array reference. Click on continue. Continue and finish. Now you can delete everything above the Ontick function and the two comment lines here. We start by creating a simple small array for integer values, because this is just a simple example to show the concept. And it makes a lot of sense to create small programs like this one to find out how things work. So now we assign values to our array. Please remember the first value can be found when you access index zero. All the array values are whole numbers. We want to use those numbers for a simple calculation. So we want to pass the whole array to a function that is called addvalues. And please remember, usually we are going to pass parameters, but this is a whole array and the returned result should be shown on the chart. So let's add a comment statement here that will show us the text. The returned result is followed by the result that we have calculated. But this function doesn't exist, so we need to create it now. And here is where we need to add this little symbol here. It's the ampersand symbol inside of our user defined function. We want to add the values for the array for index zero, one and two. And afterwards we are going to return the results to our main function, and that's about it. If you have no idea what all the code here does, all of this was too fast for you, you probably want to watch one of the other videos in the basic video series first. By the way, on our website, we have a link for additional courses where you can get the source codes for this basic video stuff. That's also where you can find the link for the Premium Course. This was a suggestion of a Premium Course member, and if you are a Premium Course member and have an idea for a video like this one, please let me know. For now, let's click on View toolbar and press the Compile button. Or you could also press F7 on your keyboard. You shouldn't get any errors. And if that is the case, you can click on a little icon here or press F4 to go back to Metatrader. And in Metatrader you want to click on View Strategy tester or Press Control and R. Please pick the new file simple array reference dot .ex5. Mark, the option for the Visual mode, if you can't see that, you might need to drag this little bar upwards. So now please click on start. And here is our returned result. It is fifty six. We have added the first three values here. That is eight plus 16. So this would be twenty four. And when we add this value, this will be fifty six. So let's add actually another value here. Recompile the code and when we stop the test and start a new one, you should see a new value that is returned. This time it is one hundred and twenty. So our little Expert Advisor works as expected. And in this little video you have learned how to pass an array to a user defined function and you have coded it yourself with a few lines of MQL5 code.

Why do I write for loops in reverse? MQL4 and MQL5

2904
142
29
00:10:48
23.07.2022

You often see in my videos that I write for loops to count down from the end to zero. It might seem more natural to count up from zero but i have reasons for writing loops in this way and you need to understand how for loops work and impacts on code performance. In this short video I explain how the structure of a for loop works and then why I write loops as I do. = If you are looking for a broker for MT5 or MT4 consider supporting our channel by using our broker by following one of these links. MT4: 🤍 MT5: 🤍 Web: 🤍 Discord: 🤍 Twitter: 🤍 Telegram: 🤍

How To Code Fractals Indicator On MQL4

451
9
7
00:06:27
02.06.2023

Here is a how to guide for programming the Fractals indicator on #MQL4 #MT4 platform. I show step by step how to create and use strategy tester for the indicator. I also explain how to use the indicator. If you need the code it will be on my website. If you like to buy cryptocurrencies please check out my link below! 🤍 Check out other information about trading and investing at my website 🤍 Check out my programming services, create indicators and trading Robots for clients 🤍 If you are looking for a custom made trading robot, indicator, script or program check out my fiverr 🤍 Check out my telegram group for direct access and updates 🤍 Forex Trading account join start today 🤍 ???If you want a 1 free share of stock company click this below!??? 🤍 Get free $10 worth of crypto making and funding a Coinbase Account 🤍 Other details for the video. expert advisor, forex, forex trading, metatrader, algo trading, ea, automated trading, trading robot, forex robot, mql4, mql4 tutorial, mt4, metatrader 4, forex expert advisor, mql4 course, expert advisor forex trading, automated forex trading, programming, daytrading, trading, forex, mql4 reference, mql4 forum, mql4, mql4 tutorial, mql4 lessons, learn mql4, Fractals indicator, fractal trading, fractals trading strategy, fractals investing, fractals forex

MQL4 TUTORIAL BASICS - 94 SIMPLE SPREADSHEET FILE WRITER

6078
142
0
00:06:19
01.11.2020

🤍 With MQL4 for Metatrader4 we create an Expert Advisor that can write price values into a spreadsheet csv file that is created right out of the code in this video... In this video we are going to create an expert advisor that is able to write values for the high and the low price of the last candle into a spreadsheet. So let’s find out how to do that with MQL4. To get started, please click on the little icon here or press F4 on your keyboard. Now you should see the MetaEditor window, and here you want to click on File, New File, Expert Advisor from template, Continue. I will call this file Simple Spreadsheet Writer. Click on Continue, Continue, and Finish. Now you can delete everything above the OnTick function and the two comment lines here. Static means that a variable will remember the value inside of this function for as long as the program is running. I need two variables, one for the last high price and one for the last low price, because that makes it possible to compare if the value for the last high is equal to the high price for candle one, and if the last low price is not the one that we see for candle one now, we know that we have a new candle, and that’s when we want to write the values into our file. We need to define a file name. In my case, I used the file name Spreadsheet.CSV. This file extension here is recognized by most spreadsheet solutions like Excel or LibreOffice. I think it stands for Comma Separated Values. And now that we have the file name, we try to open the file. That can be done by using File Open. For our spreadsheet, here we want to use File Read and File Write. The mode for the file is File_CSV, and we are going to use File ANSI, so let’s mark that and press F1. And you will see that we can use Unicode or ANSI code. Unicode would be used for special characters, but we are only going to use values and simple text. I don’t want to replace the current content in the file, so I use FileSeek for our file handle here. I start with the index zero, and I want to go to the end of the file, so I use SeekEnd for the file end. And now we can append the content. To do that we use File Write for our spreadsheet handle, and each value is separated with a comma here. This is text. This is the value for the time stamp. Time is a value in seconds since the 1st of January in 1970. This is for candle one, and I would also like to append the text High and the high price for candle one, followed by the text Low and the low price for candle one. After we have written, we need to close the file. That is done by using File Close for our spreadsheet handle. And finally, we are going to assign the current value for the high price and the low price of candle one to the variables Last High and Last Low, because the next time we call the function, the current values will be the last ones. Now let’s close the IF loop here. I would like to add a comment statement to output the values on the chart, and that’s about it. If this was too fast for you, or if you have no idea what all the code here does, maybe you want to watch one of the other videos in the basic video series, or maybe even the premium course on our website might be interesting for you. For now, please click on the Compile button or press F7 on your keyboard. We don’t have any errors here, and if that is the case, you can click on a little button here or press F4 to go back to MetaTrader. In MetaTrader you want to click on View, Strategy Tester, or press control and R. Please pick the new file Simple Spreadsheet Writer.ex4. Mark the option for the visual mode and start your test. Here we see different values. So let’s find out if we have created the spreadsheet file. So please click on File, Open Data Folder. This will show me all the folders below the Terminal folder here. I need to click on Tester, Files, and here is my Spreadsheet.CSV file. Let’s double click it. Here is the preview. I click on Okay, and indeed the spreadsheet file is working. So now you could append other values here. All you would need to do is to change this one line here. And in this little video you have learned how to create an expert advisor that is able to write values into a spreadsheet, and you have coded it with a few lines of MQL4 code.

Mql4 Programming When To Use A + Instead of a Comma in a String

1319
27
10
00:29:46
15.03.2015

Mql4 Progamming Tutorials and Forex Trading Training. 🤍 Download my Trade Management Tool at 🤍 Learn from my kindle book at: 🤍 Please consider becoming a Patreon patron at 🤍 Make a PayPal donation.. 🤍 Please remember to give it a big thumbs up and share it around through your favorite social media. In this video I explain why we sometimes use a comma to separate parameters and arguments when constructing a string, and sometimes we use the plus + sign. It can be confusing when you compile an old file in the new compiler and get all of those warnings. Hopefully this will tell you what to do with them.. Also I get to try out my green screen.. If you'd like to support my channel, check out the affiliate links below to the two things I get asked about most... my hat and my mic... My Mic a Shure 55SH Series II.. 🤍 My Authentic Greek Fisherman's Cap.. 🤍 My Green Screen and Lights.. Green Screen with Lights. 🤍

Mql4 Lesson 36 "Making Sure You Can Trade"

3534
39
00:22:12
31.07.2014

Learn to code at 🤍 In this Mql4 Lesson I show you how to put a few little checks in your code to help remind us that we may not have the settings of our platform or the expert itself ready to take a trade. Perhaps this will help you in your coding. To learn more about coding you can visit. 🤍 and to download some free files you can visit 🤍 The indicator that I am working on this video is from becoming a member at 🤍 I have no affiliation with them at all. I am merely playing with their indicator as a project.

Using the OnTrade event in MQL4

4962
138
26
00:26:30
25.07.2021

MQL5 includes an OnTrade event that fires when a trade change happens. This code will show you how to implement something similar in MQL4 Downloading the code The code shown in the video is available to our premium discord members. Premium membership is a monthly subscription. To join our discord server and download this and other code 🤍 Free downloads for Metatrader 4 and 5 MT4: 🤍 MT5: 🤍 Follow our regular market updates: Web: 🤍 Twitter: 🤍 Facebook: 🤍 Telegram: 🤍 Discord: 🤍

Parabolic SAR Indicator Trading Strategy With MQL4

180
7
6
00:07:55
02.11.2022

How to guide for the Parabolic SAR indicator programming and use on MQL4. I cover how to use this indicator in an Expert Advisor step by step. I also provide the code in the comment section and also have the code on my website. If you need the code check it out and use and modify it for free. #mql4 #programming #howto For the video details please check out my website for all the details and more 🤍 If you are looking for a custom made trading robot, indicator, script or program check out my fiverr 🤍 Thank you for watching and please Like, Share and Subscribe! Please check out my website for more about trading, politics, business and money! 🤍 Check out my programming services, create indicators and trading Robots for clients 🤍 Join our Telegram group for updates and access to myself 🤍 ???If you want a 1 free share of stock company click this below!??? 🤍 Get free $10 worth of crypto making and funding a Coinbase Account 🤍 Subscribe now: 🤍 ?? RECOMMENDED VIDEOS ?? ?? 5 books to read: (🤍 Other details for the video. parabolic sar, parabolic sar indicator, parabolic sar strategy, parabolic sar trading strategy, parabolic sar indicator strategy, parabolic sar scalping, parabolic sar indicator explained, parabolic sar settings, how to use parabolic sar, parabolic sar strategy crypto, parabolic sar day trading, parabolic sar forex, parabolic sar strategy forex, parabolic sar explained, parabolic sar indicator settings, how to use parabolic sar indicator, parabolic sar indicator forex, best parabolic sar strategy, how to trade parabolic sar, parabolic sar formula, parabolic sar tested, parabolic sar scalping strategy, trading, parabolic sar buy signals, parabolic sar trading, parabolic sar intraday trading

Differences Between Mt4 and Mt5 : Converting Mql4 Code to Mql5. Some Issues.

40338
429
67
00:22:23
13.12.2016

In this video we note the differences between mt4 and mt5 code. When converting mql4 to mql5 something as simple as 'Bid' in mql4 takes an entire line of code in mql5. This is the tip of the iceberg when dealing with converting mql4 code to mql5. More code is required in mql5 to accomplish even simple things. Leave a comment below with your opinions of the conversion experience. Give me some idea of what you'd like to know how to re-code... Mql4 Progamming Tutorials and Forex Trading Training. 🤍 DownLoad Skill Builder 🤍 Management Tool: 🤍 My kindle book at: 🤍 Become a Patreon patron 🤍 Don't forget to Like and share and become a Patron!. Like, Share and Subscribe PipPip #mql4...

How to Create then Write to and Read from a File using mql4 Programming

9601
161
21
00:18:25
20.06.2020

Ever wonder how to CREATE and then WRITE to or READ from a file using mql4 programming? In this video I will use the file writing and file reading functions to save parameters so that our indicator will open the way that it was left when closed. You will learn how the FilesExist, FileOpen, FileClose, FileWrite, FileReadNumber and FileReadString functions work. To learn Mql4 Coding go to 🤍 To download this video and the file written please subscribe to the archives. 🤍 I hope you are able to use this basic information in your projects. A special thanks go to my patrons who help support me and those subscribed to the archives. If you have not already subscribed, please do so and choose to get notified by clicking the bell. Merely subscribing will NOT let you know when I release a new video. I'm not sure why... It seems that is what subscribing would mean doesn't it? LOL.. Become a patron if you like at 🤍 Learn to trade here. 🤍 My Expert: Jimdandy Trade Management Tool.. Free download 🤍 My Trade Simulator: DownLoad Skill Builder and hone your trading skills. 🤍 My simple kindle book at: 🤍 Tip Jar: 🤍 Subscribe to the 2013 archives and download all of the videos and files from 2013 🤍

MQL4 TUTORIAL BASICS - 110 SIMPLE MULTIPLE INPUT

4066
60
0
00:05:32
04.04.2021

🤍 In this video we are going to create an Expert Advisor that is able to offer an enumeration as an input list for the user - without the need to recompile the code... In this video, we are going to create an Expert Advisor that can use a so-called enumeration list of values that can be picked by a user without the need to recompile the code. So let’s find out how to do that with MQL4. To get started please click on the little button here or press F4 on your keyboard. Now you should see the Metaeditor window and you want to click on file, new file, Expert Advisor from template, continue. I will call this file simple multiple input. Click on continue, continue and finish. Now you can delete everything above the ontick function and let’s also remove the two comment lines here, we start by creating a list. The list should contain some entry signals. And if you mark this key word here and press F1, you will see that enumerations are there for a limited set of data that can be predefined, for example, for a list of months. We want to do that for a list of entry signals. And it’s also possible to assign a value here. So the first item is for random entries and we assign the value zero. The values are separated with commas. The next one would be for the EMA. That would be a value of one and so on. The list is short here because this is just a simple example. We could use a much longer list. The next step is to create an instance of that list. Don’t forget the modifier input here because this key word is used to make it available for the user and you can afterwards change the values in the Expert Advisor properties. Our list will be called choice and the default value will be random. I would also like to add a readable version so I create a string variable that is called entry. And inside of the ontick function we will check if the choice is equal to zero. That is the default value. And if that is true, we set the entry to random for the other entries in our list it is very similar. We always check for the value, we check for a value here and assign an entry type to our entryle variable. To check what is going on, we need to add a comment statement that will output the entry and the choice values directly on our chart. Usually you would add a few more functions here to handle all the different entries. But this is just to show how you can use enumerations as input variables. So for this simple example, this is enough, that’s basically it. If this was too fast for you or if you have no idea what all the code here does, maybe you want to watch one of the other videos or maybe even the Premium Course on our website might be interesting for you. That’s also where we have a link for some video courses that also contain those source code files that you can download. If you don’t want to type all that stuff. For now, please click on the Compile button or press F7 on your keyboard. That should work without any errors. And if that is the case, you can click on a little button here or press F4 to go back to Metatrader. And in Metatrader we pick an empty live chart. Please navigate to the file called simple multiple input and drag it on your chart. And here’s our choice box. We can pick one of the values that we have defined. By the way, this once again was an idea of a Premium Course member, and if you are a Premium Course member and have an idea for a video like this one, please let me know. So let’s pick a value here and click on, OK! And when the next day comes and we should see that we have picked the EMA value, that happened right now, the value for the choice is one. Now you can press F7. Change the value here, so let’s pick the ADX entry, click on OK, and right away we have a new value here for the entry and for the choice. So our little Expert Advisor is working as expected. And in this little video, you have learned how you can use an enumeration list of values to allow a user defined input without the need to recompile the code. And you have coded it yourself with a few lines of MQL4 code.

How To Code RVI Indicator On MQL4 | RVI Expert Advisor

165
6
1
00:08:20
13.02.2023

This is a beginner trading robot for MQL4 or MT4. I show how to create this basic expert advisor step by step. The coding for this is #MQL4 on #MT4. The RVI is a default indicator on the platform. The Relative Vigor Index (RVI) is a momentum indicator used in technical analysis that measures the strength of a trend by comparing a security's closing price to its trading range while smoothing the results using a simple moving average (SMA). This RVI trading robot is used on buys only so understand the code for it. You can use the code and modify it in other trading robots. Trading robots can greatly improve your trading and get you into higher probability trades. Thank you for watching and please Like, Share and Subscribe! Please check out my website for more about trading, politics, business and money! 🤍 Join our Telegram group for updates and access to myself 🤍 Check out my programming services, create indicators and trading Robots for clients 🤍 If you are looking for a custom made trading robot, indicator, script or program check out my fiverr 🤍 ???If you want a 1 free share of stock company click this below!??? 🤍 Get free $10 worth of crypto making and funding a Coinbase Account 🤍 Subscribe now: 🤍 ?? RECOMMENDED VIDEOS ?? ?? 5 books to read: (🤍 Other details for the video. mql4 tutorial, mql4 course, learn mql4, mql4 forum, mql4 reference, mql4 book, mql4 video, mql4 youtube, mql4 lessons, mql4 programming, forex, mql4 example, algo trading, expert advisor, trading, metatrader, mql4 programming for beginners, mql4 programming tutorial, forex trading, mql4 coding, mt4, mql4 for beginners, mt4 indicator counted, metatrader 4, automated trading, metatrader programming, trading tutorial, ea, metatrader4, programming course, mql4 programming lesson 1, trading robot, mql4 tutorials, mql4 courses, programming, metaeditor, algorithmic trading, indicator, forex robot, expert advisor tutorial, learn, mql4 code examples, mql4, day trading, forex trading, trading strategies, trading strategy, forex strategy relative vigor index, forex trading, rvi, relative vigor index strategy, relative vigor index indicator, rvi indicator

MQL4 TUTORIAL - ADVANCED SMA EXPERT ADVISOR

880
21
0
00:05:10
08.01.2023

🤍 With MQL4 for Metatrader we create an advanced Entry Signal for the Simple Moving Average Signal. It will be imported into a main module to open buy or sell signals that are trend based... In this video we are talking about one of the most popular entries that are out there; it's the Simple Moving Average entry. This one is for 20 candles, it creates buy or sell signals directly on our chart. Whenever the price is below the Moving Average that's a sell signal and when the price is above the Moving Average that's a buy signal. Now how can we create an Expert Advisor module that is able to output buy or sell signals or trade signals like this one in our main module? To do that please click the little button here or press F4 on your keyboard, now you should see the Metaeditor window and here you want to click on “File/ New/ Expert Advisor (template)” from template, “Continue”, I will call this one: “CheckEntrySMA” click on “Continue”, “Continue” and “Finish”, now you can delete everything above the “OnTick” function and the two comment lines here, we are not going to use “OnTick” here because this will be the module that is used to get the entries for our main module; we create a function called “string CheckEntry”; here we create a string variable for the signal that will be called: “signal”; we don't assign a value cause now we are going to calculate it. To do that we use the “iMA” function for the current symbol on the chart and the currently selected period, it is calculated based on 20 candles, we don't use a shift value. Let’s mark “MODE_SMA” a press F1 and you see that we are using the Simple Moving Average method and we also use “PRICE_CLOSE” to calculate the result based on the close price for the current candle. …and if the Simple Moving Average is below the Bid price, so if my Moving Average (MyMovingAverage) is less than Bid that would be a signal to buy so we assign the word “buy” to our signal. In the other case if the Simple Moving Average is above the Ask price, so if my moving average (MyMovingAverage) is greater than Ask that's a signal to sell so now we assign the word: “sell” to our signal. In the last step we are going to return the signal to the main module that's done by using the “return” statement to our main module; in this case is the Forex Trading Framework, it's basically a collection of functions that can open and handle positions. Here we are going to include our “CheckEntry_SMA” file. Now I need to recompile the code here and that worked without any warnings or any errors, you could download the Forex Trading Framework demo version from my website or you could use your own main module and after the compilation I click on the little button here or press F4 to go back to Metatrader and here we use a little trick we click on: “Insert/ Indicators/ Trend/ Moving Average” select a period of 20, a shift value of 0, the Moving Average method should be simple and it should be calculated based on the close price, so let's click on “OK”. Here is our Moving Average, let's right click into the chart, select “Template/ Save Template” and save it as “tester.tpl” because “tester.tpl” is what we are using in the back-test. If you don't see the Strategy Tester panel here you can click on “View/ Strategy Tester” or press CTRL and R, let's pick the main module – in my case it's the Forex Trading Framework – and click on start. …and here is our little Expert Advisor at work, it creates buy or sell signals and now you know how to calculate a Simple Moving Average in MQL4 and how to create buy or sell signals that can be imported into a main module like the Forex Trading Framework and you have coded it yourself with a few lines of MQL4 code.

MQL4 Tutorial Bootcamp 1 - 9 How to create dynamic output on your chart

10724
66
3
00:02:28
30.07.2016

🤍 Text on the chart is nice, but we want dynamic data to be included like the Ask price. The comment function in MQL4 can do that and even more...

Making a Colored Candle Using Mql4 Programming

22868
446
56
00:38:07
29.03.2016

Mql4 Progamming Tutorials 🤍 Download my Trade Management Tool at 🤍 Learn from my kindle book at: 🤍 Please consider becoming a Patreon patron at 🤍 In this video we learn how to use Indicator Buffers to draw histograms on the chart instead of in a separate window. We will make an indicator that will color all of the engulfing candles blue. Edit: I have gone back and looked at the charts and the GBPAUD DID drop 400 pips in the next 4 days.. Please Like, Share and Subscribe PipPip #mql4...

Mql4 Tutorial Using WebRequest With Telegram

8260
181
33
00:26:30
02.08.2021

In this Mql4 Tutorial we will be sending message to Telegram using the WebRequest function. I was not familiar with telegram and had never been able to get WebRequest to work for me before I made this video. Hopefully it will help you use it in your coding. Learn to trade here. 🤍 My simple kindle book at: 🤍 Paperback version. 🤍 Tip Jar: 🤍 My Expert: Jimdandy Trade Management Tool.. 🤍 My Trade Simulator: DownLoad Skill Builder and hone your trading skills. 🤍 Support the Channel and download videos and files at... 🤍 Be a supporter: 🤍 Please like, share, and subscribe and click the notification bell. Broker link. 🤍?refid=13908

EP 4 :MQL4 Basics - For loop Operator inside mql4

62
9
2
00:06:08
17.06.2023

In this video, we're moving closer to our goal of creating our own expert advisers. Today, we'll be discussing the "for" loop operator in MQL4 and how to use it effectively. Let's dive in and learn how to create our own loops! DISCLAIMER: The content provided on the EA Academy YouTube channel is offered for free and is intended for educational purposes only. I do not engage in any contact or solicitations to sell teaching packages or trading signals. It is important to be aware that anyone claiming to represent me or the EA Academy in order to sell such services is a scammer and should not be trusted. I want to emphasize that my primary goal is to provide educational resources and share knowledge with the trading community. The information presented on this channel is meant to empower individuals to make informed decisions and develop their own trading skills. It is crucial to exercise caution and skepticism towards any external parties claiming to represent me or my channel for profit-driven purposes. The content provided on the EA Academy YouTube channel is intended for educational purposes only. The information presented is not financial advice and should not be considered as such. I am not a licensed financial professional, and the information provided on this channel is based on my personal experiences and opinions. While I strive to provide accurate and up-to-date information, there is no guarantee that the information presented in the videos or resources is complete, reliable, or error-free. It is important to conduct your own research and consult with a qualified financial advisor before making any investment or trading decisions. I would like to emphasize that my personal results in trading are exceptional, and it is important to note that most traders lose money. Trading involves risks, and there is no guarantee of profits. Therefore, it is crucial to exercise caution and be aware of the potential risks involved in trading. Additionally, any trading robots or expert advisors created and shared on this channel are for educational purposes only. They are not intended for use on live accounts with real money. Testing these robots on a live account can result in financial loss, and I do not take responsibility for any such losses incurred. By watching the videos and using the information provided on the EA Academy YouTube channel, you acknowledge and agree to take full responsibility for your own actions and decisions. Any reliance you place on the information presented is strictly at your own risk. Remember that investing and trading in financial markets involve risks, and it is essential to understand the potential risks and seek appropriate advice before engaging in any financial activities. Please be aware that some of the links provided in the videos may be affiliate links, and I may receive compensation or referral commissions from partnering websites. However, this does not influence the content or opinions expressed on the channel. #Trading_robot #ai #EA_Academy #expertadvisor #makemoneyonline #trading #forex #forextrading #learningHowtotrade #mql4

MQL4 TUTORIAL BASICS - 37 HOW TO IMPORT EXTERNAL SOURCECODE

13562
154
0
00:05:54
29.09.2019

🤍 With this Expert Advisor we will import external MQL4 source code into our main file, so that it can be used over and over again for automated trading with Metatrader4. In this video I would like to show you something, it’s how to import external source codes. This is a strategy test and when I click on stop you will see that we have an rsi signal here that’s actually what’s calculated inside of the strategy test but you don’t see anything because I didn’t change the template so far and its possible to exchange the module, the external source code. If you click on the include folder inside of your Metatrader installation directory, you will see files that have the extension mqh. There are lots and lots of files inside of those folders and you can open them with Metaeditor or with any editor and this is what you see. This is all source code, its readable for humans, these are hundreds and hundreds of lines of source code, they are provided by Metaquotes but we want to find out how to import our own source codes, so please click on the little button here or press F4. Now you should see the Metaeditor window and here you want to click on file, new, expert advisor from template, continue, I will call this file simple source code import, click on continue, continue and finish, now you can delete everything above the on tick function and the two comment lines here. We start by using an include statement, I would like to use a file that is located inside of a folder that is called import. I have created this folder and the file I would like to import is called check entry underscore macd, this is an mq4 file so it’s a source code file, so I don’t have to write all the source code again, I just do it once for each entry and I can import it over and over again in all of my systems. Now we will create a string variable that is called signal and it will call a function that is called check entry to get the signal for the macd, and finally, we will use the comment statement to output the word signal, followed by the calculated signal and that’s all. Now I can click on the compile button, and it works without any errors but remember you would need to have the same source code file here otherwise the compilation process will not work. In my case, I can click on the little button here or press F4 to go back to Metatrader. Now I click on view, strategy tester or press ctrl and r, I pick the new file simple source code import dot ex4, enable the visual mode here and start a test. Here is the expert advisor, it creates buy and sell signals and when I stop it you will see that it actually has calculated the macd indicator, so let's exchange that and use rsi in the source code, I re-compile the code, restart the test and when I stop it this time you will see this is the rsi indicator. Actually, I have created these import files for several expert advisors and indicators and once you have created one of these files here you can use them over and over again. Let’s copy this one, that’s for the bollinger bands, I will paste the file inside of the import folder that I have created, let’s close this one, exchange the entry, click on compile and when I start a new test and stop it you will see the bollinger bands are calculated. This is a very easy way to code something once and re-use it again and again, and in this little video you have learned how to include external source code files and you have coded it yourself with a few lines of mql4 code.

MQL4 - How to use Custom Indicators in an Expert Advisor - with FREE source code

23242
342
65
00:14:12
30.05.2021

In this video I show you how to integrate custom MT4 indicators into your expert advisor programming. We insert the low pass filter indicator from a previous video into our EA that we've been coding in the last series. It's actually very simple once you know how and the video shows you step by step how to do it. If you're still not sure you can download the EA and source code for reference, or to try out! 🤍 The free indicator I use: 🤍 The series on how to use indicators: 🤍 If you like the video, don't forget to like and subscribe, and also join in the conversation at 🤍toolkitfortraders.com where we'll be releasing all the free downloadable indicators and EAs. Toolkit for Traders is dedicated to giving traders free expert advisors, indicators, and education to make your trading successful. I have seen too many scams and been burnt by false promises. I want to create a space where we can share the love and encourage each other as we learn to trade. Our website is 🤍​ we hope to see you there! -Disclaimer- I am not a registered financial adviser and hold no formal qualifications to give financial advice. Everything that is provided in this video is purely for educational purposes only. All information here should be independently verified, researched and confirmed. Trading foreign currencies can be a challenging and potentially profitable opportunity for investors. However, before deciding to participate in the Forex market, you should carefully consider your investment objectives, level of experience, and risk appetite. Most importantly, do not invest money you cannot afford to lose.

MQL4 TUTORIAL - SIMPLE IADX EXPERT ADVISOR

806
16
0
00:06:42
21.05.2023

🤍 In this video, we are going to talk about this Indicator here; it is the Average Directional Movement Index. Basically it’s a trend confirmation oscillator. Whenever the line here is rising that’s a trend confirmation; in our case for a short trend that is developing on the chart here and as soon as the IADX Indicator is falling, you see, the trend is interrupted here, now its rising again and we see an uptrend and when the IADX Indicator starts to decline – like in this case – the uptrend is interrupted. Now how can we create an Expert Advisor that is able can calculate the Average Directional Index in MQL4? To do that please click on the little button here or press F4 on your keyboard. Now you should see the Metaeditor window and here you want to click on “File/ New/ Expert Advisor (template)” from template. “Continue” (Next). I’ll call this one Simple IADX (SimpleIADX), click on “Continue” (Next) “Continue” (Next), and “Finish”, and now you can delete everything above the “OnTick” function and the two comment lines here. In the first step we want to create a signal, especially a string variable for the signal that will also be called signal and we don’t assign any value because we are going to calculate that later. Let’s calculate the IADX value (IADXValue) by using the function: “iADX” that comes with Metatrader 4. If you mark it and press F1 the reference will tell you that it needs some parameters; the first one is for the symbol on the chart, the second one for the time frame you use on the chart, the third one is for the period for the calculation. If you right-click on the Indicator and select “ADX properties” you will see that the period is 14 and we calculate the values based on the close price so that’s what we use here; 14 and PRICE_CLOSE for the close price. This parameter is for the buffer, so what is a buffer? You see the Indicator produces 3 lines here, let’s hit the pause button and the value for the blue line is 29.93555 – that’s exactly what you see here. The 2 dotted lines have a different value and you could calculate the 2 other values if you exchange buffer 0 with buffer 1 or buffer 2. The last parameter here is the shift value – that’s also 0. We want to calculate the current IADX Indicator for the current value (IADXValue) here and to get the last IADX value (LastIADXValue) we use exactly the same parameters accept we use a 1 to get the last value. If we use a 10 instead we would get the value for 10 candles before. If the IADX value (IADXValue) is higher now so IADX value (IADXValue) is greater than last IADX value (LastIADXValue) we want to output: “IADX is rising” so that’s what we assign to our signal variable. In the other case if the IADX value (IADXValue) is lower now so the current IADX value (IADXValue) is below the last IADX value (LastIADXValue) we assign the text: “IADX is falling” to our signal. Let’s create a screen output by using the “Comment” function. It would output the text; “IADXValue:”, the calculated value and in a new line a text: “Signal:” and the calculated signal we have created here or here. So, that’s basically it, let’s click on “Compile” or press F7 on your keyboard. That worked without any errors so now we can click here or press F4 to go back to Metatrader. In Metatrader we are going to use a little trick; please click on “Insert/ Indicators/ Trend/ Average Directional Movement Index”, click on “OK”, leave the parameters as they are, click on “OK” and now you should see the Average Directional Movement Index in a separate window below the candles and because Wikipedia says: “The ADX does not indicate a trend direction or momentum and is only used to calculate the trend strength” I will insert another Indicator for a trend. Let’s use a Moving Average for 14 candles because the ADX Indicator here is also calculated based on 14 candles, let’s choose an SMA (Simple Moving Average) this is apply to the close price, I use red and click on “OK”. Now we use a little trick; right-click the chart, select “Template/ Save Template” and save it as “tester.tpl” because that’s the name that Metatrader 4 is going to use for the back-test. Click on “Save/ Overwrite”, now please click on click on “View/ Strategy Tester” or press CTRL and R, this should bring up the “Strategy Tester” panel here. Here you want to select the “SimpleIADX.ex4” file from our little Expert Advisor we just have created. Let’s click on “Start” and whenever you see a trend change here the trend confirmation signal is changing; like here, and now you know how to create an Expert Advisor to calculate the IADX value and you can use it in your own automated system to confirm and validate any trend and you have coded it yourself with a few lines of MQL4 code.

MQL4 Tutorial: How to Create a Message Box - Step by Step Guide

481
15
5
00:33:38
09.03.2023

In this tutorial, you will learn how to create a message box in MQL4 programming language. This step-by-step guide will show you how to create a custom message box that can be used for various purposes, such as displaying alerts, warnings, and error messages. We will cover the following topics: ▶️ How to create a basic message box ▶️ Customizing the message box with different colors, fonts, and styles ▶️ Adding buttons and input fields to the message box ▶️ Handling user inputs and responses ▶️ Testing the message box in the MetaTrader 4 (MT4) platform ⭐️Contents⭐️ ⌨️ (0:00:00) Intro ⌨️ (0:00:33 showing the help reference ⌨️ (0:05:06 create a basic MessageBox ⌨️ (0:08:28 Adding Different Buttons ⌨️ (0:13:23 Adding Icons ⌨️ (0:18:51 How to Highlight Buttons ⌨️ (0:22:32 Creating a Variable ⌨️ (0:26:32 Using the stored Variable

Назад
Что ищут прямо сейчас на
mql4 reference R CAD finereader Silver Slayer fnf midi 캠핑법 민수기설교 군대피엑스 군인 친구 Meyvəli P.X Хэпинэс тум 군대 PX 음식 andrew wommack show px조합 군대 PX 후임 갈굼 식고문 genshin kazuha 여름빛깔 파인애플