I translated https://www.tradingview.com/script/tZMg8BFt/ for MT5 with AI. An additional feature is that the start of the AVWAP on the chart can be moved with the mouse, as long as you set the first input option to true.
The code is given as is
Pelle, Sat Feb 28, 2026 2:15 am