You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: From Basic to Intermediate: Struct (V).
I know many of you (especially beginners) are probably thinking: «Friend, I don't want to learn this. I want to learn how to create an Expert Advisor or an indicator. Learning to implement solutions I'm not even planning to use is just not for me». Alright, you have the right to think that way. But if you don't understand how to implement solutions that have nothing to do with an indicator or even a piece of EA code, you will hit a dead end sooner than you think. This happens because you don't understand how to implement solutions that are neither obvious nor simple.
To be able to solve any problems that arise, you need to have a programmer's mindset. And one of these problems is precisely what hasn't been explained so far: how to extend structural programming to solve broader tasks. In other words, if we create code to solve a problem with integer types, how can we implement a solution for floating-point data without redoing everything from scratch? This is a very interesting question, but it can also be very confusing, as there are different ways to achieve the same thing.
I will try to explain at least two different ways to do this. The second method involves memory manipulation, and I don't know if you're ready for that. However, let's start with the simplest one. This will give you a general idea of how to approach the problem. So, it's time to focus on what this article is about. Now it's going to get interesting.
Author: CODE X