v7
Updated:
dropzone(price, masource, malength_days, window_days, zonesize, minuszone, firstzone, lastzone, overzone)
Calculates drop zone as an integer representing some multiple of the "zoning size"
Parameters:
price (float): The current price from which you want to calculate the drop zone
masource (float): The source series used in the SMA calculation from which the floor price is determined
malength_days (simple int): The length (in days) used in the SMA calculation from which the floor price is determined
window_days (simple int): The lookback period (in days) from which to calculate the floor price
zonesize (simple int): The increment by which each new zone is larger than the next
minuszone (simple int): The zone number to use if price is below the floor price. If ommitted it defaults to zero (0)
firstzone (simple int): The first valid zone number. If ommitted it defaults to the first zonesize increment
lastzone (simple int): The last zone number where price is above the final zone.
overzone (simple int)
Returns: The zone identifier as a multiple of the zone size in string format