more...Linear Regression is a Predictive model that is used to find the linear relationship between a dependent variable and one or more independent variables ..
This is a discussion on Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview within the General Discussion forums, part of the Trading Forum category; Linear Regression is a Predictive model that is used to find the linear relationship between a dependent variable and one ...
more...Linear Regression is a Predictive model that is used to find the linear relationship between a dependent variable and one or more independent variables ..
more...Through this article, we will identify in depth the momentum and how to use it in our favor and design a simple trading system by MQL5 to benefit from the magic of programming which can hep us to trade smoothly, easily, and effectively and the following topics will be discussed through this article:
- Momentum definition
- Momentum strategy
- Momentum trading system blueprint
- Momentum trading system
- Conclusion
Trough previous topics we will know in more details about the Momentum indicator as we will see through our first topic, Momentum definition we will know in depth what is the momentum indicator and we calculate it. Then, we will learn a simple strategy which can enhance our understanding about the Momentum indicator and how it may be useful for us. Then, we will design a trading system blueprint to the mentioned Momentum trading strategy to help us to code it by MQL5. Then, we will learn how to code and execute it to get signals of this strategy.
- MVC design pattern and its possible application
- MVC design pattern and its application (Part 2): Diagram of interaction between the three components
This pattern appeared quite a long time ago (in 1978), but its first description appeared much later, in 1988. Since then, the template has been developing further, giving rise to new approaches.
The idea is to split an existing code into three separate components: Model, View and Controller. According to the MVC pattern, these three components can be developed and maintained independently.
In this article, we will consider a diagram of possible interaction between these three components. This aspect was not covered in the first article, and one of the readers mentioned it in comments. If the interaction mechanism is not thoroughly considered or is inaccurate, all the advantages of using the pattern can be undermined. That is why this topic should be paid special attention to.
Return on investments is the most obvious indicator which investors and novice traders use for the analysis of trading efficiency. Professional traders use more reliable tools to analyze strategies, such as Sharpe and Sortino ratios, among others. In this article, we will consider simple examples to understand how these ratios are calculated. The specifics of evaluation of trading strategies were earlier considered in the article "Mathematics in trading. How to estimate trading results". It is recommended that you read the article to refresh the knowledge or to learn something new.more...Experienced investors and traders often trade multiple strategies and invest in different assets in an effort to get consistent results. This is one of the concepts of smart investment which implies the creation of an investment portfolio. Each portfolio of securities/strategies has its own risk and return parameters, which should somehow be compared.
One of the most referenced tools for such comparison is the Sharpe ratio, which was developed in 1966, by Nobel laureate William F. Sharpe. The ratio calculation uses basic performance metrics, including the average rate of return, standard deviation of return and risk-free return.
Unlike Linear Regression that we discussed in part 01, Logistic Regression is a classification method based on linear regression.
more...
Many traders feel more confident if they monitor multiple indicators at a time (for example, RSI, STOCASTIC, MACD, ADX and some others), or in some cases even at different assets which an index is made of. In the latter case, I refer to mini-indexes WIN and full indexes IND, but these may also include other index types. So, when trading WIN or IND, it may be interesting to observe some of the assets, such as VALE, PETROBRAS, ITAU, BRADESCO and others, which have greater weights in the index.
But there is a solution (though not quite simple) that can be applied in the long term.
more...
Many workstations contain some representative image which shows something about the user. These images make the working environment more beautiful and inspiring, as people always try to choose the vest and most beautiful images to use as wallpaper. But when we open the trading platform, we see that it is somehow boring. All we have is the graphical representation of numerical data.
more...
more...In the previous article "Multiple indicators on one chart" I presented the concept and the basics of how to use multiple indicators on one chart, without populating the screen with too many different details. The only purpose of that article was to present the system itself, to show how to create databases and how to take advantage of such databases, I did not provide the system code previous time. Here, we will start implementing the code, and in future articles we will expand the system functionality, making it more versatile and complete, as the system looks promising and has great possibilities for further improvement.
----------------In the previous article within the Multiple indicators on one chart we considered the basic code which allows using more than one indicator in a chart subwindow. But what was presented was just the starting base of a much larger system. A few different things can be done based on this model. But we should go step by step because one of the goals of these articles is to encourage you to learn how to program so that you can design your own systems based on your ideas. In this article, we will be expanding the functionality. It may be interesting to those who already liked what the system can do but would like to be able to do more.
- Multiple indicators on one chart (Part 02): First experiments
- Multiple indicators on one chart (Part 01): Understanding the concepts
more...
----------------We already have our custom indicator working, that is, our object class is already functioning, and since this is an object class, we can easily transfer it to other models. However, simply declaring and trying to use the class in our EA won't make things work the same as in our custom indicator, and the reason is that we don't have subwindow capability in our EA. But then the idea came: "What if we use an already compiled and working custom indicator and call it from the EA using the iCustom command?
- Multiple indicators on one chart (Part 02): First experiments
- Multiple indicators on one chart (Part 01): Understanding the concepts
- Multiple indicators on one chart (Part 03): Developing definitions for users
- Multiple indicators on one chart (Part 04): Advancing to an Expert Advisor
more...
Bookmarks