Author name: ajm

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 »

Scroll to Top