[Building Block] Using R-Squard/Geometry as an indicator block?
Imagine this:
IF High[84] till High[1] >= 330 ° then Open BUY
IF Low[84] till Low[1] <= 34 ° then Open SELL
or
As a strait range which we already got a block like this already in SQ:
IF High[56] till High[1] >= 360 ° then Open BUY
IF Low[56] till Low[1] <= 360 ° then Open SELL
obviously we should focus on 90 ° to 270 ° because we should look at the ride side of the 1/2 of the circle (screenshot)
and a visual screenshot of what's possible
and other examples like that, this will somewhat mimic Manual "Technical Geometrical Analysis"
Even harder to program is the trendline detection itself. I submitted a functioning (albeit terribly ugly and confusing - I wrote it in 2008) mql code that detects trendlines to do simple trendline break signals but it was deemed too complicated.... also it is very cpu intensive. Assuming you want to make sure the line drawn does not penetrate other bars which it will most of the time if just choose high of bar 56 to current bars high.