MQL5 Expert Advisor Algo Trading for Metatrader5

MQL5 Tutorial
Claim This Podcastby Raimund Bauer
Podcast Overview
MQL5 Expert Advisor Algo Trading for Metatrader5
Language
🇺🇲
Publishing Since
2/19/2023
2 verified contact emails on file for MQL5 Tutorial
Pitch yourself as a guest, propose sponsorships, or reach out directly to the host.
Recent Episodes

December 15, 2024
MQL5 Tutorial – How to simply adjust user input with MQL5
MQL5 expert, John Doe, shares actionable insights on how to enhance a simple expert advisor by allowing user adjustments, unlocking flexibility and customization.

December 8, 2024
MQL5 Tutorial – Simple Commodity Channel Index
MQL5 expert Alexey Savin demonstrates how to create an Expert Advisor using the Commodity Channel Index Indicator to generate entry signals in MetaTrader.

March 24, 2024
MQL5 TUTORIAL – SIMPLE AWESOME STANDALONE EXPERT ADVISOR
<div> <a href="https://mql5tutorial.com/mql5-tutorial-simple-awesome-standalone-expert-advisor/"><img title="AlgorithmicTrading077" src="https://d8wyob5mxqc1u.cloudfront.net/MQL5Tutorial/MQL5-TUTORIAL-SIMPLE-AWESOME-STANDALONE-EXPERT-ADVISOR.png" alt="MQL5 TUTORIAL – SIMPLE AWESOME STANDALONE EXPERT ADVISOR" width="" /></a> </div> <p> This time we are going to create a standalone Expert Advisor to trade the Awesome Oscillator, it will output buy and sell signals directly on the chart and whenever the line is crossed here we either get a sell signal when it’s below the dotted line or we would get a buy signal as soon as it crosses the line like right now the bars are above and now we consider that to be a buy signal. Now how can we create an Expert Advisor in MQL5 that is able to not only output the signals on the chart but to automatically trade them? 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 (template)” from template, “ Continue”, I will call this file: “SimpleAwesomeStandaloneEA”, click on “Continue”, “Continue” and “Finish”. Now you can delete everything above the “OnTick” function and the two comment lines here. We start by including the file “Trade.mqh”, this one comes with MQL5 and it makes it possible to create an instance from the class “CTrade” that will be called: “trade” and we are going to use it to open positions later on. Before we do that we calculate the Ask price and the Bid price that is done by using “SymbolInfoDouble” for the current symbol on the chart, “SYMBOL_ASK” will give us the Ask price and “SYMBOL_BID” will give us the Bid price. With “NormalizeDouble” and “_Digits” we automatically calculate the right number of digits because the current currency pair has 5 digits behind the dot but there are also other currency pairs with 3 digits behind the dot. Now we need a signal variable that will be a string variable so it can contain text later on right now we don’t assign any values because we need to calculate them later on. With “MqlRates” we create a price information array (PriceInformation), that function here stores the information about the prices, the volumes and the spread. Now we sort the array from the current candle downwards by using “ArraySetAsSeries” and with “CopyRates” we fill it for the current symbol and the currently selected period on the chart from candle 0 (zero) for 3 candles and we store the data in our price information array (PriceInformation). Let’s create another array called: “PriceArray” that one will hold the data for our Oscillator, so let’s use the integrated “iAO” function of MQL5 to define the Awesome Oscillator Indicator for the current symbol and the current period on the chart. This array (PriceArray) also needs to be sorted from the current candle downwards so we use “ArraySetAsSeries” for this one and now we use “CopyBuffer” to fill our price array (PriceArray) for the first buffer – that’s the line here – from the current candle 0 (zero) for 3 candles and store the information for the Expert Advisor in our price array (PriceArray). And to calculate the Expert Advisor for the current candle we simply look at the value of candle 0 (zero) in our price array (PriceArray), we also use “NormalizeDouble” and a 6 to get six digits behind the dot like here and the result will be stored in the Awesome Oscillator value (AwesomeOscillatorValue) and if that value is above 0 (zero) we consider that to be a buy signal and now we assign the word: “buy” to our signal. Otherwise if the value (AwesomeOscillatorValue) is below 0 (zero), so if the Awesome Oscillator value (AwesomeOscillatorValue) is less than 0 (zero) we assign the word: “sell” to our signal and if the signal equals sell and “PositionsTotal” is below 1 – in other words we don’t have any open position – we use “trade.Sell” to sell 10 micro lot. Otherwise if the signal equals buy and we have no open positions we use “trade.Buy” to buy 10 micro lot. The last thing is to create a chart output by using the “Comment” function to output the text: “The current signal is:” and the calculated “signal” directly on our chart. Okay, if you’re done you can click on the “Compile” button here or press F7, that should work without any errors and in that case you can click on the little button here or press F4 to go back to Metatrader and in Metatrader we click on: “View/ Strategy Tester” or press CTRL and R, please select the new file: “SimpleAwesomeStandaloneEA”, let’s also mark the visualization option here and start a test. …and here we are, our Expert Advisor is working, actually we have opened the first automated trade and now you know how to code the Awesome Oscillator Standalone Expert Advisor and you have coded it yourself with a few lines of MQL5 code.</p> <div class="crp_related crp-text-only"><a href="https://bit.ly/3iWZOkm"><img src="https://d8wyob5mxqc1u.cloudfront.net/Reviews/Testimonials.gif" width="100%"></a><font color="red">Not sure what to do? Click on the automated trading assistant below</p> <p></font><a href="https://mql5tutorial.com/algo-trading-assistant"><img src="https://d8wyob5mxqc1u.cloudfront.net/ALGOTRADINGASSISTANT/2022/AlgoTradingAssistantDeepWord3.gif" width="450" height="270"></a></p> <ul> <li><a href="https://mql5tutorial.com/mql5-tutorial-simple-stochastic-standalone-expert-advisor/" class="crp_link post-1346"><span class="crp_title">MQL5 TUTORIAL - SIMPLE STOCHASTIC STANDALONE EXPERT ADVISOR</span></a></li> <li><a href="https://mql5tutorial.com/mql5-tutorial-simple-itrix-standalone-expert-advisor/" class="crp_link post-1414"><span class="crp_title">MQL5 TUTORIAL - SIMPLE ITRIX STANDALONE EXPERT ADVISOR</span></a></li> <li><a href="https://mql5tutorial.com/mql5-tutorial-simple-icci-standalone-ea/" class="crp_link post-1378"><span class="crp_title">MQL5 TUTORIAL- SIMPLE ICCI STANDALONE EA</span></a></li> <li><a href="https://mql5tutorial.com/mql5-tutorial-platin-system-the-awesome-oscillator/" class="crp_link post-3420"><span class="crp_title">MQL5-TUTORIAL-PLATIN-SYSTEM-THE-AWESOME-OSCILLATOR</span></a></li> <li><a href="https://mql5tutorial.com/simple-macd-standalone-expert-advisor/" class="crp_link post-1334"><span class="crp_title">MQL5 TUTORIAL - SIMPLE MACD STANDALONE EXPERT ADVISOR</span></a></li> </ul> <p><a href="https://elopage.com/s/crowdcompany?group_id=5094"><img src="https://d8wyob5mxqc1u.cloudfront.net/ElopageVideos/SourceCodesENGLISH.gif"></a></p> <div class="crp_clear"></div> </div> <p>The post <a href="https://mql5tutorial.com/mql5-tutorial-simple-awesome-standalone-expert-advisor/">MQL5 TUTORIAL – SIMPLE AWESOME STANDALONE EXPERT ADVISOR</a> appeared first on <a href="https://mql5tutorial.com">MQL5 Tutorial</a>.</p>
36 total episodes available
Deep-dive analytics for MQL5 Tutorial
Frequently asked questions
Have a different question and can't find the answer you're looking for? Reach out to our support team by sending us an email and we'll get back to you as soon as we can.
- What is MQL5 Tutorial?
- How often does this podcast release new episodes?
This podcast updates weekly.
- Where can I listen to this podcast?
This podcast is available on 7 platforms including Apple Podcasts, Spotify, and more. You can also use the RSS feed directly.
- Does this podcast accept guests?
Yes, this podcast regularly features guests.
Legal Disclaimer
Pod Engine is not affiliated with, endorsed by, or officially connected with any of the podcasts displayed on this platform. We operate independently as a podcast discovery and analytics service.
All podcast artwork, thumbnails, and content displayed on this page are the property of their respective owners and are protected by applicable copyright laws. This includes, but is not limited to, podcast cover art, episode artwork, show descriptions, episode titles, transcripts, audio snippets, and any other content originating from the podcast creators or their licensors.
We display this content under fair use principles and/or implied license for the purpose of podcast discovery, information, and commentary. We make no claim of ownership over any podcast content, artwork, or related materials shown on this platform. All trademarks, service marks, and trade names are the property of their respective owners.
While we strive to ensure all content usage is properly authorized, if you are a rights holder and believe your content is being used inappropriately or without proper authorization, please contact us immediately at hey@podengine.ai for prompt review and appropriate action, which may include content removal or proper attribution.
By accessing and using this platform, you acknowledge and agree to respect all applicable copyright laws and intellectual property rights of content owners. Any unauthorized reproduction, distribution, or commercial use of the content displayed on this platform is strictly prohibited.
