mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-07 05:49:52 +08:00
DOC: add default inputs and window length to TrueRange
This commit is contained in:
@@ -651,10 +651,17 @@ class TrueRange(CustomFactor):
|
||||
|
||||
A technical indicator originally developed by J. Welles Wilder, Jr.
|
||||
Indicates the true degree of daily price change in an underlying.
|
||||
"""
|
||||
|
||||
inputs = (USEquityPricing.high, USEquityPricing.low,
|
||||
USEquityPricing.close, )
|
||||
**Default Inputs:** :data:`zipline.pipeline.data.USEquityPricing.high`
|
||||
:data:`zipline.pipeline.data.USEquityPricing.low`
|
||||
:data:`zipline.pipeline.data.USEquityPricing.close`
|
||||
**Default Window Length:** 2
|
||||
"""
|
||||
inputs = (
|
||||
USEquityPricing.high,
|
||||
USEquityPricing.low,
|
||||
USEquityPricing.close,
|
||||
)
|
||||
window_length = 2
|
||||
|
||||
def compute(self, today, assets, out, highs, lows, closes):
|
||||
|
||||
Reference in New Issue
Block a user