'Keep getting warning about repainting on my tradingview strategy, having a hard time fixing it

I've tried all the solutions provided here:https://www.tradingview.com/pine-script-docs/en/v5/concepts/Repainting.html besides the "nonRepaintingsecurity()" one because it doesn't seem to exist? People using my script are getting warnings about repainting whenever they try to set an alert, and it's not a great look on me. Does anyone have any other solutions? The first two lines were my attempt at one fix, and the "barmerge.lookahead_on" with the close[1] was my attempt at another fix.

indexHighTF = barstate.isrealtime ? 1 : 0
indexCurrTF = barstate.isrealtime ? 0 : 1

tickerExtendedfutures = ticker.new(syminfo.prefix, syminfo.ticker, session.extended)

[sourcefuture, highsourcefuture, lowsourcefuture, opensourcefuture] = 
request.security(ticker.heikinashi(tickerExtendedfutures), timeframe.period, 
[math.round_to_mintick(close[1]), math.round_to_mintick(high[1]), 
math.round_to_mintick(low[1]), math.round_to_mintick(open[1])], lookahead = 
barmerge.lookahead_on)

tickerExtended = ticker.new(syminfo.prefix, syminfo.ticker, session.extended)

futureyes = input(false, "Heikin Ashi Overlay")

highsource = futureyes ? highsourcefuture : high
source = futureyes ? sourcefuture : close
lowsource = futureyes ? lowsourcefuture : low
opensource = futureyes ? opensourcefuture : open


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source