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
You are counting the distance between High and Low , and he has lines
You're talking about parallel lines. And in parallel lines the vertical distance is always the same on any bar. In his example the distance between the lines is(High[10]-Low[10]). You don't need to calculate time for this at all.
You can check it and it will have the same result all the time.
You can find a more general formula here
But since the denominator is very close to 1 even on the minute chart, it can be simplified to:
double R=(Price2-Price1);
It's already said by @Renat Akhtyamov in this post
Depending on the angle, the distance will vary... So what is the difference between the lines ? )
Depending on the angle, all the distances will change by multiples, as you have a right-angled triangle. So it doesn't matter where you measure at all. Measure what you think is the simplest distance.
Please show me an example.
Depending on the angle and will change the distance ... What is the difference between the lines ? )
You need to find the distance between two parallel lines, and it does not matter how big it is, as long as the value does not change when you change the scale?
Did I get it right? If so, please give me the code that checks the value and it doesn't work with you, because with me it works and the value doesn't change.
Please show me an example.
That is, if Line1 is at the top and Line2 is at the bottom
yes
Try my line instead of the ones you have below it, if that suits you
// Предлагали сделать так и не помогает !
This will be the length of the blue line:
Renat Akhtyamov:
Hmmm... You know, it doesn't help either ) ... You tried running my code from above... It's not the results you want.
Maybe I'm not explaining it right.
Try my line instead of the ones you have below it, if it suits you
This will be the length of the blue line:
That's right ... I need the length. the red line. Imagine if these two parallel lines were vertical, what would the blue line show ? (at different angles, will be different length)
If you draw two parallel lines 10 cm apart on a white sheet(Fig.7), this sheet can be twisted any way you like at any angle and there will still be the same 10 cm(Fig.6).