
Sign up to save your podcasts
Or


20240101: DOWNLOAD 28 result videos for this system
20240101: README Documentation (updated often):
20240102: System Download for Demo accounts:
This video is about a big trading experiment that I would like to do together with you. Today is January 1, 2024, it’s just before 4 pm and I’ve spent the day today running strategy tests for all the major currency pairs that I trade myself for this system here, trading through the entire year of 2023. And I will also make these videos available for you to watch for yourself. But the big experiment here is that I would like to use the year 2024 together with people like you to make this system better. That’s why I’m now offering a version of the Robot Trading System that runs indefinitely on a demo account from January 2024.
This means that if you use a demo account, you can do everything that I do myself. I will also initially trade this system on a demo account, and it will be about how you can set up, adjust and improve such a system over the course of the year so that you get a decent result at the end of the year. We will also discuss and share some other things that might help you, even if you haven’t had anything to do with automated trading before or if you want to have a look at the whole thing first if you are interested in joining in. You don’t need any prior knowledge, you don’t need any capital. All you need is a computer that has been manufactured in the last ten years. You need a demo account. You can get that for free from Metaquotes or other companies and you need to do strategy tests like this here with Metatrader five, which you can also download for free. This time we would have made a net profit of €1,642 on an account with a deposit of €10,000. And why are we doing all this on a demo account? Well, there are few people who are actually willing and ready to invest time in real trading results on a demo account before trading real money with a real money account. And in almost every trading session there are always dips like this. And that leads people to close their account at exactly this point.
Because that’s where the fear is greatest. But you don’t have to be afraid on a demo account. And as soon as you feel that the system works well enough for you, you can switch at any time. But we have already done experiments like this in the past and I would like to start 2024 in the same way. Because I believe that nothing can replace the knowledge you have gained yourself. And in this case, I think you have little to lose and a lot to gain. That’s it for this opening video. I wish you a happy new year and in the next few days you will receive more information, new videos and also the download link to the version of this system that you can then use for free on your own demo account. If you are already an existing customer, I have activated a few more parameters for the Robot Trading System here. This means that the system can now be controlled more precisely. And if you like the results here, I’ll see you in the next video. Thank you very much for watching. And we’ll continue in the next video.
The post MQL5 TUTORIAL – JOIN THE GREAT TRADING EXPERIMENT 2024 appeared first on MQL5 Tutorial.
Sometimes it is helpful to count the new candles on the chart.
The post MQL5 Tutorial – Simple MQL5 New Candle Robot appeared first on MQL5 Tutorial.
If you like to use indicators, you might have heard of the Bollinger bands.
The post MQL5 Tutorial – Simple MQL5 Bollinger Bands Robot appeared first on MQL5 Tutorial.
This time we are going to create simple objects.
The post MQL5 Tutorial – Simple Chart Objects appeared first on MQL5 Tutorial.
In this video we are going to create an Expert Advisor for this signal here; it’s the Commodity Channel Index, and you see that we have already opened a position, it produces buy and sell signals here on the chart. Whenever the signal is below the lower line we are going to buy and when it’s above we are going to sell.
The post MQL5 TUTORIAL- SIMPLE ICCI STANDALONE EA appeared first on MQL5 Tutorial.
In this video, we are going to take a look at this indicator here. It’s a shifted moving average, which means that we use one moving average and project the results into the future. Let’s see how we can do something like this with MQL5. In this MQL5 code, a string variable named signal is created to store the trading signal.
This signal will be either buy or sell. Two arrays, my moving average array and my shifted average array are declared. These arrays will store values of moving averages. Two moving averages are defined using the IMA function. Moving average definition calculates a 50-period simple moving average using the closing prices of the current symbol and period. Shifted average definition calculates another 50-period SMA, but with a 20-period shift applied. The array set as series function is used to sort the my moving average array and my shifted average array in descending order. The copy buffer function is used to copy the last three values of both moving averages into their respective arrays. The values of the current candle for both moving averages are calculated and stored in my moving average value and my shifted average value.
Trading signals are generated based on the comparison of these moving average values. If my moving average value is greater than my shifted average value, it sets signal to buy. If my moving average value is less than my shifted average value, it sets signal to sell. The current trading signal, buy or sell, is displayed on the chart using the comment function. This code calculates two moving averages, compares their values, and generates a buy or sell signal based on the comparison. It then displays the current trading signal on the trading chart for reference.
Okay, by now you should have a working version of this indicator on your chart. I hope everything went well. If it was too fast for you or if you have no idea what all the code does, you maybe want to watch one of the other videos or maybe even the premium course on our website might be interesting for you. For now, I say thank you for watching and I will see you in the next video.
The post MQL5 TUTORIAL – HOW TO CREATE A SHIFTED MOVING AVERAGE appeared first on MQL5 Tutorial.
In this video we are going to talk about one of my real world examples. This is the robot trading system which actually use myself and one of my premium course members wanted to know how something like this works. So let’s have a look at the details. Well, if you have a look at the robot trading system, you can see this is Version 2023 from June. Right now we have the 20 first of October and here we have results and trades all in all we made a profit of 159 dollars and if we look at the overall view here we see that the balance currently is almost equal to the equity which means we only one open trade that is currently and open loss of 99 cents. So what is actually the difference between this trade and one that would be an open loss of 99 dollars? The difference is emotional because it’s not actually the number here that counts if a system is working or not, it’s what the difference means for us. So let’s have a look at the history and here we see that we have losses and we have profits, so not every trade was a success, but all in all the system result is stable, at least right now. If we zoom into the system, we can see these lines here which look like a fan and each of those is a series of positions that we have opened. And at this point here all positions have been closed at once. Let’s zoom in a little more and you will also see parts where we don’t see a fan, for example like here. And these are simple positions that made a profit without the need to start a series. So how do we decide if we just take one position or if we want to open multiple positions? Well in my case I have rules. And currently we are in a down trend, and we can see that because we have two simple moving averages here is for 1100 candles and the other one is for a thousand candles. And a long as the green one is below the red one, we have a downtrend and that looks pretty stable right now. And you can see that the last trades that we made have been sell trades, so we have been trading with the trend. But still we have some positions that didn’t work out. How was that possible? Well that’s because even in a stable trend we have some corrections. That’s when we open a position like here and then suddenly in a correction the price goes up. And if you take a closer look, this is the case for all these fans here. The price went down, than we made a trade here. Suddenly a correction happened and it went against us. But actually we have been able to still close all the positions from here to there in a profit at this point here. Because finally the short time trend again started to go with the main trend and the price went down. While it is easy to see what happened after it happened, it’s often a big problem for people to make a decision what they should do in the future! Well this this is the account number here. So let’s see if we can get more statistics about what happened. And I’m using FXBlue for this, because it providers better statistics than we get from the MetaTrader. In my case it’s in German because I’m from Germany. You can get a lot of details about how the system works. And you don’t have to log in to see them, just open this website here.
And in my case I want to open the stats. There we are, I have started the system 128 days ago with the deposit of 10.000 Dollars. This is the total profit, here we have some withdrawals and this is the net profit. We have winners and losers and all in all we made 382 trades and that resulted in a net profit of 153 Dollars. In a graph chart it looks like this here. We have some more statistics. The Euro US Dollar was the only currency that I used to trade. We have 73 buy trades and 309 sell trades. And that makes sense because currently we have that downtrend here. And if we take a closer look, we had 14 winning weeks and zero losing weeks and a that point, it might make sense to turn up the volume and to scale up the system. Now, let’s go back to the statement here and somewhere down here it says the average trade duration is 33 hours and the average profit is $ 1,78, while the average loss is $ 2.16. So if we are able to make more profitable trades than we make loses, the system is going to be profitable. But this is only true, if we not have to high costs. We have this swap collumn here and for longer trade durations you can expect that you need to pay swap fees, like here. These are costs and the other thing is that when you open a position here you might always see a little loss, because of the social spread. Your broker is charging money, so whenever you open a position like I did here, the first thing that you will see is that the profit is negative. And that the price where you bought or sold something is different from what you see on the chart, because that is how your broker makes money with every trade that you make. Now let’s change the zoom level here and we see that currently it looks like the current price is getting near to the small average price here and when the price level crosses the two small moving averages here, that would mean that the stable trend is broken. And when the two small moving averages cross, this could mean that the trend is broken and the next thing that we would expect to see is an up trend. Which is what happened here.
The trend was broken, here is the cross over and here is the up trend. Then we had another cross over here and now it’s a down trend. So the logic behind all these decisions here is pretty simple and it can be automated by using MQL5. So basically, there is nothing magical behind it. It’s all pure probability and to make up rules about when to do what, we do a lot of back tasting and that means we do thousands of automated trades with data from the past to see how our system would have behaved in other market phases. Then we tried on a demo account in real time. Then we scale up or system to see if it actually works. And once everything is working as expected, you can press the F7 button and increase risk percentage, or the multiplier for the positionsize. And if you do, but you would have bigger positions and more positions and that’s how we scale up. That was basically how we setup a probability based trading system that works under real conditions. And in this video you have learned how to train your own system to work under real conditions and how you can use external tools like a FXBLUE to analyze if it actually works. If you are interested to see more details you can just go to this website and analyse all the stats. This system is still in the training stage, but so far the results have been very promising, so think I’m going to scale it up.
That’s it for this video. I say thank you for watching and I will see you in the next one.
The post MQL5 TUTORIAL – HOW TO TRAIN AND SCALE A WORKING REAL WORLD TRADING SYSTEM appeared first on MQL5 Tutorial.
In this video, we are going to create an expert advisor that calculates the historical profit for a specific currency pair and displays it on the chart. Let’s see how we can do that. To begin, start the MetaEditor by clicking on the little icon or pressing F4 on your keyboard. The code starts by including the Trade.mqh library, which provides functions and methods for performing trade operations.
We then create an instance of the CTrade class called trade to execute trade operations like buying and selling. Inside the OnTick function, we calculate the current Ask and Bid prices for the symbol. These prices are essential for executing buy and sell orders. The code checks if there are less than two open positions. If true, it executes both a buy and a sell order.
This is just for demonstration purposes. The historical profit for the currency pair is calculated using the GetCurrencyPairHistoryProfit function and then displayed on the chart. The GetCurrencyPairHistoryProfit function calculates the total historical profit for the specific currency pair. Several variables are initialized to store information like the total number of deals, ticket numbers, order types, and profits. The HistorySelect function is used to fetch historical deal data. A for loop iterates through all the historical deals.
For each deal, the profit and swap for the deal are obtained, the type of order (buy or sell) is determined, and the currency pair for the deal is checked to ensure it matches the current symbol. Once you’ve written the code, press F7 to compile it. If this was too fast for you or if you don’t understand what all the code is doing, you may want to check out the premium course on our website or watch one of the basic videos first. After compiling, go back to MetaTrader by pressing F4 or clicking on the icon. In MetaTrader, press control and R to start the strategy tester.
Pick the expert advisor that we have just created, enable the visual mode, and start a strategy test. You should then see the expert advisor on the chart. If you’re already a premium course member and have an idea for a video like this one, please send us an email. In conclusion, you’ve now learned how to calculate and display the historical profit for a specific currency pair using MQL5. With just a few lines of MQL code, you’ve created a functional expert advisor. Thanks for watching, and I’ll see you in the next video!
The post MQL5 TUTORIAL – HOW TO CALCULATE THE HISTORY PROFIT appeared first on MQL5 Tutorial.
Today we want to talk about a system that is called OCO that is the short term for Order Cancels Order.
The post MQL5 Tutorial – Simple Order Cancel Order EA appeared first on MQL5 Tutorial.
What you see here is an Expert Advisor that is opening buy stops and we have a calculated profit on the chart and it uses two self defined functions that we have compiled in a so called library.
The post MQL5 Tutorial – Advanced Library Expert Advisor appeared first on MQL5 Tutorial.