I wanted to know if any of you have ever tried to automaticaly detect trend lines, trend channels or support and resistance lines with MQL?
The only idea I came up is the following:
I calculate a regression line for the last x bars and draw a line above and below this line in the distance of the standard deviation or maybe highest open/lowest close in this period.
Any other approach is welcome!
The only idea I came up is the following:
I calculate a regression line for the last x bars and draw a line above and below this line in the distance of the standard deviation or maybe highest open/lowest close in this period.
Any other approach is welcome!