und werden Sie Mitglied unserer Fangruppe
Veröffentliche einen Link auf das Skript, damit die anderen ihn auch nutzen können
Bewerten Sie es im Terminal MetaTrader 5
- Ansichten:
- 9212
- Rating:
- Veröffentlicht:
- 2021.01.12 23:32
-
Benötigen Sie einen Roboter oder Indikator, der auf diesem Code basiert? Bestellen Sie ihn im Freelance-Bereich Zum Freelance
A friend asked a question, which became an excuse for me to play some memory with the math lessons of years ago! 😊 (Then say what is the use of high school arithmetic and geometry; this is a very practical example of the same course 😉)
In MetaTrader 4, we intend to calculate the intersection coordinates of two straight line objects with different slopes using MQL4.
I will give a general explanation:
If the horizontal axis of the chart means time X and the vertical axis of the chart means price Y. For each line on the chart having two points from it or one point and the slope of the line, get the equation of those two lines.
Finally we have a set of equations, which, by mathematical calculations and writing one variable on another and substituting it for another function, gives the values of X and Y, which are the coordinates of the intersection of two lines.
I tried to solve the problem with a few simple and clean lines of code, which also has an educational aspect, I also put down the source code file.
Translate by google translate.
Telegram: @JahanChart

With this script, you can send a message from MetaTrader 4 to Telegram.

Force=((Bid-close)/close)*10000;

Corrected moving averages

A light header-only version of Log4mql that provides standardized logging.