How to start with MQL5 - page 44

 

Forum on trading, automated trading systems and testing trading strategies

Where Do I start from?

Sergey Golubev, 2025.03.01 05:05

Introduction to MQL5 (Part 13): A Beginner's Guide to Building Custom Indicators (II)

Introduction to MQL5 (Part 13): A Beginner's Guide to Building Custom Indicators (II)

Welcome back to our MQL5 series! Part 12 of this series explored the fundamentals of building custom indicators in MQL5. We created a Moving Average indicator from scratch, implementing its logic manually instead of relying on built-in functions. Then, we extended this knowledge by transforming it into a Moving Average in candle format, demonstrating how to manipulate graphical elements within an indicator.

This article will cover a strategy that is solely intended for educational purposes. It is not meant to be a trading strategy that guarantees success or financial advice. Before using strategy in live trading, always test them in a risk-free setting.

 

Forum on trading, automated trading systems and testing trading strategies

Where Do I start from?

Sergey Golubev, 2025.04.01 17:41

Introduction to MQL5 (Part 14): A Beginner's Guide to Building Custom Indicators (III)

Introduction to MQL5 (Part 14): A Beginner's Guide to Building Custom Indicators (III)

We will create an indicator that resembles Harmonic Patterns to implement this. The logic we'll use can be modified to identify and depict different Harmonic Patterns, even though we won't be concentrating on any particular one (such as Gartley, Bat, or Butterfly). Instead of building a fully effective Harmonic Pattern detector, the main objective is to learn how to use chart objects in MQL5 to develop indicators. In Part 9 of this series, we looked at how to build and work with objects like trend lines, rectangles, and labels in MQL5, which is where we first covered using chart objects. Building on that knowledge, this piece will apply it to developing of indicators. By the end, you will have a firm grasp on how to develop unique visual indications by working with chart items dynamically.

 

Forum on trading, automated trading systems and testing trading strategies

Where Do I start from?

Sergey Golubev, 2025.04.12 04:08

Introduction to MQL5 (Part 15): A Beginner's Guide to Building Custom Indicators (IV)

Introduction to MQL5 (Part 15): A Beginner's Guide to Building Custom Indicators (IV)

Welcome back to the Introduction to MQL5 series! You'll discover that this article will build directly on the ideas and techniques we've already discussed in previous articles. Since we'll be using a lot of what we've learned so far, this part will actually seem more like a continuation than a new beginning. By now, you should have a solid understanding of the MQL5 basics, and in this article, we’ll take things a step further by combining that knowledge to develop more interesting custom indicator.

 
Yesterday I made an enquiry here on the Donchiana channel and received some important pointers for which I am very grateful, but today I see that everything has been deleted or moved, I assume from the admins. I don't think I offended anyone by what I wrote, and since I did, I'm truly sorry, I didn't mean it that way. All the information presented in "How to get started with MQL5" is very useful, with lots of examples and explanations. It's just super. Thank you all for your efforts and keep up the good work!!!!
Well done.
 
Max Primus #:
for which I am very grateful

You're welcome, my friend.

If you have not copied something, we can do it again. I'll tell you a secret, but please don't tell anyone, okay?
Your indicator was corrected not by me personally, but by a Chinese neural network. And you can do the same. And not just you. Or any high school student.

Programmers, their admins and moderators are crying, sensing the imminent end of their favourite branches - programming and moderating.... )))) and delete unwanted posts, thus delaying their end.

 
moskitman #:

You're welcome, my friend.

If you haven't copied anything, we can do it again. I'll tell you a secret, but please don't tell anyone, okay?
Your indicator was corrected not by me personally, but by a Chinese neural network. And you can do the same. And not just you. Or any high school student.

Programmers, their admins and moderators are crying, sensing the imminent end of their favourite branches - programming and moderating.... )))) and delete unwanted posts, thus delaying their end.

I immediately said that neural networks would be faster.

Mosquito, if you can't help yourself, why are you meddling, have you forgotten where you belong? kicking entrances

 
moskitman #:

You're welcome, my friend.

If you haven't copied anything, we can do it again. I'll tell you a secret, but please don't tell anyone, okay?
Your indicator was corrected not by me personally, but by a Chinese neural network. And you can do the same. And not just you. Or any high school student.

Programmers, their admins and moderators are crying, feeling the imminent end of their favourite branches - programming and moderating.... )))) and delete unwanted posts, thus delaying their end.

Thank you, Komar. That explains it all. Cheers!!! ;-)
 

Forum on trading, automated trading systems and testing trading strategies

Where Do I start from?

Sergey Golubev, 2025.06.04 13:32

Introduction to MQL5 (Part 17): Building Expert Advisors Using Technical Chart Patterns (II)

Introduction to MQL5 (Part 17): Building Expert Advisors Using Technical Chart Patterns (II)

Welcome back to Part 17 of the Introduction to MQL5 series! This part continues to build on everything we’ve explored so far, using our signature project-based approach to help you sharpen your MQL5 skills through real-world examples. In Part 16, we focused on the Head and Shoulders pattern, building an Expert Advisor that could automatically detect it, place trades, and even visualize it on the chart. It was a great way to learn how to work with chart patterns in MQL5.

For this article, I had originally intended to use a single continuation or reversal pattern, such as the Flag, Falling Wedge, or Rising Wedge. However, when I dug further, I discovered something crucial: a lot of these patterns have a similar structure and frequently depend on trend line breaks or reversals. This section will therefore concentrate on developing an Expert Advisor that can identify and trade trend line breakouts and reversal situations, rather than restricting ourselves to a single pattern. With a few adjustments, you may apply these fundamental ideas to various chart patterns after you have mastered them.


 

Forum on trading, automated trading systems and testing trading strategies

Where Do I start from?

Sergey Golubev, 2025.07.12 05:36

Introduction to MQL5 (Part 18): Building Expert Advisors Using Technical Chart Patterns (III) — Introduction to Wolfe Wave Pattern

Introduction to MQL5 (Part 18): Building Expert Advisors Using Technical Chart Patterns (III) — Introduction to Wolfe Wave Pattern

In this article, we’ll take things a step further by exploring a more advanced chart pattern, the Wolfe Wave. Unlike basic patterns that rely heavily on simple support and resistance breaks, the Wolfe Wave involves a precise five-point structure and aims to forecast price movement toward a specific target line. It is a powerful tool for predicting reversals and timing entries with higher precision.

 

Forum on trading, automated trading systems and testing trading strategies

Where Do I start from?

Sergey Golubev, 2025.07.25 06:12

Introduction to MQL5 (Part 19): Automating Wolfe Wave Detection

Introduction to MQL5 (Part 19): Automating Wolfe Wave Detection

Welcome back to Part 19 of the Introduction to MQL5 series! In Part 18, I introduced you to the Wolfe Wave pattern, a unique five-wave structure used to anticipate price reversals with precision. We discussed the two main types of Wolfe Waves: the bearish setup that signals a potential price drop and the bullish setup that hints at an upcoming rally. You also learned how to retrieve candlestick data, which is essential for price action analysis, and we outlined the logic for spotting valid trade opportunities based on this pattern.

In this part, we’re moving from theory to implementation. We’ll explore how to identify Wolfe Wave structures programmatically and execute trades based on them using MQL5. This includes detecting key swing points, validating pattern rules, and preparing the EA to act on the signals it finds.