Starting 2022 with a new framework – Framework 3
Starting 2022 with a new Framework. Framework 3 is still in early stages but will grow as new features are needed.
Starting 2022 with a new Framework. Framework 3 is still in early stages but will grow as new features are needed.
When 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 …
Use Common Classes to Write MQL4 and MQL5 Experts Read More »
This 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 …
I 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 …
Using Custom Indicator Chart Objects in an Expert Read More »
To 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 …
Automatic Support/Resistance indicator using ZigZag Read More »
This 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 …
Write an Expert for MT4 or MT5 using CCI and 2 Moving Averages Read More »
Answering a quick tips request, how to combine the Stochastic and 2 moving averages on the stochastic into an Expert Advisor.
How to add stop loss and take profit to your EA. This covers simple point based as well as an example using ATR multiples. If you have not seen the earlier parts where the framework is developed the links below will take you to those articles. Part 1 built the EA template and the expert …
MQL By Request #6 – An EA with ATR Take Profit and Stop Loss Read More »
I’ve been using a common framework Version 1 in this by request series. The framework is evolving as the series moves along and was never intended to be a commercial product. The framework has always been intended for use to support tutorials. That means that the framework is more of a kit or toolbox and …
How to write a Moving Average Cross EA using the EA framework. This is in answer to a subscriber question on how to write a moving average cross EA for MT5. It is also a good example for first use of the EA framework developed in parts 1-3 of this series. To write the EA …