Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // @author LazyBear
- // @credits http://en.wikipedia.org/wiki/Market_facilitation_index
- //
- // If you use this code in its original/modified form, do drop me a note.
- //
- study("Market Facilitation Index [LazyBear]", shorttitle="MFIndex_LB", overlay=true)
- plot_offs=input(0.005, title="Indicator offset % (below low)")
- r_hl=roc((high-low)/volume,1)
- r_v=roc(volume,1)
- green_f= (r_hl > 0) and (r_v > 0)
- fade_f=(r_hl < 0) and (r_v < 0)
- fake_f=(r_hl > 0) and (r_v < 0)
- squat_f=(r_hl < 0) and (r_v > 0)
- b_color = green_f ? green : fade_f ? blue : fake_f ? gray : squat_f ? red : na
- plot(low - (low*plot_offs), color=b_color, style=circles, linewidth=4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement