QQQ Fair Value Bands
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © dharmatech

//@version=5
indicator("QQQ Fair Value Bands", overlay = true)

// fv = request.security("(WALCL - WTREGEN - RRPONTSYD)/1000/1000/1000*0.1 - 300", "D", close)

upper = request.security("(WALCL - WTREGEN - RRPONTSYD)/1000/1000/1000*0.1 - 310 + 30", "D", close)
fv    = request.security("(WALCL - WTREGEN - RRPONTSYD)/1000/1000/1000*0.1 - 310",      "D", close)
lower = request.security("(WALCL - WTREGEN - RRPONTSYD)/1000/1000/1000*0.1 - 310 - 20", "D", close)

plot(series=upper, title = 'Upper Band', color = color.red)
plot(series=fv, title = 'Fair Value', color=color.orange)
plot(series=lower, title = 'Lower Band', color=color.green)


