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
IIf so, then it is better to use not the range, but these two functions to check whether the last bar is an extremum for the last N bars:
example script
But I would recommend that you look towards at least linear regression, and not horizontal linear channels.
Expert example
IIf so, then it is better to use not the range, but these two functions to check whether the last bar is an extremum for the last N bars:
Thank you Nikolai. This is exactly what I would like to use. Your solution on how to check if the last bars are in range is new to me. I hadn't thought about approaching it this way. Thank you for the examples you posted. I don't understand everything, especially Canvas is new to me, but I will analyze everything and learn something new.
Thank you for your help!
Thank you Nikolai. This is exactly what I would like to use. Your solution on how to check if the last bars are in range is new to me. I hadn't thought about approaching it this way. Thank you for the examples you posted. I don't understand everything, especially Canvas is new to me, but I will analyze everything and learn something new.
Thank you for your help!
no problem