Skip to content
Snippets Groups Projects

Asset range option

Merged Michał Kudela requested to merge kudmich/add_asset_range_option into master
All threads resolved!
@@ -200,10 +200,11 @@ class Asset:
Usage:
tt.Asset.Range(lower_limit=tt.Asset.Hive(100), upper_limit=tt.Asset.Hive(110))
:param lower_limit is required
:param lower_limit is required. When tolerance is given it acts as the value to which we refer when specifying
the percentage range.
:param tolerance: is defined as a positive number, which is a percentage of the upper and lower deviations e.g:
asset = tt.Asset.Hive(100)
tt.Asset.Range(asset, tolerance=10) -> the range of this asset is from tt.Asset.Hive(90) to (100)
tt.Asset.Range(asset, tolerance=10) -> the range of this asset is from tt.Asset.Hive(90) to inclusive (100)
Upper limit and tolerance should be used interchangeably.
"""
Loading