START TRADING NOW

Thumbnail-webHow 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 […]

ThumbnailAroon 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 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.

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. […]

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.

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.

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.

MQL OnChartEvent ExplainedAn explanation of how to use OnChartEvent with examples, including some events that normally do not fire and custom events.

ThumbnailSet 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.

ThumbnailEquity 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.

ThumbnailStop Loss Grid Part 2A follow up to the earlier Stop Loss Grid post that fixes a code issue and reduces over trading.

ThumbnailTrailing 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.

ThumbnailStop 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.

ThumbnailMore 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

ThumbnailFractal EMA RobotCombine 2 exponential moving averages as a trend filter and fractals to set breakout levels

ThumbnailScale 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.

ThumbnailAdd 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

ThumbnailHeiken 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

ThumbnailIchimoku 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 […]

ThumbnailGrid 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-ExpertMACD 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 […]

Common-Indicator-ClassesUse 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-Expert-Thumbnail5 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 […]

WRITE-EXPERTS-TO-USE-SIGNALS-DRAWN-BY-CUSTOM-INDICATORSUsing 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 […]

ThumbnailsRaise 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 […]

ThumbnailsAutomatic 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 […]

ThumbnailsWrite 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 ThumbnailMT5 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 ThumbnailMT4 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 […]

ThumbnailMT4 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 […]

ThumbnailsCopy 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 […]

Scroll to Top