All The TrendLines by Angle and Gann_Lines that I draw are drawn crooked or of a different angle than the supossedly programmed.
- There is no angle from 2 anchor points. An angle requires distance/distance a unitless number. A chart has price/time. What is the angle of going 30 miles in 45 minutes? Meaningless!
- You can get the slope from a trendline. Delta price/ delta time. Changing the axes scales changes the apparent angle, the slope is constant. Angle is meaningless.
- You can create a angled line using one point and setting the angle. The line is drawn that angle in pixels. Changing the axes scales does NOT change the angle.
Well, like this;
TrendByAngleCreate(id,PatternText[shift],0,Time[shift1],Close[shift1],TrendBy_Angle,clrLime,STYLE_SOLID,1,true,false,true,False,0);
Basically using the code at the Objects section in the documentation book.what is surprising me is that the angle I input at the TrendBy_Angle parameter, is not, the angle that can be observed in the created lines angle parameter at the objects_list .
GannLineCreate(0,PatternText[shift3],0,Time[shift1],Close[shift1],Time[shift1],Gann_gLE,Gann_scale,clrLime,STYLE_SOLID,1,true,false,false,true,False,0);
Then tryed this other one; For having a previous known Angle I fixed chart at some scale but then; drew a Gann grid to have a known Gann scale, measured the algle i drew with the _Grid with a trend line by angle also by hand; the two drawn by hand objects were continually stable by a real long way, but the lines got created with a really noticeable error from the very start, for two visibly close lines that must have had the same angle reality was the two lines crossed over the other one almost nothing more the start.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- 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; i am tinkering for building an indicator program where i try to simply draw trendlines, every time with the same fixed angle, when and where, the indicator I made of bits of everywhere code recognizes various candlestick patterns; but i got creased only at this point and i have tryed to draw GannLines instead only to shockingly get Lines with ever distorted angles not random just the same for everyline, but amazingly I get a different number at the angle properties of the Lines i get drawn everytime. Can any Pro kindly enlighten me about it? Thank you very much in advance.
Dr. West