Added multiband supertrend
msupertrend(bandType, source, maType, length, useTrueRange, highSource, lowSource, waitForClose, numberOfBands, multiplierStart, multiplierStep, trailingDistance, trailStates) msupertrend : Dynamic trailing supertrend based on multiple bands - either bollinger bands or keltener channel
Parameters:
bandType: : Band type - can be either bb or kc
source: : custom source if required
maType: : Moving Average Type : Can be sma, ema, hma, rma, wma, vwma, swma, highlow, linreg, median
length: : Oscillator length - not used for TSI
useTrueRange: : if set to false, uses high-low.
highSource: : Default is high. Can also use close price for both high and low source
lowSource: : Default is low. Can also use close price for both high and low source
waitForClose: : Considers source for direction change crossover if checked. Else, uses highSource and lowSource.
numberOfBands: : Number of bands to generate
multiplierStart: : Starting ATR or Standard deviation multiplier for first band
multiplierStep: : Incremental value for multiplier for each band
trailingDistance: : Number of band states to trail for trailing stop.
trailStates: : If selected trails the band states along with trailing price. If unselected only price is trailed.
Returns: dir : Supertrend direction
supertrend : BuyStop if direction is 1 else SellStop