Added a hidden plot for trend direction, will return +1 for trend up (lo-stop active) and -1 for trend down (hi-stop active). The plot is deactivated by default but is available as an input to other indicators, this should make it a lot easier to incorporate into another strategy builder or the like.
IQR function has been slightly modified, it should no longer calculate arrays when deactivated thus everything else should load quicker.