open close signal This code will plot an upward triangle shape at the low of the candle when either the difference between open and close or the difference between close and open is above 45 points. This can be considered a buy signal. Adjust the threshold value as needed using the script's settings on TradingView.