Taking this one step further in order to implement arrows, vertical lines and alerts:
I uploaded 25 screenshots with the data window showing arrows and vertical lines in mt4.
Taking as a base RSI_averages_Bollinger_bands_mtf_MQL5.mq5 that you have written yesterday let's try and implement the arrows, vertical lines and alerts. As I understand it the conditions for arrows and vertical lines are identical. Please verify this from the screenshots I attach here . The conditions for the alerts should be the same as well. The attached inputs screenshot applies / relates to all other screenshots I am attaching now.
About 5 minutes of wait....
Still working on the arrows/lines/alerts. Screenshots so far: 6 of 7 arrow/line pairs sit on the same bar, but one blue pair is a bar apart and the newest bar has a line with no arrow. I'm now reading the sibling MQ4's logic to settle the exact conditions, then I'll build the new version.
I've added arrows, vertical lines and alerts to your base file and saved it as a new file, RSI_averages_Bollinger_bands_mtf_arrows_MQL5.mq5. It is not compiled or tested here, so please send me any compile errors.
The arrow and line conditions are not identical, going by your screenshots and the MQ4 source. In the batches I checked (the 2000px view and the pixel analysis of the arrows30 shot), 6 of the 7 arrow/line pairs sit on the same bar. The seventh pair is the exception. The blue arrow at about x=320 is one bar earlier than its blue line at about x=331. The newest bar also has a blue line with no arrow. I haven't seen arrows08–10 and 23–29.
The MQ4 explains the difference:
Arrows: the RSX line crossing the middle band. A cross to up gives a blue up arrow below the low, and a cross to down gives a yellow down arrow above the high.
Vertical lines: a trend change, meaning the RSX crossing the upper or lower band. Blue is up and red is down. Going back inside the bands draws nothing.
Why they mostly coincide: when the RSX moves steeply it crosses the middle and outer bands on the same bar. On a slow move the arrow comes first, as at x=320.
Alerts: these follow the MQ4, with "middle band cross" and "outer bands cross" as separate switches. They use the same two conditions, one alert per bar and event, on the current bar if alertsOnCurrent is on.
I implemented it that way rather than forcing the two conditions to be the same. If you want arrows and lines on one condition, tell me which one and I'll change it.
I used the MQ4 input names, so your inputs screenshot should line up, but I haven't checked it against the new file. All the new inputs sit before ShadowColor, which is still last. The defaults for line colours, arrow colours and arrow codes (233/234, size 2) are guesses from the screenshots. Arrows and lines are off by default, as in the MQ4. Turn on arrowsVisible and verticalLinesVisible to see them.
With a higher TimeFrame, signals are evaluated on that timeframe's bars. The objects sit on the chart bar that opens each one, and the arrow gap uses a 20-bar ATR of the chart timeframe.
Files are in /mnt/user-data/outputs:
RSI_averages_Bollinger_bands_mtf_arrows_MQL5.mq5
PS
The sibling Claude refers to is RSI + Bollinger bands 1.03 (lines + alerts + arrows + mtf).mq4 that also has arrows and vertical lines. This was given to Claude previously.
Alerts have not been tested.