POPULARITY
In this episode of the TradeInformer Podcast, we speak to Jon Alexander, CEO of prop firm Maven Trading. Jon explains how he ended up in CEO seat, talks through Maven's crazy growth since launch, and how the firm grew more after losing access to MetaQuotes than it did before.
20240101: DOWNLOAD 28 result videos for this system https://bit.ly/41OIpzK 20240101: README Documentation (updated often): https://bit.ly/41FPceY 20240102: System Download for Demo accounts: https://bit.ly/3H3diqt 20240103: Account Setup: https://youtu.be/qtCXQI3XL_4 20240104: Trading System Import: https://youtu.be/4AWpxGKVS4A 20240105: First Account Profit: https://youtu.be/BqXaoGyy3QU 20240106: Setup MX Linux server in 5 minutes: https://youtu.be/JVZoYn2w6Yw 20240107: Setup Metatrader on Linux in 3 minutes: https://youtu.be/DTkOQKW3HT4 20240109: Live Updates & Live Profit: https://youtu.be/BCnttK7d4HI In this video, I want to talk about how I got my advanced statistics to run. Actually, I had to change the account to Robo Forex and use a demo account there because what I didn’t know was that FXblue is not able to provide statistics for MetaQuotes demo accounts because they simply do not have the MetaQuotes company in their list. So when you pick a broker, you need to pick one that’s in their list, and MetaQuotes is not part of that. Yes, I could write to the support to add MetaQuotes, but I guess for this experiment, it’s more useful to use an account that actually is included. And for Robo Forex, they support demo accounts. I have to admit that advanced statistics for Robo Forex have been a pretty standard for me and my clients in the last few years. If you don’t know, I’m offering a premium course about MQL5 programming, and that is also where a lot of people use the same Robo Forex account settings that I use. So I actually didn’t know that MetaQuotes wasn’t in the brokers list. And I switched to this account, and that means that we had to start over with $100,000. So right now, we have made a profit of $71, and I guess in the next hour or so, we will make a few more trades. But the crazy thing is, I actually tried to use this account sync option. They say that it works for MetaTrader 4 and MetaTrader 5, but it wasn’t running on Linux and it wasn’t performing. So I thought, okay, I need to download this publisher app here, and I did. So the version I picked was this one for MetaTrader 5. You can download it for free and you will get a zip file. And when you open that zip file with Linux, you will find there is a publisher ex5 file inside. I had to extract that. Now, let’s go back to the trading terminal and click on File, Open Data folder, MQL5 experts. And here is that FX Blue publisher ex5 file. I then opened a new chart, and here is the ExpertAdvisor that you can drag onto the chart. I’m not going to replace it right now because it’s already working. You can see that the last synchronization was today at about 20 minutes past 5. Let’s open the FX Blue statement. This is the correct account number. It says that we have a history of eight days, which is true because the account is eight days old, but I started to use it yesterday. I can now refresh the state, and it says we have an open loss of $23 and a profit of $71. So let’s go back to MetaTrader and check. Yes, that’s about what is happening right now. And you can see that we have a profit here. So I expect my system to close both trades in the next few minutes because it’s configured in a way that when a new candle appears on the chart and the profit is higher than what I have defined, it should close both trades and lock in the account-based profit. This is the current candle. Currently, I’m using the hourly candles, so let’s switch to one minute. And I think that it will only take a few seconds until we see that this trade is closed, at least until the profit value drops. But with the lot size of 0.86 lots, it’s just a question of a few seconds before the profit value is reached again. Here is the new candle, but the profit is below $10, so let’s wait for the next one. And here we are. We have closed closed the trade. Now, let’s go back to the hourly chart. It already opened a new one. Now, the balance is $100,101. The history has changed. And when we go back to the stats here, we still see $71 of profit. But when we refresh the page, here is the new state, and this matches the account data. And as soon as this trade is going to be in the profit range, we will see another update. Currently, I’m experimenting with the take profit value here. I can change that in the source code as I do for my clients. Now you know how to activate the FX Blue publisher file, do automated status updates for FX Blue. So that’s it for today’s video. I say thank you for watching, and I will see you in the next one.. Not sure what to do? Click on the automated trading assistant below MQL5 TUTORIAL - LIVE TRADING EXPERIMENT 2024 -… MQL5 TUTORIAL - LIVE TRADING EXPERIMENT 2024 - SETUP… MQL5 TUTORIAL - JOIN THE GREAT TRADING EXPERIMENT 2024 MQL5 TUTORIAL - LIVE TRADING EXPERIMENT 2024 -… MQL5 TUTORIAL ENGLISH - SETUP YOUR ADVANCED STATISTICS The post MQL5 TUTORIAL – LIVE TRADING EXPERIMENT 2024 – LIVE UPDATES AND A LIVE PROFIT DOCUMENTED appeared first on MQL5 Tutorial.
20240101: DOWNLOAD 28 result videos for this system https://bit.ly/41OIpzK 20240101: README Documentation (updated often): https://bit.ly/41FPceY 20240102: System Download for Demo accounts: https://bit.ly/3H3diqt 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. Not sure what to do? Click on the automated trading assistant below MQL5 TUTORIAL - LIVE TRADING EXPERIMENT 2024 -… MQL5 TUTORIAL - FREE TRADING TRAINING FOR 2023 LEARN MQL5 TUTORIAL BASICS - LEVEL 1A BUILD YOUR OWN… MQL5 TUTORIAL - 101 WHAT HARDWARE FOR ALGORITHMIC TRADING MQL5 TUTORIAL - 99 NEW LIVE CROWD ALGO TRADING SYSTEM The post MQL5 TUTORIAL – JOIN THE GREAT TRADING EXPERIMENT 2024 appeared first on MQL5 Tutorial.
This week I’ve gotten a few requests: how we can use external signals to create buy or sell signals in Metatrader. Right now, our buy signal is “Don’t Buy It Now”, and we have no open positions. And this is a simple text file. It is located in the user’s path in Windows. So that path here might be a little bit different, depending on your name and your operating system, but it should be below MetaQuotes, terminal, common files. Right now, it contains the sentence, “Don’t buy it now”. So let’s see what happens if I remove the Don’t and save the file. Immediately, a new Buy trade appears. So now we have opened a new position by using an external text file. And in this little video, we are going to find out how to do that. In your MetaTrader, please click on the little button here or press the F4 key. And in Metatrader, you want to click on File, New, Expert Advisor from Template, Continue. I will call it simple external signal and finish. And now you can remove everything above the on tick function and the two comment lines here. And to open a trade, the first thing we need is to import the trade.MQH file by using the include function. And now we want to create an instance that will have the name trade. And inside the ontick function, the first thing we do is to get the ask price by using symbol info double for the current symbol. We use the constant symbol underline ask because we need the ask price. And with normalize double and underline digits, we make sure that we have the right number of digits behind the dot, because there are some currency pairs that have only three digits and others have five. Let’s tell MQL5 actually which file we are going to use. Remember, this is the path where my files are located. In your case, it might be a little bit different, depending on your operating system and your name. This is the File handle, it’s an integer value and we use FileOpen for the file with the name signal.txt. We use File_Read, because we only want to read what’s in the file. File_ANSI means it’s a file that is containing strings of ANSI type. Ansi is only using one byte. You could, for example, also use File_Unicode. That would be used for two byte symbols. So if you see any weird characters on your screen, the reason might be the wrong encoding here. And File_Common is used for the file path in the common folder of all client terminals. It ends with terminal, common files, like in this case. This pipe character here is used as a delimiter that is used to separate the different items in a txt file or in a comma separated file. And CP_ACP means we are currently using the current Windows ANSI code page. Now that our file is defined, we use File, Read String for the external file we have created here to read out a buy signal. It will be a text string. And afterwards, we close the file. That is done by using the command File Close for our external file. And if no open positions exist and a buy signal occurs, that would mean positions total equals zero and the text in our file is “Buy it Now”. Well, in that case, we want to open a buy position by using trade.buy for 10 micro lots on the current chart for the current Ask Price. We have no stop loss defined. Our take profit is 100 points above the current Ask Price and we don’t need a comment here, so we use null for the last parameter. The last step is to create a chart output by using the comment function. It will show us the current buy signal that is the text that is contained in our file, followed by the text positions total and the value we have calculated for positions total. And if everything is okay, please click on the compile button. And if you don’t have any errors or any warnings, click on a little button here or press F4 to go back to Metatrader. Now in Metatrader, please click on View, Strategy Tester, or press CTRL and R. And here you need to select the file simple external signals.ex5, enable the visualization and start the test. Now our little expert advisor is running and you see the buy signal right now is: don’t buy it now. The number of open positions is zero. So let’s change the text file here. click on File, Save. And immediately a new trade is opened here. And if you speed up the process, you will see that new trades are opened and closed. But if the external condition is no longer true, or if I change the file content manually and save it, the buy signal will change to stop buying or whatever is in the text file. Let’s save that again. Now it says, Buy signal is stop buying or whatever is in the text file. Okay, Now you know how you can create an Expert Advisor that can read external Txt files. Actually, you could also use Excel files or whatever to use external signals. And you have coded it yourself with a few lines of MQL5 code. Not sure what to do? Click on the automated trading assistant below LEARN MQL5 TUTORIAL BASICS - LEVEL 1C BUILD YOUR OWN ALGO… MQL5 TUTORIAL - PLATIN SYSTEM - WILLIAMS PERCENT RANGE ENTRY… MQL5 TUTORIAL - SIMPLE ITRIX STANDALONE EXPERT ADVISOR MQL5 TUTORIAL - SIMPLE AWESOME STANDALONE EXPERT ADVISOR MQL5-TUTORIAL-PLATIN-SYSTEM-THE-AWESOME-OSCILLATOR The post MQL5 Tutorial – Simple External Signals In A File appeared first on MQL5 Tutorial.
In this video we are going to create an entry module for this little indicator here. It is called the adaptive moving average and you can use this entry signal to get buy and sell signals for the Platin system. So let’s find out how to do that. To change the entry signal for your Platin system, please open the main file and search for this part where it says include. Here we have check entry modules and if I want to change the module for the entry signal, I just need to outcomment the old one, like this, and enable the new one which is the Check Entry Advanced Ma module. Here is what’s inside of the Check Entry CCI module that comes with the system. Now I can say that I want to save it as… And save it as Checkentry Advanced MA.mq5 in the same folder as the Checkentry CCI module is located. I have done that before, so I don’t want to do it right now. And here is what is inside of the module. By the way, you can create your own system and use it in your system – or in the robot trading system it’s also possible to use this entry. We start by using MQL rates to create a price info array. Afterwards we use array set as series for the price array we just created to sort it from the current candle downwards. Now we want to fill our array by using copy rates for the current symbol on the chart and the currently selected period on that chart. Starting from candle zero for 30 candles. That’s probably a little bit too much. So let’s say we do it for three candles. And I would like to use the more current notation here. The next step is to create a string variable for the signal. And we also need to create a second array for the prices. Now comes the interesting part. We create an adaptive moving average definition by using the IAMA function that comes with MQL5. For the current symbol on the chart and the currently selected period on that chart. Here we have three parameters. And if you point your mouse on the adaptive moving average signal line here, you will see the parameters 9,2 and 500. And if you click on insert, indicators, trend, adaptive moving average, you will see that these are the standard parameters. The period is nine, the fast EMA is two. The slow EMA is 30. So let’s change that to 30 here, because when we cut the last part and hit the comma key on the keyboard, we will see that this parameter here is for the slow EMA period. And that’s actually 30. But you can use whatever you like. I prefer to go with the standard parameters. Now let’s continue. By using array set as series we are going to sort our price array from the current candle downwards. And now we can use copy buffer for the adaptive moving average definition that we have created here to fill our array for the first buffer. That’s the indicator line. Starting from candle zero for three candles and store the result in our price array. And now we can calculate the current adaptive moving average value by using normalize double and six digits, because the value is shown with six digits behind the dot. And we want to look at the value for candle zero in our price array and assign the result to this variable here. That makes it possible to now calculate if we have a buy or a sell signal. Because if the adaptive moving average value is bigger than the close price for candle zero in our price info array, that would mean we have a buy signal. And that’s when we assign buy to our signal. Otherwise, if the adaptive moving average value is below the close price for candle zero in our price info array, that’s a sell signal. And that’s when we assign the word sell to our signal. Finally, we want to return the signal to our main module. Now please save the module that we have created, enable it here in the main module. And now we need to recompile that. So please click on Compile in the toolbar or press F7. That should work without any errors here. And if that is the case you can click the little button here or press F4 to go back to the Platin System. If you don’t see the Strategy tester panel here, you can click on View, Strategy Tester. Or press Control and R. In this case, I’m going to pick the free Platin Demo System which will only work with original MetaQuotes demo accounts. We will trade the Euro US dollar on the one hour chart, let’s say for the whole year 2021. Now I click on Inputs and set all parameters to the default values here. You can mark the visible mode and click on Start. And now you should see this little red line here. It produces buy and sell signals which are filtered by the long term trend here. But you can see that the system is working. Now let’s close that part. Disable the visible mode here, click on Start and on the graph tab you should see that the system is producing results. Here we have a drawdown. And it looks like we could get a second one here. But now it recovered. And this is the result with the standard settings. You can click on Backtest to see all the details. So in this case it worked. It’s probably not the best choice for the Platin system. I prefer the Commodity Channel Index. But you can check out yourself. A free demo version is available, because I only sell the system to long term customers who have Not sure what to do? Click on the automated trading assistant below MQL5 TUTORIAL - PLATIN SYSTEM - WILLIAMS PERCENT RANGE ENTRY… MQL5 TUTORIAL - 131 STANDALONE EMA MACD EXPERT ADVISOR MQL5TUTORIAL - HOW TO GET ADVANCED STATISTICS FOR 3 LIVE… MQL5 TUTORIAL ENGLISH - HOW TO PROFIT FROM A TREND CHANGE MQL5 TUTORIAL BASICS - 128 SIMPLE LONG TERM TREND The post MQL5 TUTORIAL – PLATIN SYSTEM – ADVANCED MOVING AVERAGE ENTRY appeared first on MQL5 Tutorial.
Platin System MQL5 TUTORIAL BASICS – 57 HOW TO CREATE METAQUOTES DEMO ACCOUNTS INSIDE METATRADER In this video, I would like to talk about a way how you can get the $1,000 Platin System for free. And here are my thoughts. Currently, we are facing a situation that I have never seen before in my lifetime. We are facing high energy costs and buying groceries is about twice as expensive as last year. So there are lots of people who face financial problems right now. And on top of all this, there might be other sorrows. Not everybody has an idea about how the future might look like. And I understand that it is hard to sell a system for $1,000 in a time like this. But like Michael Voigt, the German guy who wrote the book that is called “The Great Book of Market Technique” once said: “The markets are not going anywhere. They will still be around next year.” So if you are not sure if automated trading is something that you would like to try, there is a way to do it without spending a single dollar. And here is how. If you look at the output on the chart here, it says MetaQuotes-Demo. This is the server for original MetqQuotes demo accounts and you can open such a demo account for free. And I will provide an unrestricted version of the Platin System. The only exception will be that you need to trade it on a MetaQuotes demo server account. So you basically can do everything that my $1000 clients can do, but you only can do it on demo accounts. And that will help you to get a good understanding about what works and how it works. Actually, I’m not trying to sell you something, because I’m only selling the Platinum system to long term customers who have already bought the premium course and who have already proved that they have what it takes to actually achieve good results. So the Platin System currently can only be bought with an invitation link. But I still remember that when I started out with automated trading, I needed a proof that it actually works! Because once you know that something works, you will find a way to get it – if it is something that you actually want. I did that in the past and it worked very well for a lot of people. But I need to admit that I still think that not everybody has what it takes. There are still people around who think that they can push a button and become a millionaire overnight. This is not one of these offers! If you have what it takes, it is a way to get what you want. But actually I’m not able to change the person that is sitting right in front of your screen. And that is the part that is actually more important than anything that has to do with automated trading. But most people still don’t get that. And if you open your own account and count your losses, you will probably still find out that the vast majority of all your losses is caused by YOUR OWN stop loss. And if you want to change that and improve your results, the Platin System might be a way to do that. In the next few weeks, I will provide some information for people who are really interested. So if this is something that sounds interesting for you, you should subscribe, get MetaQuotes demo account and I will see you in the next video. Not sure what to do? Click on the automated trading assistant below MQL5TUTORIAL - HOW TO GET ADVANCED STATISTICS FOR 3 LIVE… MQL5 TUTORIAL BASICS - 57 HOW TO CREATE METAQUOTES DEMO… MQL5 TUTORIAL - PLATIN SYSTEM - ADVANCED MOVING AVERAGE… Platin System MQL5 TUTORIAL - PLATIN SYSTEM - WILLIAMS PERCENT RANGE ENTRY… The post MQL5 TUTORIAL – HOW TO GET THE 1000 PLATIN SYSTEM FOR FREE appeared first on MQL5 Tutorial.
In this video, I would like to talk about a new system that I have released on January the 1st, 2021. It’s an automated algo trading system. I have also published it on the website, MyFxbook. I also need to mention that this is not an MQL5 system for Metatrader5, but it is an MQL4 system made for Metatrader4. This is my statistics page on MyFxbook, and as you can see, the system started to grow very quickly. But after a few days, the balance curve started to get flat and therefore I asked myself if it would be a good idea to close all open trades, including the open losses, because I have seen this kind of behavior before. Therefore, I have coded a function to show a message box, when I click on the chart in the upper left corner and it says, Would you like to close all positions? I will not do that right now. But I did it yesterday. And after I did that, I have a net and a gross profit of one point five one percent for twelve days. So that translates to 15 percent and one hundred and twenty days and as a year has three hundred and sixty five days, we could expect forty five percent profit. But actually I don’t think that we will do that much. But you can see yourself. I have called this system crowd algo trading system because my company name is Crowd Company and if you take that term and google for it, you should be able to already see a lot of results for it. For example, this is the YouTube channel. This is yesterday’s video. It’s automated content because I have to do one of those videos each day. Here is the link to the Web page. And if you click on that and click on one of the current posts, you will see the same video content. And below that, we have the download for the Metatrader setup file. This is the download for the demo system that will work on Metaquotes, original demo accounts. And here is the download for the statistics. When I click that and open the page, I see a timestamp for January the 12th. That’s actually the current day. So far we have made four hundred and fifty dollars profit and I expect this system to be a good choice because actually it is a clone from this system. I have traded this one in 2020 with good results. You’ll see this drawdown here in March. That was the time of the first Lockton here in Germany. And I have tried other systems that have not performed that well. As I’m happy with the results of this one, I took it as the foundation for the new one. This MyFxbook Expert Advisor will upload the current statement every five minutes. Currently we have January the 12th and when you see this video sometime later, you should still be able to get the current statistics when you click on this link, it works without any credentials. Here is the official system page, currently we have made 59 trades, but this will increase in the future. And if you’re interested to learn what is working and why it is working, you can analyze each and every of these positions here. So for now, that’s it. If you have any questions or suggestions about the system set up, just send me an email. For now, I will let this system do its job. And I would like to say thank you for listening. Not sure what to do? Click on the automated trading assistant below MQL5 TUTORIAL BASICS 11-20 MQL5 TUTORIAL BASICS 98 - HOW TO CLONE YOUR MQL5 SYSTEM MQL5 TUTORIAL BASICS - 2 WHAT ARE FUNCTIONS MQL5 TUTORIAL BASICS 41-50 MQL5 TUTORIAL - THE ONE THING YOU NEED FOR PROFITS The post MQL5 TUTORIAL – 99 NEW LIVE CROWD ALGO TRADING SYSTEM appeared first on MQL5 Tutorial.
In this video, we are going to write price data into a spreadsheet like this one right out of MQL5. So let’s find out how to do that. To get started, please click on the little icon here, or press F4 on your keyboard. Now you should see the meta editor window and here you want to click on File, New File, Expert Advisor from template, Continue. I will call this file, SimpleSpreadsheetWriter, 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 static variables for the last high and the last low. A static variable will remember the value inside of this function for as long as our Expert Advisor is running. Afterwards, we use MqlRates to create a price info array. Because MqlRates is a structure that stores the information about prices, volumes, and spread. Afterwards, we use ArraySetAsSerries to solve the price info array from the current candle downwards. And now we can fill the array by using CopyRates. For the current symbol on the chart and the currently selected period on that chart, we want to start with candle zero and copy the price data for three candles into our price info array. Now let’s check if we have a new candle, and that would be the case if the value for last high is different than the high value for candle one in our price info array. And we also want to check if the last low value is different than the low value for candle one in our price array. Now we can start to write our file, and to do that we first need to define a name for the file. I will call this file, spreadsheet.csv, CSV is a file extension that is recognized by most spreadsheet calculation programs like Excel or LibreOffice. I think it stands for Comma Separated Values. Now that we have defined the name we want to open the file. That can be done by using FileOpen. And FileOpen will try to open the file and if it doesn’t exist, it will create one for the name of our spreadsheet that we have defined here, and we need to pass a few parameters, FILE_READ and FILE_WRITE will open the file for read and write access. This is the file mode, it is called FILE_CSV, and we are going to use the ANSI mode to write the file. Now, when you mark that and press F1, you will learn that we can use ANSI mode or Unicode mode. Unicode would be necessary for special characters like German Umlauts. But as we are going to use simple texts and a few numbers , ANSI is okay, we are going to write a CSV file, but you could also create a text file. And if we have been able to open the file, we now need to go to the end of the file, that can be done by using FileSeek. For our file handle that we have created here, we start with the first entry that’s index zero, and we want to seek the end of the file, seek end will do that and will take us to the last character in the file. I want to do that because I want to append the values and not delete the former content of the file. And that can be done by using FILE_WRITE. For the spreadsheet file handle, we are using commas. I’m going to write a descriptive text followed by the value for the candle one in our price info array. And the first one is the time. This will create a time stamp, followed by the description high for the high price of candle one in our price info array, and afterwards the low for candle one, you could append further values if you are interested. For example, for the open and the close price. After we have written the content, we want to use FileClose to close our spreadsheet until the next candle comes up. And to find out if the candle has changed, we are now going to assign the high price for candle one in our price info array to the variable last high, and the low price for candle one in our price info array to the last low, because the current values for candle one will be the last values the next time this function is called. Let’s add a comment statement here for the last high and the last low. So we have a chart output while the Expert Advisor is running, and 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 basic videos, or maybe even the premium course on our website might be interesting for you. For now, we want to click on View, ToolBar and click on Compile or press F7. That should work without any errors and if that is the case, you can click on the button here or press F4 to go back to MetaTrader. And in MetaTrader you’ll want to click on View Strategy Tester or press control and R. Please pick the new file, SimpleSpreadsheetWriter.ex5, mark the option for the visual mode and start your test. Now our StrategyTester is running and we see that we have two, three candles so far. So let’s speed that up a little bit. Stop the test, and here is my spreadsheet.csv file. It’s located in my user folder. It depends on your operating system, but in my case, it’s below AppData, Roaming, MetaQuotes, Tester, inside of a folder that is called MQL5 Files. You could also specify a file path if this kind of folder is too long for you. Now let’s double click on the file, and here we see that the Not sure what to do? Click on the automated trading assistant below MQL5 TUTORIAL BASICS - 43 SIMPLE IOSMA EA MQL5 TUTORIAL BASICS - 66 SIMPLE SHIFTED EMA MQL5 TUTORIAL BASICS - 6 SIMPLE IF CONDITION MQL5 TUTORIAL BASICS - 48 SIMPLE CHART OBJECT MQL5 TUTORIAL BASICS - 81 SIMPLE SMA BUY TRAILING STOP The post MQL5 TUTORIAL BASICS – 94 SIMPLE SPREADSHEET FILE WRITER appeared first on MQL5 Tutorial.
In this video, we are going to create an expert advisor that is able to output account-related information directly on our chart. To get started please click on a little I can here or press F4 on your keyboard, now you should see the Metaeditor window until you want to click on file, new file, expert advisor from template, continue, I will call this file, simple account info, click on continue, continue and finish. Now you can delete everything above the ontick function and the two comment lines here. We start with getting the account server information that is done by using account info string and the parameter we are going to use is account underscore server, so in my case, the return value is MetaQuotes Demo for this account. Account info is available for string, for integer and for double values, so let’s continue with another string value. Account info string account underscore currency will return the currency that we are using, in my case I’m using Euro. Another string value is the account name, we can get that by using account info string account underscore name, my account name is Raimund Bauer. Now let’s continue with an integer value for the account trade mode, we get the integer value by using account info integer and the account trade mode is something that will return a value for the trade mode that is either zero, one or two, let’s see if we can get the values. Here is the reference entry for the trade mode and if you click on this little link you will see this can return demo, contest or real account but as the return value is an integer value it would be, zero, one or two. I would like to create a readable account trade mode version that can output a text and if the account trade mode equals zero I would like to see the text, demo account, if the return value for account trade mode is one that would be a contest account for trading contests, and if the account trade mode equals two that would be a real account. Now let’s continue with the account login, this is another integer value and it returns the account number. The next one is called account company, we get it by using account info string account underscore company, in my case, it’s the MetaQuotes Software Corporation. The account leverage is also very interesting, this again is an integer value, the parameter is account underscore leverage and in my case, it’s five hundred, actually, it’s 1 to 500, this is a very high leverage. The next one is also very interesting, it will tell us how many orders we can have, we get it by using account info integer account underscore limit underscore orders, in my case I can have 200 orders. Now let’s get the free account margin, this is the first time we use account info double, the parameter is account underscore margin underscore free, here is the output for this account. Let’s get two bool values, this looks a little bit strange because this is a bool but we are going to use account info integer to get it. The first one is for the account underscore trade allowed property, this is going to tell us if we are allowed to trade at all. And the second one is going to tell us if we are allowed using expert advisors and last but not least I would like to have the account margin mode, this is an integer value and it’s important because, for the type of automated trading that we do we need to have a hedging account, you can find out if your account is a hedging account by looking at this text, you should see the word hedge here. And we learn that zero stands for netting mode, a one would mean we have an exchange mode and two is the desired hedging mode, I can never remember that so let’s create a readable account margin mode. If the account margin mode equals zero I would like to see the output netting mode, for one it will output exchange mode, and for two this is the hedging mode. Now let’s create a chart output for each of the values, I have used the readable account trade mode and the readable account margin mode here, so I don’t see any numbers but real text and that’s about it. Well, 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 this basic video series or maybe even the premium course on our website might be interesting for you. Click on the compile button, you shouldn’t see any errors here and if this is the case please click on a little icon here or press F4 to go back to Metatrader. And inside Metatrader we just use an empty chart, please pick the new file, simple account info here in the Navigator window and drag it on the chart, let’s click on okay and here are my account settings, let’s change the account and see what happens, and now we see this is a real account, it’s from RoboForex Ltd, it actually supports 500 orders and we see different values for all the other things here and in this little video you have learned how to create an expert advisor that is able to output all the account-related information directly on your chart and you have coded it yourself with a few lines of mql5 code.More MQL5 Tutorial Videos:MQL5 TUTORIAL BASICS - 62 SIMPLE MARGIN MONITOR In this video we are going to create a simple margin monitor that is going to output all the margin related information on our chart,…MQL5 TUTORIAL BASICS - 33 SIMPLE SELL POSITION MODIFIER In this video we are going to find out how to reduce the position size for an existing sell position, here we have nine micro…MQL5 TUTORIAL BASICS - 58 SIMPLE DYNAMIC BUY POSITION SIZE In this video, we are going to find out how to dynamically calculate position sizes for buy trades, in this case, based on the equity,…MQL5 TUTORIAL BASICS - 32 SIMPLE BUY POSITION MODIFIER In this video we want to find out how to modify an existing position, in our case we have a ten micro lot position here,…MQL5 TUTORIAL BASICS - 57 HOW TO CREATE METAQUOTES DEMO ACCOUNTS INSIDE METATRADER In this video we are going to create an original MetaQuotes demo account for Metatrader 5, usually, you get one of these demo accounts right…MQL5 TUTORIAL BASICS - 60 SIMPLE DYNAMIC SELL POSITION SIZE In this video we are going to create an expert advisor that is able to dynamically calculate the position size for sell positions, so let's…MQL5 TUTORIAL BASICS - 4 WHAT ARE DATA TYPES In this video we want to talk about data types and what data types are. In our case in this strategy test we see that…MQL5 TUTORIAL BASICS - 75 SIMPLE TIME FILTER In this video, we are going to create a filter for time-based entries so let's find out how to do that with mql5. To get…
In this video, we want to find out how to create one of these MetaQuotes demo accounts, these are original demo accounts from MetaQuotes, that is the provider of Metatrader 4, so let’s find out how to create such an account right inside of Metatrader! To do that please right-click on accounts and select open an account, now you should see a lot of entries in my case for RoboForex because that is the broker that I use for my other accounts but here we can add one so let’s type in MetaQuotes and when you click on scan you should see this entry, MetaQuotes demo that is provided by the MetaQuotes Software Corporation so let’s select this one and click on continue. Here we can pick one of three entries, the first one would be to connect to an existing account, the second one is the new demo account, that’s actually what we want and the third one would be a new real account. To create something like this you would need additional authentication. For example, I had to send pictures of my passport and a few account statements but in this video, we just need a demo account so let’s click on continue. Here I have to fill in my credentials, actually, I also have to agree to subscribe to the newsletter, this is little strange… I usually pick one hundred thousand dollars and a big leverage. In Metatrader 4 the highest leverage now is 1 to 100, for German accounts, you could only pick something like this. Now let’s click on continue and here are my credentials. In Metatrader 5 I would get an additional link where I can copy the credentials and paste them into notepad or word. For Metatrader 4 please create a screenshot or write them down, so let’s click on finish and here is my new account. I can now click on log in to trade account and my password is already available, let’s mark the option for save account information here and click on log in. I want to find out if my expert advisor will run with this kind of account, so let’s pick one of the expert advisors here, mark the visual mode and click on start. In my case, it starts to run right away but when I pick another currency pair it might not do anything, it says waiting for update. In this case, you can click on tools, history center, pick the currency pair you need, mark one minute and here you would be able to import historical data, unfortunately, I don’t have any downloads for this currency pair so let’s open the webpage histdata dot com, click on download free forex data, I want forex data for one minute, this is the currency pair I need and I would like to download the whole year 2018, so let’s do that. This is the file that contains all the data we need so let’s copy that, paste it here, now I want to open the file and here is my historical data so let’s close everything, restart the test and this time it works. In this video, you have learned how to create an original MetaQuotes demo account right inside Metatrader and you have done it yourself within a few minutes. Not sure what to do? Click on the automated trading assistant below MQL4 TUTORIAL BASICS - 37 HOW TO IMPORT EXTERNAL SOURCECODE In this video I would like to show you something,… MQL4 TUTORIAL BASICS - 29 HOW TO COUNT THE OPEN SELL… In this video we want to find out how to…
In this video we are going to create an original MetaQuotes demo account for Metatrader 5, usually, you get one of these demo accounts right away when you install Metatrader but from time to time you might need another one, so let’s find out how to do that! This is the robot trading system demo version that can be downloaded on the new website algorithmictradingsystem.com, it’s free but it will only run with original MetaQuotes demo accounts. The reason is very simple, as MetaQuotes is the provider for the software that we are using, MetaQuotes demo accounts are available everywhere in the world and if you want to download one of the free expert advisor versions and compare your results with mine it’s a good idea to use a real MetaQuotes demo account because depending on the broker you use you might have very different conditions. For example, my leverage setting is 1 to 500 and that would not be possible with German brokers. You see that my RoboForex account also supports the same setting but other things like spread and swap, these might be different so let’s create one of these free accounts here, just right click on accounts, select open an account, here you should already see the MetaQuotes software cooperation, otherwise you could find it here. We want this entry now let’s click on continue, and the pre-selected entry is open a demo account to trade virtual money without risk, that’s what we are going to do so let’s click on continue, I have to fill in my credentials here and very important we want to use the hedge mode. Until 2016 or so Metatrader 5 was only able to work with the netting mode, netting mode means that you couldn’t have more than one position. A hedging account will have the word hedge inside of the account description and this is what we need if we want to trade several positions at the same time, that’s exactly what we are doing right now in the strategy tester so let’s mark this option, select a good leverage like 1 to 500, one hundred thousand dollars or euro, agree to the terms and conditions here and click on continue and now you should see the credentials for your brand new MetaQuotes demo account. You can click this link to copy the registration information to your clipboard and you can paste the content into notepad or any other editor, now let’s click on finish and here is our new account right away, it’s already pre-activated here. Now let’s go to the website algorithmictradingsystem.com, click onto the results link and here you can download the demo version for a lot of entries, you can download it for free and it will work with your original Metatrader 5 demo account so let’s do that! I want to select the two files, click on file, open data folder inside of Metatrader and navigate to mql5, experts, I will paste the files here, let’s right-click on expert advisors and select refresh, here is the new file, we can now select it in the strategy tester, to save some time I will disable the visible mode here and start a test. This is how it looks like, this was a very low-risk setting, let’s select eighteen, restart the test and here you can see the results for the demo version, in this case for the Stochastic oscillator, in this case, the results look very promising with a download from algorithmictradingsystem.com and in this little video you have learned how to create an original MetaQuotes demo account inside of Metatrader and you have done it yourself within a few minutes.More MQL5 Tutorial Videos:MQL5 TUTORIAL BASICS - 76 SIMPLE ACCOUNT INFORMATION In this video, we are going to create an expert advisor that is able to output account-related information directly on our chart. To get started…MQL5 TUTORIAL BASICS - 18 HOW TO TRADE SMALL ACCOUNTS WITHOUT BEING STOPPED OUT In this video we want to talk about how to trade small accounts and how to manage risk so let’s find out how to do…MQL5 TUTORIAL - 10 YEARS PROFIT NEW REAL MONEY ACCOUNT In this video we are going to talk about a new system and a new website. The new website will be: robottradingsystem.com, this is the…MQL5 TUTORIAL - Why you need to remove yourself In this video I wanted to ask you something. Is this a good or a bad result? The system is trading, it's trading automated, it's…MQL5 TUTORIAL - AUTOMATED STATISTICS WITH MYFXBOOK This is one of my longtime testing accounts, it's for the English Framework version that we have created in the MQL5 Premium Course, sorry for…MQL5 TUTORIAL - COMMON BACKTESTING ERRORS Today I wanted to talk about a few things that might go wrong in your back testing process. From time to time you will find…MQL5 TUTORIAL BASICS - 62 SIMPLE MARGIN MONITOR In this video we are going to create a simple margin monitor that is going to output all the margin related information on our chart,…MQL5 TUTORIAL - ADVANCED RISK AND PROFIT In this video, I wanted to talk about risk. This is the Forex Trading Framework from October 2017, right now it's trading the RSI indicator,…
In diesem Video wollen wir uns einmal anschauen, wie man so ein MetaQuotes original Demokonto erstellen kann. Diese konnten werden eigentlich bei der Erstinstallation vom Metatrader direkt mitgeliefert, aber von Zeit zu Zeit kann es sinnvoll sein, ein solches Konto neu zu erstellen. Und wir wollen uns jetzt einmal anschauen, wie man das direkt im Metatrader bewerkstelligen kann. Das hier ist eine Demoversion, die auf der Webseite algotradingsystem.de heruntergeladen werden kann. Sie ist kostenlos verfügbar. Funktioniert allerdings auch nur mit original MetaQuotes-Demokonten. Der Grund dafür ist ziemlich einfach. MetaQuotes ist der Hersteller von der Software, die wir hier benutzen. Der Metatrader ist also bereits für sie verfügbar. Und diese MetaQuotes-Demokonten können auch in jedem Land angelegt werden. Normalerweise nutze ich den Broker RoboForex. Auch der unterstützt hier einen Hebel von 1:500. Das wäre aber mit deutschen Brokern beispielsweise nicht möglich. Und da auch andere Konditionen abweichen können, macht es Sinn ein solches Demokonto, zumindest für den Vergleich von solchen Ergebnissen hier, zu installieren. Denn je nachdem welchen Broker Sie nutzen, könnte es zum Beispiel sein, dass Sie andere Konditionen, wie zum Beispiel Swap-Gebühren haben. Und so ein MetaQuotes-Demokonto liefert die gleichen historischen Daten für alle. Also lassen Sie uns einmal anschauen, wie man ein solches Konto direkt im Metatrader einrichten kann. Dazu klicken wir mit der rechten Maustaste auf Konten, Konto eröffnen. Hier sollten Sie bereits den Eintrag MetaQuotes Software Corporation finden. Andernfalls kann man den hier oben auch suchen. Wir möchten diesen Eintrag auswählen. Klicken hier auf weiter. Hier ist bereits vorselektiert, dass wir ein Demokonto für den Handel mit virtuellem Geld ohne Risiko eröffnen möchten. Die MetaQutes-Demokonten sind kostenlos. Für ein Echtgeldkonto müsste man hier einen zusätzlichen Identitätsnachweis erbringen. In der Regel ist das so was wie Bilder vom Personalausweis oder Abrechnungen. Uns reicht aber in diesem Fall das Demokonto aus. Wir klicken jetzt hier auf weiter. Ich muss jetzt hier noch meine Angaben überprüfen und ganz wichtig, bitte setzen Sie hier den Haken beim Hedging. Bis zum Jahr 2016 oder so war Metatrader 5 ursprünglich nur in der Lage einzelne Positionen mit dem sogenannten Netting-Mode zu handeln. Wenn man aber mehrere Positionen handeln möchte, wie wir das hier gerade tun, dann braucht man ein Hedging-Konto. Nicht alle Broker unterstützen das in ihren Demokonten. Erkennen kann man das daran, dass das Wort Hedge hier oben, in der Leiste von Metatrader, auftaucht. Wir entscheiden uns hier für ein MetaQuotes-Demokonto. Mit einer Standardeinzahlung von 100.000 Euro. Man könnte auch USD auswählen. Und es stehen auch ein paar andere Währungen zur Verfügung. Beim Hebel wähle ich hier 1:500 aus. Sowas ist mittlerweile bei deutschen Brokern nicht mehr drin. Durch die ESMA-Regulierung kann man nur noch solche kleinen Hebel hier traden. Und zum Schluss muss ich hier noch den Bedingungen zustimmen. Danach klicken wir auf weiter. Und hier werden uns auch schon die Zugangsdaten angezeigt. Irgendwas habe ich jetzt beim Hebel falsch gemacht, aber für dieses Beispielvideo soll uns das so reichen. Über diesen Link hier unten, kann man sich die Registrierungsdaten direkt in die Zwischenablage kopieren und dann später mit Word oder Notepad öffnen. Wir klicken jetzt hier unten auf Fertigstellen. Und zack ist unser neues Konto hier oben auch schon verfügbar. Wie man sieht habe ich hier einen Hebel von 1:100 gewählt. Meine anderen Konten hier haben hier 1:500. Und das wird übrigens von RoboForex auch für mein Echtgeldkonto unterstützt. Schauen wir aber mal hier ob unser MetaQuotes-Demokonto auch mit automatischen Handelssystemen funktioniert. Dazu gehen wir hier einmal auf die neue Webseite algotradingsystem.de. Klicken hier oben auf den Link für die Resultate.
In this video, we want to find out how to create one of these MetaQuotes demo accounts, these are original demo accounts from MetaQuotes, that is the provider of Metatrader 4, so let’s find out how to create such an account right inside of Metatrader! To do that please right-click on accounts and select open an account, now you should see a lot of entries in my case for RoboForex because that is the broker that I use for my other accounts but here we can add one so let’s type in MetaQuotes and when you click on scan you should see this entry, MetaQuotes demo that is provided by the MetaQuotes Software Corporation so let’s select this one and click on continue. Here we can pick one of three entries, the first one would be to connect to an existing account, the second one is the new demo account, that’s actually what we want and the third one would be a new real account. To create something like this you would need additional authentication. For example, I had to send pictures of my passport and a few account statements but in this video, we just need a demo account so let’s click on continue. Here I have to fill in my credentials, actually, I also have to agree to subscribe to the newsletter, this is little strange… I usually pick one hundred thousand dollars and a big leverage. In Metatrader 4 the highest leverage now is 1 to 100, for German accounts, you could only pick something like this. Now let’s click on continue and here are my credentials. In Metatrader 5 I would get an additional link where I can copy the credentials and paste them into notepad or word. For Metatrader 4 please create a screenshot or write them down, so let’s click on finish and here is my new account. I can now click on log in to trade account and my password is already available, let’s mark the option for save account information here and click on log in. I want to find out if my expert advisor will run with this kind of account, so let’s pick one of the expert advisors here, mark the visual mode and click on start. In my case, it starts to run right away but when I pick another currency pair it might not do anything, it says waiting for update. In this case, you can click on tools, history center, pick the currency pair you need, mark one minute and here you would be able to import historical data, unfortunately, I don’t have any downloads for this currency pair so let’s open the webpage histdata dot com, click on download free forex data, I want forex data for one minute, this is the currency pair I need and I would like to download the whole year 2018, so let’s do that. This is the file that contains all the data we need so let’s copy that, paste it here, now I want to open the file and here is my historical data so let’s close everything, restart the test and this time it works. In this video, you have learned how to create an original MetaQuotes demo account right inside Metatrader and you have done it yourself within a few minutes. Automated Trading Tutorial Related Posts: MQL4 TUTORIAL BASICS - 18 HOW TO TRADE SMALL… In this video we want to talk about a way… MQL4 TUTORIAL BASICS - 33 HOW TO MODIFY A SELL POSITION SIZE In this video we are going to find out how… MQL4 TUTORIAL - METATRADER4 DOWNLOAD SETUP FILE GONE? In this video I wanted to talk about somet...
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. Automated Trading Tutorial Related Posts: MQL4 TUTORIAL - SIMPLE MODULAR EXPERT ADVISOR In this video we are going to create a simple… MQL4 TUTORIAL BASICS - 21 HOW TO CODE A MACD EXPERT ADVISOR In this video, we are going to code an Expert…
In this video we want to to find out how to close all the sell positions at the same time, this little expert advisor is going to open ten sell positions and as soon as we have exactly ten positions it is going to close them, so let’s find out how to code that in mql5. To do that 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, expert advisor from template, continue, I will call this file: simple sell position closer, 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. We start by using the include statement here to include the file trade dot mqh, it comes with mql5 and it makes it possible to create an instance of ctrade called trade in this case and we are going to use this instance to open our positions later on. First, we need to get the bid price that is done by using symbol info double for the current symbol on the chart and we are using symbol underscore bid, all in capital letters. I also like to use normalize double and underscore digits to automatically calculate the right number of digits behind the dot, that depends on the currency pair… If we have less than ten positions, so if positions total returns a value below ten we use trade dot sell to open a test position, the lot size will be ten micro lot and we continue to do that until positions total will deliver a return value of exactly ten, so now we have ten open positions and in that case we want to close all open sell positions with a function called: close all sell positions that doesn’t exist right now so we need to code it. The return type of the function will be void, the name is close all sell positions, we will use a for loop to go through all the open positions until there are no positions left. First, we need to use the function position get ticket to get the ticket number for the current position number, so i in this case is just the counter for this for loop and the ticket number is a longer number that will identify the position. We also need to find out the position direction so we use position get integer, the parameter here is position underscore type – all in capital letters – and now we can check if the position direction equals position type sell – all in capital letters –, if this is the case we have a sell position and now we use trade dot position close for the current position ticket that we have calculated here to close the position. Finally, we need to close the for loop and the function and that’s about it. If you don’t understand what all the code here does or if this was too fast for you, you might want to watch the other videos in this basic video series or maybe even the premium course is interesting, for now, please click on the compile button or press F7, you shouldn’t get any errors here and in that case you can click on the little button here or press F4 to go back to Metatrader. Since the last update there are some strange settings here, first I need to re-enable the standard toolbar, now we can click on view, strategy tester or press control and r, and here we now have a list of choices that has been implemented by Metaquotes, I want to select “Run single test of an Expert Advisor”, please pick the new file: simple sell position closer dot ex5, enable the visualization option here and start a test. Here we are! The expert advisor is working, it is able to open positions here and as soon as we have ten positions on the chart it will call the new function to close them all at the same time, so in this little video you have learned how to code that with mql5 and you have done it yourself with a few lines of code.More MQL5 Tutorial Videos:MQL5 TUTORIAL BASICS - 30 HOW TO CLOSE ALL BUY POSITIONS This test expert advisor is going to open ten test positions and as soon as we have ten open positions we call a function called…MQL5 TUTORIAL BASICS - 27 HOW TO CODE A SIMPLE SELL TRAILING STOP In this video we are going to create a trailing stop for sell trades, you can see when the price falls that the trailing stop…MQL5 TUTORIAL BASICS - 41 SIMPLE SELL BREAKEVEN STOP In this video, we are going to find out how to set a breakeven stop for sell trades when the price is running into our…MQL5 TUTORIAL BASICS - 33 SIMPLE SELL POSITION MODIFIER In this video we are going to find out how to reduce the position size for an existing sell position, here we have nine micro…MQL5 TUTORIAL BASICS - 29 HOW TO CALCULATE THE NUMBER OF SELL POSITIONS In this video we are going to find out how we can calculate the number of sell positions, the expert advisor currently counts seven positions…MQL5 TUTORIAL BASICS - 56 SIMPLE CLOSE TIMER In this video, we are going to create a timer that is able to close positions that are not profitable, in this case after one…MQL5 TUTORIAL BASICS - 60 SIMPLE DYNAMIC SELL POSITION SIZE In this video we are going to create an expert advisor that is able to dynamically calculate the position size for sell positions, so let's…MQL5 TUTORIAL BASICS - 58 SIMPLE DYNAMIC BUY POSITION SIZE In this video, we are going to find out how to dynamically calculate position sizes for buy trades, in this case, based on the equity,…
In this video we want to to find out how to close all the sell positions at the same time, this little expert advisor is going to open ten sell positions and as soon as we have exactly ten positions it is going to close them, so let’s find out how to code that in mql5. To do that 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, expert advisor from template, continue, I will call this file: simple sell position closer, 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. We start by using the include statement here to include the file trade dot mqh, it comes with mql5 and it makes it possible to create an instance of ctrade called trade in this case and we are going to use this instance to open our positions later on. First, we need to get the bid price that is done by using symbol info double for the current symbol on the chart and we are using symbol underscore bid, all in capital letters. I also like to use normalize double and underscore digits to automatically calculate the right number of digits behind the dot, that depends on the currency pair… If we have less than ten positions, so if positions total returns a value below ten we use trade dot sell to open a test position, the lot size will be ten micro lot and we continue to do that until positions total will deliver a return value of exactly ten, so now we have ten open positions and in that case we want to close all open sell positions with a function called: close all sell positions that doesn’t exist right now so we need to code it. The return type of the function will be void, the name is close all sell positions, we will use a for loop to go through all the open positions until there are no positions left. First, we need to use the function position get ticket to get the ticket number for the current position number, so i in this case is just the counter for this for loop and the ticket number is a longer number that will identify the position. We also need to find out the position direction so we use position get integer, the parameter here is position underscore type – all in capital letters – and now we can check if the position direction equals position type sell – all in capital letters –, if this is the case we have a sell position and now we use trade dot position close for the current position ticket that we have calculated here to close the position. Finally, we need to close the for loop and the function and that’s about it. If you don’t understand what all the code here does or if this was too fast for you, you might want to watch the other videos in this basic video series or maybe even the premium course is interesting, for now, please click on the compile button or press F7, you shouldn’t get any errors here and in that case you can click on the little button here or press F4 to go back to Metatrader. Since the last update there are some strange settings here, first I need to re-enable the standard toolbar, now we can click on view, strategy tester or press control and r, and here we now have a list of choices that has been implemented by Metaquotes, I want to select “Run single test of an Expert Advisor”, please pick the new file: simple sell position closer dot ex5, enable the visualization option here and start a test. Here we are! The expert advisor is working, it is able to open positions here and as soon as we have ten positions on the chart it will call the new function to close them all at the same time, so in this little video you have learned how to code that with mql5 and you have done it yourself with a few lines of code. More MQL5 Tutorial Videos: MQL5 TUTORIAL BASICS - 30 HOW TO CLOSE ALL BUY POSITIONS This test expert advisor is going to open ten test positions and as soon as we have ten open positions we call a function called… MQL5 TUTORIAL BASICS - 27 HOW TO CODE A SIMPLE SELL TRAILING STOP In this video we are going to create a trailing stop for sell trades, you can see when the price falls that the trailing stop… MQL5 TUTORIAL BASICS - 29 HOW TO CALCULATE THE NUMBER OF SELL POSITIONS In this video we are going to find out how we can calculate the number of sell positions, the expert advisor currently counts seven positions… MQL5 TUTORIAL - SIMPLE ORDER HISTORY PROFIT In this video we are going to calculate the history profit for positions that have been already closed, it will output the text: “My last… MQL5 TUTORIAL BASICS - 28 HOW TO CALCULATE THE NUMBER OF OPEN BUY POSITIONS In this video, we are going to find out how many buy positions we have. This is a question that came from one of my… MQL5 TUTORIAL - SIMPLE POSITION CLOSE This time we are talking about closing of positions, that happened right now. I have gotten a request to do this from one of the… MQL5 TUTORIAL - SIMPLE POSITION INFO In this video we are going to talk about position properties. This chart is about the Australian against the Canadian Dollar. We have a position… MQL5 TUTORIAL BASICS - 26 HOW TO CODE A SIMPLE BUY TRAILING STOP In this video we want to create a trailing stop loss like this one, the stop loss is trailing whenever the price is going up… The post MQL5 TUTORIAL BASICS – 31 HOW TO CLOSE ALL SELL POSITIONS appeared first on MQL5 Tutorial.
Ponad 20 lat temu, gdy pierwszy raz zetknąłem się z programowaniem, poza środowiskami profesjonalnie zajmującymi się informatyką, było to zagadnienie bardzo mało znane i rozumiane. Nic w tym dziwnego, bo i same komputery osobiste w owym czasie nieśmiało dopiero wkraczały do naszych domów. Od tamtego czasu świat przeżył dosłownie rewolucje.Obecnie umiejętność programowania nie jest zarezerwowana tylko dla profesjonalistów i coraz powszechniej jest nauczana w szkołach. Coraz więcej też osób chce poświęcić się programowaniu profesjonalnie ze względu choćby na wielość ofert pracy (oby to tylko nie był jedyny powód), gdzie od lat notuje się rekordowe wręcz niedobory kandydatów.W tym odcinku opowiem na bazie własnych doświadczeń i przemyśleń, na ile wiedza z zakresu programowania może być pomocna w tradingu, spekulacji czy szerzej — inwestowaniu. Mowię o tym czy każdy może poznać choćby podstawy programowania, oraz przybliżę kilka języków programowania, podając ich praktyczne zastosowania.Programowanie kojarzy się często z czymś, co jest bardzo skomplikowane. Wcale tak być nie musi. Współczesne języki programowania wysokiego poziomu zostały zaprojektowane tak, by programista mógł jak najbardziej skupić się na rozwiązywanym problemie, przy jak najmniejszym zaangażowaniu w kwestie techniczne.Traderzy (w szczególności indywidualni traderzy) mogą korzystać ze specjalnie stworzonych dla nich środowisk programowania, tak by poświęcając na naukę dosłownie kilka dni, startując od zera, móc zacząć tworzyć i testować strategie transakcyjne. Do tego nie ma potrzeby kończenia studiów informatycznych i lat nauki czy poznawania zaawansowanych paradygmatów programowania.Dla znakomitej większości traderów języki typu Assembler, C/C++ czy nawet Java są całkowicie zbędne. Dużo szybciej i sprawniej można odnaleźć się w językach skryptowych, dostępnych na wielu platformach stworzonych dla traderów (np. AmiBroker, TradeStation, MetaQuotes). Jeśli więc rozpoczynasz swoją przygodę z programowaniem na potrzeby tradingu, nie rzucaj się od razu na głęboką wodę – zyskasz masę czasu, a całkiem możliwe, że i pieniędzy.Strona odcinka: https://systemtrader.pl/011
Ponad 20 lat temu, gdy pierwszy raz zetknąłem się z programowaniem, poza środowiskami profesjonalnie zajmującymi się informatyką, było to zagadnienie bardzo mało znane i rozumiane. Nic w tym dziwnego, bo i same komputery osobiste w owym czasie nieśmiało dopiero wkraczały do naszych domów. Od tamtego czasu świat przeżył dosłownie rewolucje.Obecnie umiejętność programowania nie jest zarezerwowana tylko dla profesjonalistów i coraz powszechniej jest nauczana w szkołach. Coraz więcej też osób chce poświęcić się programowaniu profesjonalnie ze względu choćby na wielość ofert pracy (oby to tylko nie był jedyny powód), gdzie od lat notuje się rekordowe wręcz niedobory kandydatów.W tym odcinku opowiem na bazie własnych doświadczeń i przemyśleń, na ile wiedza z zakresu programowania może być pomocna w tradingu, spekulacji czy szerzej — inwestowaniu. Mowię o tym czy każdy może poznać choćby podstawy programowania, oraz przybliżę kilka języków programowania, podając ich praktyczne zastosowania.Programowanie kojarzy się często z czymś, co jest bardzo skomplikowane. Wcale tak być nie musi. Współczesne języki programowania wysokiego poziomu zostały zaprojektowane tak, by programista mógł jak najbardziej skupić się na rozwiązywanym problemie, przy jak najmniejszym zaangażowaniu w kwestie techniczne.Traderzy (w szczególności indywidualni traderzy) mogą korzystać ze specjalnie stworzonych dla nich środowisk programowania, tak by poświęcając na naukę dosłownie kilka dni, startując od zera, móc zacząć tworzyć i testować strategie transakcyjne. Do tego nie ma potrzeby kończenia studiów informatycznych i lat nauki czy poznawania zaawansowanych paradygmatów programowania.Dla znakomitej większości traderów języki typu Assembler, C/C++ czy nawet Java są całkowicie zbędne. Dużo szybciej i sprawniej można odnaleźć się w językach skryptowych, dostępnych na wielu platformach stworzonych dla traderów (np. AmiBroker, TradeStation, MetaQuotes). Jeśli więc rozpoczynasz swoją przygodę z programowaniem na potrzeby tradingu, nie rzucaj się od razu na głęboką wodę – zyskasz masę czasu, a całkiem możliwe, że i pieniędzy.Strona odcinka: https://systemtrader.pl/011
¡Muy buenos días a todos! Hoy vengo a explicar todo sobre el universo Metatrader 4 y seguro que hay muchas personas que la usan para forex, pero seguramente habrá cosas que desconozcáis. Y es que el universo metatrader es muy muy grande. Tan grande que realmente la industria de Metaquotes (que es la empresa que está detrás de Metatrader 4 y 5) no ha parado de crecer desde hace años y de forma constante. Estos kazajistanies, que aunque la gente se piensa que son rusos, son dos hermanos que empezaron el negocio hace ya varios años y querían empezar con una plataforma sencilla para operar y que permitiera poder hacer llegar a todos el poder operar en forex. Para ello, idearon la plataforma más usada hoy en dia en el mercado de forex retail. Cuando hablo de retail, supongo que algunos ya sabréis que son aquellos usuarios que no tengan mucho capital, que no son empresas grandes y que por tanto, no tienen tantos recursos como para poder usar sus propias plataformas, sus algoritmos o unos analistas profesionales. Simplemente que hagan de su hobby, el trading, un entretenimiento más y que a la larga puedan llegar a ganarse la vida con ello. Bien, pues Metatrader es un hecho que actualmente está en todos los brokers del mundo del forex y ahora veremos porqué, pero antes, quiero definir en qué activos se puede trabajar con Metatrader. Y es que actualmente, son los pares de divisa de Forex, los CFD’s sobre acciones, indices o incluso metales los que se pueden operar en la plataforma. Estos activos son super-fáciles de conectar y realmente si conoces la plataforma, todo está diseñado para que sea fácil. Destaca todo por la sencillez tanto para el usuario como para el broker que lo usa. Metatrader 4 se caracteriza por tener “a mano”, un gráfico grande, la ventana de precios y los indicadores y robots accesibles desde el panel de la izquierda. Por tanto, no es de extrañar que todo el mundo lo use. Está preparado para crear tus propias estrategias, te puedes crear robots de trading, indicadores, scripts y poner operaciones es un juego de niño. El resultado de cada operación y de tu cartera, está explicado de forma totalmente amena y rápida. De hecho, es una de las plataformas más sencillas en cuanto a esto, ya que te permite tener a la vista todas las operaciones y ver el resultado diario, semanal, mensual o incluso el actual en todo momento. A parte, por si no fuera poco, esto solo es la parte del cliente. Por la parte del broker, tienen varias herramientas que engloban esta parte del universo de metatrader. La empresa Metaquotes, que por cierto, no me paga nada por hacer este podcast, no os penseis que lo estoy promocionando, ya que esta empresa no necesita promoción. Todo el mundo la conoce y la usa y no precisamente por o barata que es ni por el trato que tienen con los clientes. Bien, pues esta empresa ha diseñado todas las herramientas para la parte del broker: – Seguimiento de clientes (CRM): es sin duda una de las herramientas clave. Permite controlar a todos los clientes que hay en el sistema, todos las cuentas que tiene cada cliente, permite crear de nuevas, cambiarlas, ver las operaciones, ver el histórico de sus operaciones, le puedes quitar el acceso a operar, cambiar contraseñas y un largo etcetera que casi es infinito. Todo es para gestionar a los usuarios con una maneabilidad altísima. – Creación de cuentas, grupos o incluso de activos financieros nuevos para añadirlos a la plataforma. Todo esto, claro está, a la manera metatrader. Es decir, a la manera fácil e intuitiva. No te piden mucho. Puedes copiar los datos que te llegan del proveedor de liquidez concreto y lo que haces es cambiarle el nombre para que los clientes lo vean de una manera o de otra. Con unas características concretas, haciendo así que cada cliente pueda ver activos distintos sin que afecte para nada a su operativa ni a la rapidez. – Conexión con uno o varios proveedores de liquidez. Lo que hacen es que dan la posibilidad de conectar a un flujo de información proveniente de lo que se llama el proveedor de liquidez. Este es el que te da los precios, te da la contrapartida y el que podemos definir como el mercado. Estas conexiones las hacen mediante lo que se llama una API FIX y es que API son las siglas de Application Porgramming Interface y es un protocolo que define la manera de conectar dos sistemas de información diferente: el broker y la empresa de liquidez, y FIX es Financial Information Exchange, el cual es el nombre de este protocolo. – Permite plugins: una de las maravillas del software para los brokers es esta. La plataforma en sí es simple, sencilla y rápida. Los brokers la compran “pelada”. Es decir, con lo más básico para poder operar, aunque dejan la posibilidad de que empresas del sector, puedan crear aplicaciones para todo tipo de usos. Por ejemplo, las famosas cuentas gestionadas a través de sistemas PAMM o MAM. Que por cierto, de esto precisamente hablaré el lunes que viene en el podcast. Estad atentos porque puede ser interesante. Otro plugins o aplicaciones compatibles con MT4 son interesantes para los brokers porque sirven para el punto siguiente que voy a hablar. – El punto que voy a decir ahora es el más crítico de todo el podcast y el que muchos brokers no quieren oír, y es que no deja de ser verdad y como sabréis, no me caso con nadie, quiero explicaros la verdad para que sepáis lo bueno y lo malo de la película. Los creadores del software, crearon una parte del programa para la alteración de precios de mercado, posibilitando así a los brokers Dealing desk (con mesa de negociación) que pudieran modificar precios, alterar posiciones, crear de nuevas e incluso que pudieran seguir unos patrones muy concretos, como por ejemplo, crear lo que se llaman spikes, que son subidas o bajadas muy repentinas del precio para hacer saltar algun que otro stop para poder dejar al cliente sin esa operación. Es por eso, que muchas veces los brokers no ofrecen los mismos precios entre ellos sobre el mismo activo. Os preguntareis alguna vez, supongo ¿si el activo es el mismo, porque no cotiza de la misma manera? Pues aquí lo tenéis. De hecho, como decía antes, esto de los plugins es una cosa interesante, ya que hay empresas que te hacen estadísticas de qué clientes pueden hacer “saltarle” las cuentas con un par de clics. Es decir, que permiten avisar a los gestores del broker, que hay clientes que están muy cerca de que haya operaciones que se puedan cerrar y que por tanto, sean cercanas a que alguien ayude a cerrarlas. Que las fuercen a que les toque el stop loss mediante un spike o movimiento muy rápido de mercado. Cabe decir que muchos de vosotros diréis: ¿pero esto no es ilegal? Para nada. Os lo explicaré por dos bandas totalmente diferentes: la primera, a nivel regulatorio y la segunda, nos lo avisan desde el principio. Vamos con la primera: depende de qué licencia, el broker puede hacer de market maker, es decir, de creador de mercado. Esto hace que por supuesto, muchas de las personas que están detrás de las pantallas de estos brokers, puedan manipular el precio con total descaro y es que tienen la licencia para hacerlo. Los reguladores lo saben y de hecho, les han dado permiso para hacer de manipuladores de mercado. Es lo que se llama, mesa de negociación (o dealing desk en inglés). La segunda parte es la más divertida y es que cuando nosotros abrimos una cuenta en un broker, siempre firmamos conforme estamos de acuerdo con todo y que lo que queremos es ingresar el dinero lo más rápido posible para poder operar en el mercado. Esto hace que allí, en el texto que es inmensamente largo y que nadie se lee (es como cuando vendemos el alma al diablo por todos los softwars, webs y todas estos textos legales que todo el mundo aceptamos sin leer), bien, pues este texto, en muchos casos se exime de responsabilidad por movimientos producidos por el sistema y por su software. Lo que no dicen obviamente, es que el software está mandado por un humano. Esto, claro está, no interesa decirlo, ya que quedaría demasiado evidente. Cabe decir entonces, que en cuanto a brokers, lo que os digo siempre. Para evitar que os manipulen, buscad un broker que no tenga mesa de negociación o que no tenga la licencia para hacerlo. Con esto, os aseguráis al 90% de que no os hacen pirulas. Porque si las hacen o descubrís que las hacen, la primera denuncia que reciba el regulador, depende de cual sea, se puede tomar muy enserio esta denuncia y empezar a investigarlos. Bien, pues yo creo que con todo esto, os he explicado las otras caras de Metatrader 4, aunque como habéis visto en el título, esto es la primera parte. Y es que el universo de Metatrader 4 es inmenso y no quiero dejarme nada para que podáis ver y entender qué aporta esta plataforma a todos sus clientes y es que a lo mejor le podéis sacar más jugo y no lo sabéis. ¡Hasta aquí el podcast de hoy! Recordad suscribiros al canal y si podéis, darme un me gusta en iVoox y 5 estrellas en iTunes! ¡Muchas gracias! ¡Hasta mañana! La entrada 52. Universo Metatrader 4 I aparece primero en Ferran P..
¡Muy buenos días a todos! Hoy vengo a explicar todo sobre el universo Metatrader 4 y seguro que hay muchas personas que la usan para forex, pero seguramente habrá cosas que desconozcáis. Y es que el universo metatrader es muy muy grande. Tan grande que realmente la industria de Metaquotes (que es la empresa que está detrás de Metatrader 4 y 5) no ha parado de crecer desde hace años y de forma constante. Estos kazajistanies, que aunque la gente se piensa que son rusos, son dos hermanos que empezaron el negocio hace ya varios años y querían empezar con una plataforma sencilla para operar y que permitiera poder hacer llegar a todos el poder operar en forex. Para ello, idearon la plataforma más usada hoy en dia en el mercado de forex retail. Cuando hablo de retail, supongo que algunos ya sabréis que son aquellos usuarios que no tengan mucho capital, que no son empresas grandes y que por tanto, no tienen tantos recursos como para poder usar sus propias plataformas, sus algoritmos o unos analistas profesionales. Simplemente que hagan de su hobby, el trading, un entretenimiento más y que a la larga puedan llegar a ganarse la vida con ello. Bien, pues Metatrader es un hecho que actualmente está en todos los brokers del mundo del forex y ahora veremos porqué, pero antes, quiero definir en qué activos se puede trabajar con Metatrader. Y es que actualmente, son los pares de divisa de Forex, los CFD’s sobre acciones, indices o incluso metales los que se pueden operar en la plataforma. Estos activos son super-fáciles de conectar y realmente si conoces la plataforma, todo está diseñado para que sea fácil. Destaca todo por la sencillez tanto para el usuario como para el broker que lo usa. Metatrader 4 se caracteriza por tener “a mano”, un gráfico grande, la ventana de precios y los indicadores y robots accesibles desde el panel de la izquierda. Por tanto, no es de extrañar que todo el mundo lo use. Está preparado para crear tus propias estrategias, te puedes crear robots de trading, indicadores, scripts y poner operaciones es un juego de niño. El resultado de cada operación y de tu cartera, está explicado de forma totalmente amena y rápida. De hecho, es una de las plataformas más sencillas en cuanto a esto, ya que te permite tener a la vista todas las operaciones y ver el resultado diario, semanal, mensual o incluso el actual en todo momento. A parte, por si no fuera poco, esto solo es la parte del cliente. Por la parte del broker, tienen varias herramientas que engloban esta parte del universo de metatrader. La empresa Metaquotes, que por cierto, no me paga nada por hacer este podcast, no os penseis que lo estoy promocionando, ya que esta empresa no necesita promoción. Todo el mundo la conoce y la usa y no precisamente por o barata que es ni por el trato que tienen con los clientes. Bien, pues esta empresa ha diseñado todas las herramientas para la parte del broker: – Seguimiento de clientes (CRM): es sin duda una de las herramientas clave. Permite controlar a todos los clientes que hay en el sistema, todos las cuentas que tiene cada cliente, permite crear de nuevas, cambiarlas, ver las operaciones, ver el histórico de sus operaciones, le puedes quitar el acceso a operar, cambiar contraseñas y un largo etcetera que casi es infinito. Todo es para gestionar a los usuarios con una maneabilidad altísima. – Creación de cuentas, grupos o incluso de activos financieros nuevos para añadirlos a la plataforma. Todo esto, claro está, a la manera metatrader. Es decir, a la manera fácil e intuitiva. No te piden mucho. Puedes copiar los datos que te llegan del proveedor de liquidez concreto y lo que haces es cambiarle el nombre para que los clientes lo vean de una manera o de otra. Con unas características concretas, haciendo así que cada cliente pueda ver activos distintos sin que afecte para nada a su operativa ni a la rapidez. – Conexión con uno o varios proveedores de liquidez. Lo que hacen es que dan la posibilidad de conectar a un flujo de información proveniente de lo que se llama el proveedor de liquidez. Este es el que te da los precios, te da la contrapartida y el que podemos definir como el mercado. Estas conexiones las hacen mediante lo que se llama una API FIX y es que API son las siglas de Application Porgramming Interface y es un protocolo que define la manera de conectar dos sistemas de información diferente: el broker y la empresa de liquidez, y FIX es Financial Information Exchange, el cual es el nombre de este protocolo. – Permite plugins: una de las maravillas del software para los brokers es esta. La plataforma en sí es simple, sencilla y rápida. Los brokers la compran “pelada”. Es decir, con lo más básico para poder operar, aunque dejan la posibilidad de que empresas del sector, puedan crear aplicaciones para todo tipo de usos. Por ejemplo, las famosas cuentas gestionadas a través de sistemas PAMM o MAM. Que por cierto, de esto precisamente hablaré el lunes que viene en el podcast. Estad atentos porque puede ser interesante. Otro plugins o aplicaciones compatibles con MT4 son interesantes para los brokers porque sirven para el punto siguiente que voy a hablar. – El punto que voy a decir ahora es el más crítico de todo el podcast y el que muchos brokers no quieren oír, y es que no deja de ser verdad y como sabréis, no me caso con nadie, quiero explicaros la verdad para que sepáis lo bueno y lo malo de la película. Los creadores del software, crearon una parte del programa para la alteración de precios de mercado, posibilitando así a los brokers Dealing desk (con mesa de negociación) que pudieran modificar precios, alterar posiciones, crear de nuevas e incluso que pudieran seguir unos patrones muy concretos, como por ejemplo, crear lo que se llaman spikes, que son subidas o bajadas muy repentinas del precio para hacer saltar algun que otro stop para poder dejar al cliente sin esa operación. Es por eso, que muchas veces los brokers no ofrecen los mismos precios entre ellos sobre el mismo activo. Os preguntareis alguna vez, supongo ¿si el activo es el mismo, porque no cotiza de la misma manera? Pues aquí lo tenéis. De hecho, como decía antes, esto de los plugins es una cosa interesante, ya que hay empresas que te hacen estadísticas de qué clientes pueden hacer “saltarle” las cuentas con un par de clics. Es decir, que permiten avisar a los gestores del broker, que hay clientes que están muy cerca de que haya operaciones que se puedan cerrar y que por tanto, sean cercanas a que alguien ayude a cerrarlas. Que las fuercen a que les toque el stop loss mediante un spike o movimiento muy rápido de mercado. Cabe decir que muchos de vosotros diréis: ¿pero esto no es ilegal? Para nada. Os lo explicaré por dos bandas totalmente diferentes: la primera, a nivel regulatorio y la segunda, nos lo avisan desde el principio. Vamos con la primera: depende de qué licencia, el broker puede hacer de market maker, es decir, de creador de mercado. Esto hace que por supuesto, muchas de las personas que están detrás de las pantallas de estos brokers, puedan manipular el precio con total descaro y es que tienen la licencia para hacerlo. Los reguladores lo saben y de hecho, les han dado permiso para hacer de manipuladores de mercado. Es lo que se llama, mesa de negociación (o dealing desk en inglés). La segunda parte es la más divertida y es que cuando nosotros abrimos una cuenta en un broker, siempre firmamos conforme estamos de acuerdo con todo y que lo que queremos es ingresar el dinero lo más rápido posible para poder operar en el mercado. Esto hace que allí, en el texto que es inmensamente largo y que nadie se lee (es como cuando vendemos el alma al diablo por todos los softwars, webs y todas estos textos legales que todo el mundo aceptamos sin leer), bien, pues este texto, en muchos casos se exime de responsabilidad por movimientos producidos por el sistema y por su software. Lo que no dicen obviamente, es que el software está mandado por un humano. Esto, claro está, no interesa decirlo, ya que quedaría demasiado evidente. Cabe decir entonces, que en cuanto a brokers, lo que os digo siempre. Para evitar que os manipulen, buscad un broker que no tenga mesa de negociación o que no tenga la licencia para hacerlo. Con esto, os aseguráis al 90% de que no os hacen pirulas. Porque si las hacen o descubrís que las hacen, la primera denuncia que reciba el regulador, depende de cual sea, se puede tomar muy enserio esta denuncia y empezar a investigarlos. Bien, pues yo creo que con todo esto, os he explicado las otras caras de Metatrader 4, aunque como habéis visto en el título, esto es la primera parte. Y es que el universo de Metatrader 4 es inmenso y no quiero dejarme nada para que podáis ver y entender qué aporta esta plataforma a todos sus clientes y es que a lo mejor le podéis sacar más jugo y no lo sabéis. ¡Hasta aquí el podcast de hoy! Recordad suscribiros al canal y si podéis, darme un me gusta en iVoox y 5 estrellas en iTunes! ¡Muchas gracias! ¡Hasta mañana! La entrada 52. Universo Metatrader 4 I aparece primero en Ferran P..
¡Muy buenos días a todos! Hoy vengo a presentaros, como decía antes, de como probar estrategias de trading automático. Para poder explicar el podcast de hoy que aunque digo ya de antemano que es un punto muy importante a explicar bien y es por eso que dedicaré un curso exclusivamente de ello, creo que debemos empezar por el principio. ¿Qué quiero decir con probar una estrategia de trading automático? Bien, pues cuando nosotros estamos empezando a intentar entrar en el mundo del trading, siempre nos pasa que queremos correr demasiado. Esto no es una carrera de velocidad ni de poco tiempo, sino es una carrera de fondo. Esta carrera de fondo empieza siempre con el mismo concepto. Haz el primer paso para empezar el camino. Este camino, aunque puede sonar muy metaforico, tiene mucha razón. Hay cosas que no se pueden acelerar. El embarazo de un niño no se puede acelerar. Dura alrededor de 9 meses y ya. Algunos quieren correr y tenerlo a las 2 semanas de gestarlo pero es que aunque quieras, no puedes. En el trading es igual. Mucha gente quiere beneficios y poder vivir de ello al cabo de 2 meses, cuando para poder vivir como profesor de secundaria se están preparando durante muchos años, tanto en la universidad como en oposiciones. Entonces, ¿porqué no en el trading tenemos la misma perspectiva de aprender poco a poco para tener el beneficio al final? Bueno, la gente se piensa que es de un día para otro. Seguramente es por lo que le han vendido, aunque como supongo que os ha pasado a muchos de vosotros, os habéis dado cuenta que como dice el refrán: “Visteme despacio que tengo prisa”. Pues bien, después de la reflexión, os explicaba esto porque una estrategia de trading pasa exactamente lo mismo. Nosotros no podemos saber si la estrategia que estamos usando en el día a día es valida o no. Si funciona o simplemente cuando ha ido bien es por cosas del mercado y que nos ha beneficiado en todas las entradas o al revés, que cuando hemos entrado, siempre ha ido en contra de nosotros y desechamos la estrategia cuando realmente no era mala, sino simplemente, no la habíamos probado suficiente. Pues tengo una mini-solución para algunos de vosotros. Ojalá pudiera arreglaros la vida a todos pero al menos, puedo ayudar a algunos. Y precisamente a los que he dedicado el programa y es que para los que saben programar o se defienden, tienen la posibilidad de acelerar el proceso de gestación del bebé. Se puede saber si una estrategia es buena o no en un tiempo mucho más pequeño que si lo hiciéramos manualmente. Para poder hacerlo, lo único que tenemos que hacer es seguir los pasos que os indico aquí y que realmente no son difíciles, pero si mecánicos. Para estos pasos, cabe decir de antemano que hemos de tener la estrategia ya pensada y que por tanto, la tenemos que tener muy clara en todos sus puntos y vertientes (temporalidad de uso, activos a usarlo, plataforma a usarlo, filtros posibles o cualquier elemento diferenciador de esta estrategia). Una vez la tenemos diseñada, tenemos que seguir estos pasos siguientes: 1- Programarla: Cuando nosotros la tenemos muy clara, esta estrategia se tiene que automatizar. Tened en cuenta que todas las estrategias de trading que se pueden escribir en un diario de trading con pasos concretos, se puede automatizar. Lo que no se puede automatizar son intuiciones o sensaciones de mercado que se tienen por parte de las personas. El resto, yo creo que se puede materializar a código y por tanto, que la máquina haga por ti las operaciones. Por tanto, tenemos que pasarla a programación y hacerlo de tal manera que si fuera una programación web o un servicio concreto de un proyecto de software. No deja de ser igual. Funciones, condicionales y elementos básicos de programación añadiendo los toques de entradas y salidas del mercado. 2- Testearla: lo primero que tenemos que hacer cuando estamos programando la idea, es comprobar que esta funciona como toca. En todos los casos y en todos los escenarios posibles. Tiene que estar perfecta antes de pasar a las pruebas de estrés. Estas pruebas seguro que nos muestran errores en el sistema, pero cabe decir que siempre aparecerán nuevas cosas, pero en este punto es donde de una madera tallada, tenemos que quitar las astillas y pulirla al máximo. Es donde la estrategia tiene que estar con todos los “hedge cases” resueltos para pasar a la acción. Dedícale tiempo a esta parte y no la obvies tanto. Es muy importante para el proceso ya que todo el tiempo que pierdas aquí, no lo perderás más adelante. 3- Backtestearla: empezamos con el proceso de probar con los valores iniciales. Es decir, nosotros habíamos creado estrategia a partir de una estrategia con unos parámetros concretos: timeframe, activos, indicadores, horarios y otras variables que estaban ya definidas por la propia estrategia. Vamos a ver si realmente en el tiempo funciona y aquí es donde nos apalancaremos más en el uso de la máquina, usándolo de una manera extrema para conseguir probar la estrategia durante muchos meses en cuestión de minutos. Los datos, que no me meteré ahora con eso pero que lo encuentro igual de importante dado este punto, se pasan por la estrategia para saber y determinar qué hubiera pasado si esta estrategia hubiera pasado por el momento del pasado concreto. ¿Hubiera salido ganadora? ¿Hubiera salido perdedora? o ¿hubiera salido más o menos igual que como empezó? Esto nos permite probar lo que un trader manual hace durante un año entero de forma convencional en cuestión de minutos y con una precisión milimétrica. Solo por este mismo hecho, ya me vale automatizarla. Me sale a cuenta, ya que así puedo comprobar cuan de buena es la estrategia. 4- Optimizarla: Perfecto. Llegados a este punto seguro que tenemos la estrategia al menos, probada como queríamos. En el caso que nos funcione como esperábamos y que saque beneficios (que esto, sinceramente, es ya muy bueno), vamos a acabar de perfeccionarla. En el caso que no se supere el backtesting y que se quiera seguir probando la estrategia, podemos usar este punto, aunque es entrar en terreno de la aleatoriedad. Y lo digo más que nada porque cuando optimizamos una estrategia que estaba diseñada para que funcionara con los parámetros iniciales y ni con esos funcionan, será poco probable que a base de fuerza bruta, funcione correctamente. En este punto, lo que vamos a hacer es lo siguiente: vamos a probar cada parámetro que hay en la estrategia para ver hasta donde llega con los datos del mercado. Es decir, vamos modificando cada variable de esta estrategia y probamos como reacciona a lo largo del tiempo. En el caso que funcione, nos guardamos los parámetros y seguimos probando. En el caso que no nos gusten o no salgan como esperamos a nivel de riesgo/beneficio, los descartamos y seguimos buscando. Al final, es un trabajo más de buscar la configuración que otra cosa. Cabe decir que este punto es un punto crítico, ya que no queremos caer en lo que se llama la sobreoptimización. Cuando hable de sobreoptimización, me referiré a los parámetros que salen del robot dado un tiempo y mercado concreto. Es decir, es como si hiciéramos el traje a medida de esos datos y por tanto, en cuanto estos datos cambien, el traje ya no servirá. Por tanto, como no sabemos como reaccionará en un futuro en el activo que hemos seleccionado, tenemos que tener en cuenta que claro, esta configuración está diseñada, probada y adaptada a datos pasados pero no futuros. Por tanto, lo mejor es seguir con el siguiente punto. El forward test. 5- Forward test: Este punto es el de la paciencia. Es el punto donde hemos recopilado los parámetros y variables del sistema que mejor se adaptan al robot para el activo concreto. Una vez hemos obtenido estos dos, que repito, no es fácil, lo que tenemos que hacer es abrir una cuenta demo en el broker con el que más nos apetezca trabajar y simular que esa cuenta es real. Es decir, poner el robot a funcionar con los mejores parámetros (o los que creemos nosotros que funcionarían bien en una cuenta real, es decir, con dinero real y no ficticio como en las cuentas demo). Nos tenemos que basar en un espacio temporal concreto (1 mes, 2 meses o 6 meses, dependiendo de la estrategia, claro está). Una vez haya pasado la prueba y el sistema responda de la misma manera (con el mismo riesgo/beneficio de forma aproximada que en el backtesting) durante ese periodo, podemos decir que está preparada para pasar a real. En el caso que no lo esté, debemos pasar a diseñarla de nuevo (si es problema de concepto), optimizarla de nuevo (si es problema de la parametrización) o descartar la estrategia si no nos acaba de gustar este tipo de operativa. 6- Real: En el caso que lleguemos aquí, os felicito ya que muy pocos llegan. Es la hora de la verdad y es exactamente lo mismo que el punto anterior. Pero esta vez, vamos de verdad. Con dinero real, esperando recoger los beneficios que tanto esperamos dado el trabajo realizado. En cualquier caso, como decía antes, haré explicitamente un curso para enseñar a nivel práctico, como haríamos todo este proceso, aunque tengo que decir que el apartado más complicado y es por eso que dedicaré un curso entero también, es el de backtesting y optimización. En este caso, de la plataforma más usada a nivel de Forex como es Metatrader. De todas maneras, las metodologías que se explicarán se pueden usar tanto para el software de Metaquotes como cualquier otro, ya que lo importante no es como hacerlo, sino la manera analizar los datos y hacer los pasos adecuados para llegar a tener una estrategia idónea. ¡Y por hoy ya está! Hasta aquí el podcast de hoy. Si podéis, suscribiros al canal y de darme un me gusta en iVoox y 5 estrellas en iTunes! ¡Muchas gracias! ¡Buen inicio de semana a todos! ¡Hasta mañana! La entrada 51. Probar una estrategia de trading automático aparece primero en Ferran P..
¡Muy buenos días a todos! Hoy vengo a presentaros, como decía antes, de como probar estrategias de trading automático. Para poder explicar el podcast de hoy que aunque digo ya de antemano que es un punto muy importante a explicar bien y es por eso que dedicaré un curso exclusivamente de ello, creo que debemos empezar por el principio. ¿Qué quiero decir con probar una estrategia de trading automático? Bien, pues cuando nosotros estamos empezando a intentar entrar en el mundo del trading, siempre nos pasa que queremos correr demasiado. Esto no es una carrera de velocidad ni de poco tiempo, sino es una carrera de fondo. Esta carrera de fondo empieza siempre con el mismo concepto. Haz el primer paso para empezar el camino. Este camino, aunque puede sonar muy metaforico, tiene mucha razón. Hay cosas que no se pueden acelerar. El embarazo de un niño no se puede acelerar. Dura alrededor de 9 meses y ya. Algunos quieren correr y tenerlo a las 2 semanas de gestarlo pero es que aunque quieras, no puedes. En el trading es igual. Mucha gente quiere beneficios y poder vivir de ello al cabo de 2 meses, cuando para poder vivir como profesor de secundaria se están preparando durante muchos años, tanto en la universidad como en oposiciones. Entonces, ¿porqué no en el trading tenemos la misma perspectiva de aprender poco a poco para tener el beneficio al final? Bueno, la gente se piensa que es de un día para otro. Seguramente es por lo que le han vendido, aunque como supongo que os ha pasado a muchos de vosotros, os habéis dado cuenta que como dice el refrán: “Visteme despacio que tengo prisa”. Pues bien, después de la reflexión, os explicaba esto porque una estrategia de trading pasa exactamente lo mismo. Nosotros no podemos saber si la estrategia que estamos usando en el día a día es valida o no. Si funciona o simplemente cuando ha ido bien es por cosas del mercado y que nos ha beneficiado en todas las entradas o al revés, que cuando hemos entrado, siempre ha ido en contra de nosotros y desechamos la estrategia cuando realmente no era mala, sino simplemente, no la habíamos probado suficiente. Pues tengo una mini-solución para algunos de vosotros. Ojalá pudiera arreglaros la vida a todos pero al menos, puedo ayudar a algunos. Y precisamente a los que he dedicado el programa y es que para los que saben programar o se defienden, tienen la posibilidad de acelerar el proceso de gestación del bebé. Se puede saber si una estrategia es buena o no en un tiempo mucho más pequeño que si lo hiciéramos manualmente. Para poder hacerlo, lo único que tenemos que hacer es seguir los pasos que os indico aquí y que realmente no son difíciles, pero si mecánicos. Para estos pasos, cabe decir de antemano que hemos de tener la estrategia ya pensada y que por tanto, la tenemos que tener muy clara en todos sus puntos y vertientes (temporalidad de uso, activos a usarlo, plataforma a usarlo, filtros posibles o cualquier elemento diferenciador de esta estrategia). Una vez la tenemos diseñada, tenemos que seguir estos pasos siguientes: 1- Programarla: Cuando nosotros la tenemos muy clara, esta estrategia se tiene que automatizar. Tened en cuenta que todas las estrategias de trading que se pueden escribir en un diario de trading con pasos concretos, se puede automatizar. Lo que no se puede automatizar son intuiciones o sensaciones de mercado que se tienen por parte de las personas. El resto, yo creo que se puede materializar a código y por tanto, que la máquina haga por ti las operaciones. Por tanto, tenemos que pasarla a programación y hacerlo de tal manera que si fuera una programación web o un servicio concreto de un proyecto de software. No deja de ser igual. Funciones, condicionales y elementos básicos de programación añadiendo los toques de entradas y salidas del mercado. 2- Testearla: lo primero que tenemos que hacer cuando estamos programando la idea, es comprobar que esta funciona como toca. En todos los casos y en todos los escenarios posibles. Tiene que estar perfecta antes de pasar a las pruebas de estrés. Estas pruebas seguro que nos muestran errores en el sistema, pero cabe decir que siempre aparecerán nuevas cosas, pero en este punto es donde de una madera tallada, tenemos que quitar las astillas y pulirla al máximo. Es donde la estrategia tiene que estar con todos los “hedge cases” resueltos para pasar a la acción. Dedícale tiempo a esta parte y no la obvies tanto. Es muy importante para el proceso ya que todo el tiempo que pierdas aquí, no lo perderás más adelante. 3- Backtestearla: empezamos con el proceso de probar con los valores iniciales. Es decir, nosotros habíamos creado estrategia a partir de una estrategia con unos parámetros concretos: timeframe, activos, indicadores, horarios y otras variables que estaban ya definidas por la propia estrategia. Vamos a ver si realmente en el tiempo funciona y aquí es donde nos apalancaremos más en el uso de la máquina, usándolo de una manera extrema para conseguir probar la estrategia durante muchos meses en cuestión de minutos. Los datos, que no me meteré ahora con eso pero que lo encuentro igual de importante dado este punto, se pasan por la estrategia para saber y determinar qué hubiera pasado si esta estrategia hubiera pasado por el momento del pasado concreto. ¿Hubiera salido ganadora? ¿Hubiera salido perdedora? o ¿hubiera salido más o menos igual que como empezó? Esto nos permite probar lo que un trader manual hace durante un año entero de forma convencional en cuestión de minutos y con una precisión milimétrica. Solo por este mismo hecho, ya me vale automatizarla. Me sale a cuenta, ya que así puedo comprobar cuan de buena es la estrategia. 4- Optimizarla: Perfecto. Llegados a este punto seguro que tenemos la estrategia al menos, probada como queríamos. En el caso que nos funcione como esperábamos y que saque beneficios (que esto, sinceramente, es ya muy bueno), vamos a acabar de perfeccionarla. En el caso que no se supere el backtesting y que se quiera seguir probando la estrategia, podemos usar este punto, aunque es entrar en terreno de la aleatoriedad. Y lo digo más que nada porque cuando optimizamos una estrategia que estaba diseñada para que funcionara con los parámetros iniciales y ni con esos funcionan, será poco probable que a base de fuerza bruta, funcione correctamente. En este punto, lo que vamos a hacer es lo siguiente: vamos a probar cada parámetro que hay en la estrategia para ver hasta donde llega con los datos del mercado. Es decir, vamos modificando cada variable de esta estrategia y probamos como reacciona a lo largo del tiempo. En el caso que funcione, nos guardamos los parámetros y seguimos probando. En el caso que no nos gusten o no salgan como esperamos a nivel de riesgo/beneficio, los descartamos y seguimos buscando. Al final, es un trabajo más de buscar la configuración que otra cosa. Cabe decir que este punto es un punto crítico, ya que no queremos caer en lo que se llama la sobreoptimización. Cuando hable de sobreoptimización, me referiré a los parámetros que salen del robot dado un tiempo y mercado concreto. Es decir, es como si hiciéramos el traje a medida de esos datos y por tanto, en cuanto estos datos cambien, el traje ya no servirá. Por tanto, como no sabemos como reaccionará en un futuro en el activo que hemos seleccionado, tenemos que tener en cuenta que claro, esta configuración está diseñada, probada y adaptada a datos pasados pero no futuros. Por tanto, lo mejor es seguir con el siguiente punto. El forward test. 5- Forward test: Este punto es el de la paciencia. Es el punto donde hemos recopilado los parámetros y variables del sistema que mejor se adaptan al robot para el activo concreto. Una vez hemos obtenido estos dos, que repito, no es fácil, lo que tenemos que hacer es abrir una cuenta demo en el broker con el que más nos apetezca trabajar y simular que esa cuenta es real. Es decir, poner el robot a funcionar con los mejores parámetros (o los que creemos nosotros que funcionarían bien en una cuenta real, es decir, con dinero real y no ficticio como en las cuentas demo). Nos tenemos que basar en un espacio temporal concreto (1 mes, 2 meses o 6 meses, dependiendo de la estrategia, claro está). Una vez haya pasado la prueba y el sistema responda de la misma manera (con el mismo riesgo/beneficio de forma aproximada que en el backtesting) durante ese periodo, podemos decir que está preparada para pasar a real. En el caso que no lo esté, debemos pasar a diseñarla de nuevo (si es problema de concepto), optimizarla de nuevo (si es problema de la parametrización) o descartar la estrategia si no nos acaba de gustar este tipo de operativa. 6- Real: En el caso que lleguemos aquí, os felicito ya que muy pocos llegan. Es la hora de la verdad y es exactamente lo mismo que el punto anterior. Pero esta vez, vamos de verdad. Con dinero real, esperando recoger los beneficios que tanto esperamos dado el trabajo realizado. En cualquier caso, como decía antes, haré explicitamente un curso para enseñar a nivel práctico, como haríamos todo este proceso, aunque tengo que decir que el apartado más complicado y es por eso que dedicaré un curso entero también, es el de backtesting y optimización. En este caso, de la plataforma más usada a nivel de Forex como es Metatrader. De todas maneras, las metodologías que se explicarán se pueden usar tanto para el software de Metaquotes como cualquier otro, ya que lo importante no es como hacerlo, sino la manera analizar los datos y hacer los pasos adecuados para llegar a tener una estrategia idónea. ¡Y por hoy ya está! Hasta aquí el podcast de hoy. Si podéis, suscribiros al canal y de darme un me gusta en iVoox y 5 estrellas en iTunes! ¡Muchas gracias! ¡Buen inicio de semana a todos! ¡Hasta mañana! La entrada 51. Probar una estrategia de trading automático aparece primero en Ferran P..
¡Muy buenos días a todos! Hoy vengo a presentaros, como el pasado viernes, libros técnicos de trading. En este caso, más tecnológico y es que creo que para los que quieran combinar la parte más tecnológica con la parte del trading. Voy a subdividirlo en dos vertientes muy diferenciadas y de antemano os aviso que todos los libros que voy a exponer son los que me he leído o los que tengo en cola para leer. Lo que habrá alguno que os recomiende por el hecho que lo he encontrado interesante y esté esperando a leerlo cuando acabe el resto. Otra cosa que cabe decir es que la mayoría de libros (o toda creo de hecho) está en inglés. En castellano no hay nada al respecto que valga la pena o que al menos me haya topado. Antes de empezar por eso quiero decir dos cosas. Esta es la primera parte del podcast de libros técnicos de trading porque da para mucho, sin duda. La segunda cosas es especificar que todos los libros que voy a decir hoy van enfocados sobretodo a gente que sepa programación o que quiera aprender a base de hostias. Siento decirlo así de brusco, pero estos últimos pueden ser gente que quiera aprender a usar sus habilidades de trading para automatizar procesos. Bien, pues estas personas quiero que tengan en cuenta que les costará al principio porque no solo tienen que chocar con la vertiente de entender como hacer las cosas sino amueblar la cabeza a nivel de programación y entender que todo es diferente y lógico. Hay gente que conozco que ha podido y puede de hecho, programar muy bien viniendo de una vertiente de letras. Y es que al final como en todo señores, se han de poner horas de trabajo y estudio. Pues venga, empezamos con la parte generalista. Qué quiere decir. Pues muy fácil: lo que se ha de hacer antes de empezar con la parte técnica, es estudiar programación aplicada. Es decir, los lenguajes de programación que nos van a servir para poder hacer estos códigos. Y es que lo más importante es saber qué tipo de códigos haremos. Podemos hacer lenguajes de programación más aplicados a una plataforma o más específicos. Voy a pone un ejemplo. Cuando estamos dispuestos a usar una plataforma como es Metatrader 4 de Metaquotes, hará falta que sepamos del lenguaje de programación C y que además apliquemos lo que ellos añaden a este lenguaje que sirve para poder operar y poner las operaciones. Esto es no es poca cosa y de hecho, ellos han hecho un manual entero (sin necesidad de libros alternativos) para que puedas leerte su documentación. A parte, hay una larga y extensa documentación de artículos muy interesantes de como usar su plataforma MT4 con infinidad de usos o conectores alternativos. Otros lenguajes como Easylanguage, el cual está usándose en plataformas como ProRealTime, TradeStation o Multicharts, aunque ellos te dan un propio manual para poder aprender este lenguaje que aunque se llame easylanguage, para los iniciados no será tan fácil, ya que se ha de entender, saber y conocer la lógica de programación para poder sacarle todo el partido necesario. Como supongo que entenderéis todos. Pues bien, en la parte generalista hay lenguajes de programación como Python y R. Sobretodo me centraré en estos dos ya que la semana que viene haremos un repaso de que se puede hacer con ellos, que no es para nada poco, ya veréis y es por eso que me centraré sobretodo en estos dos de momento, aunque haré hincapié más adelante y en los cursos a lenguajes de programación de un poco más alto nivel como Java. También haré algo de repaso de C++, aunque de hecho haré menos, ya que hay mucha gente que prefiere no bajar tanto de nivel si no es para una cosa muy especifica. Para aquellos que querais un lenguaje diferente o algo, hacedmelo saber y sin problemas, lo hago! En cuanto a libros de Python (sin tener en cuenta la vertiente de trading) podemos tener la posibilidad de aprender rápido o a un ritmo un poco más normal. En el caso que no tengas tiempo para leer mucho, te recomiendo: – Python: Learn Python in One Day and Learn It Well de Jamie Chan. Este libro se lee solo. Es super-sencillo. En pocas horas aprendes lo básico de python. Lo necesario para plasmar ideas, para aprender a manejarte lo suficiente como para empezar. No necesitas más Yo como soy un grandísimo amante de los libros de O’reilly, voy a recomendaros unos cuantos en este podcast y empezamos por: – Learning Python: Powerful Object-Oriented Programming de Mark Lutz. Es uno de los más completos que he encontrado nunca. La verdad es que si queréis profundizar en Python, no podéis dejar escapar este. Sin duda. – Python for Data Analysis de Wes McKinney. Lo que más me gustó de este libro es que no solo enseña Python desde una vertiente de datos. Sino que explica todo con ejemplos prácticos. Desde el minuto 0 obtiene datos de diferentes fuentes y las trata para demostrarte el potencial de estos lenguajes. Sinceramente, me lo volvería a leer. Ahora vamos con R: – Learning R: A Step-by-Step Function Guide to Data Analysis de Richard Cotton. Es un básico de R. Este libro de hecho esta enfocado a que aprendas a fondo R desde una parte más metodológica. Tanto que incluso explican condicionales, funciones y todo como si no tuvieras ni idea de programación. Para aquellos que quieran empezar, un libro recomendable. – R for Data Science de Hadley Wickham. Este libro está más enfocado a trato de datos, de importación de estos, de trabajar con cantidades grandes de información y de maneras más prácticas y sencillas de un uso masivo de estos datos. La ventaja de este libro es que para aquellos que se quieran ahorrar unos dinerillos, os dejo el link de la página web que ellos mismos han creado para plasmar todo el contenido del libro en versión web: http://r4ds.had.co.nz/. Y como os decía al principio, no quiero alargarme mucho en este podcast ya que de estos 5 libros, me gustaría derivar los interesantes para mi que los haré el viernes que viene. Allí si que hablaré exclusivamente de libros aplicados a finanzas y son los que realmente mucha gente espera como recomendación. En cualquier caso, si necesitáis algún libro más especifico con algún lenguaje de programación aplicada a inversiones especifico, hazedmelo saber a través del formulario de contacto: ferranp.com/contactar y os contesto lo antes posible para poder resolver vuestras dudas. ¡Y por hoy ya está! Tal y como llegó el episodio 1, estoy acabando el 50. Acordaros de suscribiros al canal y de darme un me gusta en iVoox y 5 estrellas en iTunes! ¡Muchas gracias! ¡Buen fin de semana a todos! ¡Hasta el lunes! La entrada 50. Libros técnicos de trading I aparece primero en Ferran P..
¡Muy buenos días a todos! Hoy vengo a presentaros, como el pasado viernes, libros técnicos de trading. En este caso, más tecnológico y es que creo que para los que quieran combinar la parte más tecnológica con la parte del trading. Voy a subdividirlo en dos vertientes muy diferenciadas y de antemano os aviso que todos los libros que voy a exponer son los que me he leído o los que tengo en cola para leer. Lo que habrá alguno que os recomiende por el hecho que lo he encontrado interesante y esté esperando a leerlo cuando acabe el resto. Otra cosa que cabe decir es que la mayoría de libros (o toda creo de hecho) está en inglés. En castellano no hay nada al respecto que valga la pena o que al menos me haya topado. Antes de empezar por eso quiero decir dos cosas. Esta es la primera parte del podcast de libros técnicos de trading porque da para mucho, sin duda. La segunda cosas es especificar que todos los libros que voy a decir hoy van enfocados sobretodo a gente que sepa programación o que quiera aprender a base de hostias. Siento decirlo así de brusco, pero estos últimos pueden ser gente que quiera aprender a usar sus habilidades de trading para automatizar procesos. Bien, pues estas personas quiero que tengan en cuenta que les costará al principio porque no solo tienen que chocar con la vertiente de entender como hacer las cosas sino amueblar la cabeza a nivel de programación y entender que todo es diferente y lógico. Hay gente que conozco que ha podido y puede de hecho, programar muy bien viniendo de una vertiente de letras. Y es que al final como en todo señores, se han de poner horas de trabajo y estudio. Pues venga, empezamos con la parte generalista. Qué quiere decir. Pues muy fácil: lo que se ha de hacer antes de empezar con la parte técnica, es estudiar programación aplicada. Es decir, los lenguajes de programación que nos van a servir para poder hacer estos códigos. Y es que lo más importante es saber qué tipo de códigos haremos. Podemos hacer lenguajes de programación más aplicados a una plataforma o más específicos. Voy a pone un ejemplo. Cuando estamos dispuestos a usar una plataforma como es Metatrader 4 de Metaquotes, hará falta que sepamos del lenguaje de programación C y que además apliquemos lo que ellos añaden a este lenguaje que sirve para poder operar y poner las operaciones. Esto es no es poca cosa y de hecho, ellos han hecho un manual entero (sin necesidad de libros alternativos) para que puedas leerte su documentación. A parte, hay una larga y extensa documentación de artículos muy interesantes de como usar su plataforma MT4 con infinidad de usos o conectores alternativos. Otros lenguajes como Easylanguage, el cual está usándose en plataformas como ProRealTime, TradeStation o Multicharts, aunque ellos te dan un propio manual para poder aprender este lenguaje que aunque se llame easylanguage, para los iniciados no será tan fácil, ya que se ha de entender, saber y conocer la lógica de programación para poder sacarle todo el partido necesario. Como supongo que entenderéis todos. Pues bien, en la parte generalista hay lenguajes de programación como Python y R. Sobretodo me centraré en estos dos ya que la semana que viene haremos un repaso de que se puede hacer con ellos, que no es para nada poco, ya veréis y es por eso que me centraré sobretodo en estos dos de momento, aunque haré hincapié más adelante y en los cursos a lenguajes de programación de un poco más alto nivel como Java. También haré algo de repaso de C++, aunque de hecho haré menos, ya que hay mucha gente que prefiere no bajar tanto de nivel si no es para una cosa muy especifica. Para aquellos que querais un lenguaje diferente o algo, hacedmelo saber y sin problemas, lo hago! En cuanto a libros de Python (sin tener en cuenta la vertiente de trading) podemos tener la posibilidad de aprender rápido o a un ritmo un poco más normal. En el caso que no tengas tiempo para leer mucho, te recomiendo: – Python: Learn Python in One Day and Learn It Well de Jamie Chan. Este libro se lee solo. Es super-sencillo. En pocas horas aprendes lo básico de python. Lo necesario para plasmar ideas, para aprender a manejarte lo suficiente como para empezar. No necesitas más Yo como soy un grandísimo amante de los libros de O’reilly, voy a recomendaros unos cuantos en este podcast y empezamos por: – Learning Python: Powerful Object-Oriented Programming de Mark Lutz. Es uno de los más completos que he encontrado nunca. La verdad es que si queréis profundizar en Python, no podéis dejar escapar este. Sin duda. – Python for Data Analysis de Wes McKinney. Lo que más me gustó de este libro es que no solo enseña Python desde una vertiente de datos. Sino que explica todo con ejemplos prácticos. Desde el minuto 0 obtiene datos de diferentes fuentes y las trata para demostrarte el potencial de estos lenguajes. Sinceramente, me lo volvería a leer. Ahora vamos con R: – Learning R: A Step-by-Step Function Guide to Data Analysis de Richard Cotton. Es un básico de R. Este libro de hecho esta enfocado a que aprendas a fondo R desde una parte más metodológica. Tanto que incluso explican condicionales, funciones y todo como si no tuvieras ni idea de programación. Para aquellos que quieran empezar, un libro recomendable. – R for Data Science de Hadley Wickham. Este libro está más enfocado a trato de datos, de importación de estos, de trabajar con cantidades grandes de información y de maneras más prácticas y sencillas de un uso masivo de estos datos. La ventaja de este libro es que para aquellos que se quieran ahorrar unos dinerillos, os dejo el link de la página web que ellos mismos han creado para plasmar todo el contenido del libro en versión web: http://r4ds.had.co.nz/. Y como os decía al principio, no quiero alargarme mucho en este podcast ya que de estos 5 libros, me gustaría derivar los interesantes para mi que los haré el viernes que viene. Allí si que hablaré exclusivamente de libros aplicados a finanzas y son los que realmente mucha gente espera como recomendación. En cualquier caso, si necesitáis algún libro más especifico con algún lenguaje de programación aplicada a inversiones especifico, hazedmelo saber a través del formulario de contacto: ferranp.com/contactar y os contesto lo antes posible para poder resolver vuestras dudas. ¡Y por hoy ya está! Tal y como llegó el episodio 1, estoy acabando el 50. Acordaros de suscribiros al canal y de darme un me gusta en iVoox y 5 estrellas en iTunes! ¡Muchas gracias! ¡Buen fin de semana a todos! ¡Hasta el lunes! La entrada 50. Libros técnicos de trading I aparece primero en Ferran P..