TICK Strength Background Shade
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © BigGuavaTrading

//@version=5
indicator("TICK Strength Background Shade", "TICK Strength", true)
 
//get TICK data
tH = input(599, "Strong TICK Strength", group = "Background Color TICK  Strength Identifier")
tM = input(299, "Moderate TICK Strength", group = "Background Color TICK  Strength Identifier")
tL = input(1, "Weak TICK Strength", group = "Background Color TICK  Strength Identifier")

tickH = request.security("USI:TICK.US", "1", high)
tickC = request.security("USI:TICK.US", "1", close)
tickL = request.security("USI:TICK.US", "1", low)

//Background for TICK
bgcolor(tickH > tH  ? color.new(color.green, 50) : tickL < -tH ? color.new(color.red, 50) : tickC > tM ? color.new(color.green, 70) : tickC < -tM ? color.new(color.red, 70) : tickC > tL ? color.new(color.green, 90) : tickC < -tL ? color.new(color.red, 90) : na)
