An angle requires distance/distance a unitless number. A chart has price/time, (the stochastic has n/time.) What is the angle of going 30 miles in 45 minutes? Meaningless!
You can get the slope from a line. Delta price/ delta time. Changing the axes scales changes the apparent angle, the slope is constant. Angle is meaningless.
You can get the slope from a line. Delta price/ delta time. Changing the axes scales changes the apparent angle, the slope is constant. Angle is meaningless.
![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
2) After that I need to check if there is a sharp angle at 2 (It isn't the sharpest angle in my example, but you can see it in the second picture) - I know it sound ridiculous but it is part of the strategy which I'm trying to implement.
I have two main problems. The first one is that my indicator is dependent on MT4 scale/zoom. For example - if I resize the indicator window my angle gets sharper and my lines closer:
For this case I read that it is better to use "slope" instead of "angle". Am I right?
If I have to be honest with you I have no idea how the hell is possible to catch a sharp angle in Stochastic Oscillator or even to catch an angle, because there might not be one. Is it possible at all? It's easy to do that just with an eye but with MQL4? Is there any relationship with the main chart or with the values of the Stochastic Oscillator which I can use to catch an angle?
My second problem is in some part related with the first one - I think that if i can find some type of relationship I might be able to solve my problem with finding closer lines.
I don't think it's impossible - there is a way... Will it be easy? Nope! Worth it? Absolutely. :)
Thanks!