![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I have a ea to draw trendline, if 2 line is same slope, then remove one
Wouldn't it be better to check the anchor points then?
Although unlikely, you could have 2 trendlines in different locations but with the same slope.
Wouldn't it be better to check the anchor points then?
Although unlikely, you could have 2 trendlines in different locations but with the same slope.
And the same "trend" with 2 trendlines and different anchor points.
I had to think about that one for a minute! Do you mean this scenario?
I had to think about that one for a minute! Do you mean this scenario?
Yes. Just to say that your idea of check anchor points could potentially leads to a bug. Depending of the context of course.