tradingview.com/script/lj8djt1n-ZigZag/
alertcondition(not repaint and d!=d, "Buy/sell", "Buy/Sell")
alertcondition(high > high, "Sell", "Sell")
alertcondition(low < low, "Buy", "Buy")
alertcondition(not repaint and d!=d, "Buy/sell", "Buy/Sell")
alertcondition(high > high, "Sell", "Sell")
alertcondition(low < low, "Buy", "Buy")