Hi, Below code draw a dymatic trend line by angle, but mt5 always draw a vertica line as trend line and the angle value return is always 90.
When i remove the code with underline below, mt5 draw trend line correctly. Is it a mt5 bug(build 842)?

- www.mql5.com
Hi, Below code draw a dymatic trend line by angle, but mt5 always draw a vertica line as trend line and the angle value return is always 90.
When i remove the code with underline below, mt5 draw trend line correctly. Is it a mt5 bug(build 842)?
You are drawing the Trendline by Angle incorrectly. For a standard trendline you give 2 price and time coordinates, for a trendline by angle you give one set of price and time coordinates and one angle.
Nope. See documentation and example in your link.
Both angle and the second anchor point's coordinates can be used to set the slope of the line.
Nope. See documentation and example in your link.

- www.mql5.com
Does anyone found a solution for this ?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, Below code draw a dymatic trend line by angle, but mt5 always draw a vertica line as trend line and the angle value return is always 90.
When i remove the code with underline below, mt5 draw trend line correctly. Is it a mt5 bug(build 842)?