completely new to coding, so have a patience with me
I have written super simple scrip to indicate overbought levels of MFI.
The problem is that:
- It doesn't indicate all OB levels - only some
- it indicates some levels which are actually not OB
Download link for pic
https://we.tl/t-e84aMeViLJ
Script:
//@version=4
study(title="[zwp]=03", overlay=true)
//get input
mfi = mfi(close,14)
ob = mfi >= 80
//to the graph
plotshape(ob, text="OB", color=color.new(color.red, 0))
bgcolor(ob ? color.new(color.aqua,70) : na)