//version=5 indicator("Last 4-Hour High and Low", overlay=true)
// Get the high and low values for the last 4 hours (240 minutes) high_4h = request.security(syminfo.tickerid, "240", high) low_4h = request.security(syminfo.tickerid, "240", low)
// Plot the high and low values for the last 4 hours plot(high_4h, color=color.green, linewidth=2, title="Last 4-Hour High") plot(low_4h, color=color.red, linewidth=2, title="Last 4-Hour Low")