Skip to content
START TRADING NOW
Fixed “deprecated behavior, hidden method calling will be disabled in a future MQL compiler version”Another annoying and cryptic compiler warning
Trailing Stop Expert Part 2 – Expanding trailing stopThe second part in this series. This shows a situation where each trade has a different trailing stop price applied.
Take care buying indicators and expertsA short video to look at a commercial product to see if I can get the same or similar results with free indicators.
Stochastic RSI MACD Strategy testOn request a test of a strategy offering a 100% success rate.
Create Trailing Stop Methods in MetaTrader: Part 1In this video, I review and describe techiques for calculating and applying trailing stops from your experts in MetaTrader.
Maximizing Profit with the Supertrend StrategyIn this video, I look into the Supertrend strategy and discuss various ways to optimize it for maximum profitability.
How to Automate Closing All Trades at a Scheduled TimeIf you’re an experienced trader who uses the popular MetaTrader platform, you may know that closing all trades manually can be a tedious and time-consuming task. However, with a little bit of coding knowledge, you can automate this process by writing a simple expert advisor to close all your trades at a scheduled time. There […]
Aroon Indicator MT4 and MT5The Aroon indicator seeks to identify the strength of trend, both up and down, by the ratio of distance from the current candle to the most recent highest high or lowest low within a defined range of number of candles.
Bollinger Bounce Code for MT5This video shows the code for the Bollinger Bounce strategy using MQL5.
Bollinger Bounce Code for MT4This video shows the code for the Bollinger Bounce strategy. The actual tests were run using MT5 but this is the same code for MT4.
Bollinger Bounce StrategyThis strategy is described by Learn To Trade. There is a link to their explanation of the strategy further in the description.
Strategy test – SSL Channel + Volume + MACDTesting a strategy from Tradepro using the MT5 strategy tester.
Writing an expert for the YMS Scalper IndicatorFollowing from the YMS Scalper test video, this shows how I investigate the YMS Scalper v2.0 to find key information and write an expert that uses the generated signals to trade.
Writing an expert using the Beast Super Signal indicator Part 2 – Beast SS 4.3, MT4 and MT5Following from the YMS Scalper test video, this shows how I investigate the Beast Super Signal V4.3 to find key information and write an expert that uses the generated signals to trade.
Writing an expert using the Beast Super Sgnal indicator Part 1 – Beast SS 1.0, MT4Following from the YMS Scalper test video, this shows how I investigate the Beast Super Signal V1.0 to find key information and write an expert that uses the generated signals to trade.
YMS Scalper TestThis test was requested on Discord by one of our subscribers to run tests on the YMS Scalper. The test didn’t exactly go as planned but eventually we did complete a test of the YMS scalper and learned a little on the way.
De Carlo strategy test – EMA, MavilimW & Inverse Fisher Transform, 5MThis strategy test is based on a review by Trader’s Landing and using the TradingView platform over 100 trades. The review here uses automated testing on the Metatrader platform using 7 different trading instruments and covering a 12 month period for each. These results should not be considered as conclusive nor any kind of recommendation. […]
MT4 Custom Order PanelHow to create a custom order panel in MT4 to set volume and execute trades.
MT5 Custom Order PanelHow to create a custom order panel in MT5 to set volume and execute trades.
Retracement Breakout Strategy – MT4 and MT5This is a further extension to an earlier video about a time range breakout and shows how to adapt the original breakout to wait for a retracement and second breakout as confirmation.
Use the same files in MQL4 and MQL5 code without copyingI work in both MQL4 and MQL5 and share as much code as I can to reduce duplication.
Range Breakout Expert for MQL4 and MQL5This is the fifth part in a series on writing your own experts and this time I have done away with technical indicators in favour of a simple time based range breakout strategy.
MQL4 MQL5 Expert with ATR Based Trailing StopPart four in an introduction to writing expert advisors for MT4 and MT5.
Add a trailing stop to your expert – and other thingsThis is the third part in an introduction to writing expert advisors for MT4 and MT5.
Know when the market is open in MT4 and MT5Next in a series on writing a complete expert advisor for MT4 and MT5 this will address a common problem of detecting if the market is currently open or closed before trying to place a trade.
Introduction – Write your own expert for MT4 – MA CrossThis is an introductory tutorial on writing an expert for MT4. The expert uses a simple moving average cross as a template example.
Introduction – Write your own expert for MT5 – MA CrossThis is an introductory tutorial on writing an expert for MT5. The expert uses a simple moving average cross as a template example.
MQL OnChartEvent ExplainedAn explanation of how to use OnChartEvent with examples, including some events that normally do not fire and custom events.
Add this code to your Metatrader Experts to trade inside a time rangeIf you want to set your expert to only trade within specified time ranges this code will help.
How to make a 2 colour indicator for MT5Part 2 in a series on writing indicators beginning with the basics. This part covers creating an indicator that alternates colours with the trend.
How to make a 2 colour indicator for MT4Part 2 in a series on writing indicators beginning with the basics. This part covers creating an indicator that alternates colours with the trend.
Why do I write for loops in reverse? MQL4 and MQL5You often see in my videos that I write for loops to count down from the end to zero.
How to run MQL4 or MQL5 code only one time for each barThis is something I use all the time and I give a quick explanation in other videos but don’t cover the topic completely.
Add automation to your structures for MQL4 and MQL5How to add constructors and inheritance to simple structures to improve code automation.
Introduction to writing indicators MT4/MT5These are introductory tutorials on writing an indicator for MT4 and MT5. In this case the indicator is the ATR channel
Set your own MQL trade numbersThere are times when you may want to track a trade through various events. The obvious example is finding the remaining trade after a partial close but you may also need to track a pending order through to the position after execution.
Equity Limit Basket TradingFrom requests over a long time this expert will track your account equity and close all trades and orders when a specified target profit or loss limit is reached.
Load inputs from a file for your indicator or expertThis will show how to set up a configuration file as input to an expert or indicator
Stop Loss Grid Part 2A follow up to the earlier Stop Loss Grid post that fixes a code issue and reduces over trading.
Draw and Read Fibonacci Objects with MQL codeThis covers code to both create Fibonacci objects on screen including a technique for finding swing high and low and also reading back data from on chart Fibonacci objects.
Trailing Entry ExpertThis is a simple expert advisor from one of our requests. There are no indicator inputs, trades are entered based on trailing the entry price from the current price.
Send Text and Images to Telegram from MT4 and MT5Sending text to Telegram is not too difficult but sending an image is a very different technique. This topic covers both.
Stop Loss Grid Expert first saw this grid technique in a video titled How to trade the Forex Grid system. A detailed introduction on how hedging trades create gains published by Expert4x. It is an interesting approach that avoids unlimited drawdown at the expense of an occasional loss.
More Fractals – RSI and MACDA sequel to the earlier article showing a Fractal – EMA based expert. This shows how to convert that code to vary the expert
Risk Based Size and Stop LossConverting risk to points and setting stop loss as percentage of equity.
Fractal EMA RobotCombine 2 exponential moving averages as a trend filter and fractals to set breakout levels
Scale Into a Winning PositionWhen you have a position showing a profit you may want to add more trades to the position. The question is how to check that all of your existing trades have reached a minimum profit level before opening a new trade.
Add a Delay Between TradesHow do you prevent your EA from placing trades too soon after each other but still allow other functions like trailing stop and closing to go ahead
Heiken Ashi Stochastic ExpertIn this video I show how to write an expert combining Stochastic as a trigger and Heiken Ashi candles as a trend reversal confirmation
Ichimoku Cloud ExpertThis is a starter expert for the ichimoku cloud using only the Senkou Span A and Senkou Span B lines. The strategy uses a basic assumption that when price enters the cloud it will generally cross to the other side. The expert here uses the Orchard Framework 3, specifically 3.02 https://youtu.be/Uf5_CkeVbdU The expert shows how […]
Grid Trading Expert for MQL4/MQL5 using Orchard Framework 3This is my first tutorial on writing a grid trading expert. Caution – grid trading can lead to very large drawdowns. It is high risk. This covers the standard buy/sell at each level grid. It is a foundation for other grid trading tutorials to come. The expert here uses the Orchard Framework 3, which I […]
MACD EMA Expert for MT4 and MT5This is the classic MACD crossover strategy with the combined moving average trend filter. Use the tutorial as the basis for building your own trading robot. This video uses classes developed in my earlier video “Use Common Classes to Write MQL4 and MQL5 Experts”. The key functions used are shown below, the video will explain […]
Use Common Classes to Write MQL4 and MQL5 ExpertsWhen I make videos about writing experts or indicators I usually make them for both MQL4 and MQL5. This naturally leads to some code that has to be conditional due to the differences. The conditional code that bothers me most is the difference in the way technical indicators are handled and I think dealing with […]
5 Minute Scalping ExpertThis is a tutorial based on a scalping strategy for 5 minute charts. I have had this strategy for a long time and don’t know the origin but the strategy itself is not extraordinary. I would expect it to be break even, possibly losing over time due to spreads and commissions. However, it is a […]
Using Custom Indicator Chart Objects in an ExpertI have covered using iCustom to make custom indicator information available in your EA several times but there is one question that keeps appearing. If you have an indicator that actually draws signals on screen, like buy and sell arrows, how can you use that information in an EA? It’s difficult because these indicators often […]
Raise a Metatrader Alert on Price Movement in a BarBased on a request from a subscriber this is a simple indicator to raise an alert if the price moves more than a specified amount above or below the opening price for a bar, but only raise one alert for each direction. This indicator does not use a plot buffer so you may get a […]
Automatic Support/Resistance indicator using ZigZagTo write an indicator drawing support and resistance lines you need a set of rules that a computer can follow to create those lines. This technique uses the ZigZag indicator to find potential S/R levels and then refines further by finding multiple points. The code here is a combination for MT4 and MT5. Most code […]
Write an Expert for MT4 or MT5 using CCI and 2 Moving AveragesThis is an example of writing an expert advisor using a very basic strategy. The key information here is the comparison of 2 indicators which occur at different times. The strategy and detail about the code are explained fully in the video. This covers both MT4 and MT5, there are some sections that are modified […]
MT5 Trailing Stop ExpertThis is a function that you can use in your MT5 expert advisor to apply a standard points based trailing stop For the MT4 verison click here A trailing stop is nothing more than a stop loss that moves as price changes. For this standard trailing stop the rules are simple: No stop loss is […]
MT4 Trailing Stop ExpertThis is a function that you can use in your MT4 expert advisor to apply a standard points based trailing stop For the MT5 verison click here A trailing stop is nothing more than a stop loss that moves as price changes. For this standard trailing stop the rules are simple: No stop loss is […]
MT4 Expert to apply an Automatic Stop LossThis expert advisor will scan through new trades and automatically apply a default stop loss to trades that have no stop loss Click here for the MT5 version Start by using the wizard to create the expert advisor template. I called my expert AutoStopLoss. This expert uses a simple point value to set the default […]
MT5 Expert to apply an Automatic Stop LossThis expert advisor will scan through new trades and automatically apply a default stop loss to trades that have no stop loss Click here for the MT4 version Start by using the wizard to create the expert advisor template. I called my expert AutoStopLoss. For MT5 include the Trade.mqh file to make use of the […]
Copy Protect your EA or IndicatorIf you want to share or sell your EA or Indicator then you should be thinking about how to protect your work and prevetn unauthorised distribution. This article shows 4 techniques covering limited capability trials, time limited versions and ultimately issuing licence codes linked to a single account. These are simple techniques that you can […]
Close a Basket of Trades on a Target ProfitA simple EA to open trades to an average position and then close all when a target profit is reached