Don't fix the scale or learn to live with it - tertium non datur.
Carl Schreiber:
Don't fix the scale or learn to live with it - tertium non datur.
When working with angles the scale should be fixed.
Don't fix the scale or learn to live with it - tertium non datur.
-
There is no angle from 2 anchor points. An angle requires distance divided by
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 (Object Properties - Objects Constants -
Standard Constants, Enumerations and Structures - MQL4 Reference.)
The line is drawn that angle in pixels. Changing the axes scales does NOT change
the angle (and thus is meaningless.)
-
If you insist, take the two price/time coordinates, convert them to pixel
coordinates and then to apparent angle with arctan.
How to get the angle of a trendline and place a text object to it? - Trend Indicators - MQL4 and MetaTrader 4 - MQL4 programming forum - Page 2
whroeder1:
Thank you very much for the beautiful answer and explanation.
-
There is no angle from 2 anchor points. An angle requires distance divided by
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 (Object Properties - Objects Constants -
Standard Constants, Enumerations and Structures - MQL4 Reference.)
The line is drawn that angle in pixels. Changing the axes scales does NOT change
the angle (and thus is meaningless.)
-
If you insist, take the two price/time coordinates, convert them to pixel
coordinates and then to apparent angle with arctan.
How to get the angle of a trendline and place a text object to it? - Trend Indicators - MQL4 and MetaTrader 4 - MQL4 programming forum - Page 2
redahussien:
Thank you very much for the beautiful answer and explanation.
Thank you very much for the beautiful answer and explanation.
I wholeheartedly agree with whroeder on this one... you should be using slope.
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
HI , could you please assist me on this issue , when i fix the scale one to one in mt4 for D1,W1,MN period the chart will be distorted and you can not read it.
i mean the bars will be very long and it will not fit the screen , the opposite for H1 period.
thanks in advance.