Programming

Use Common Classes to Write MQL4 and MQL5 Experts

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 »

Using Custom Indicator Chart Objects in an Expert

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 »

Automatic Support/Resistance indicator using ZigZag

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 »

Write an Expert for MT4 or MT5 using CCI and 2 Moving Averages

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 »

MQL By Request #6 – An EA with ATR Take Profit and Stop Loss

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 »

MQL By Request #5 – Using the EA Framework V2

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 …

MQL By Request #5 – Using the EA Framework V2 Read More »

Scroll to Top