TargetExcursionStatsLib

helper for targetExcursionLib
f_density_new(gridSize, outcomeCap, smoothing, halfLife, familyCode, shrinkageAlpha)
Construct one independent density state.
Parameters:
gridSize (int)
outcomeCap (float)
smoothing (float)
halfLife (float)
familyCode (int)
shrinkageAlpha (float)
method advance(state, currentBar)
Advance all six streams causally to currentBar.
Namespace types: DensityState
Parameters:
state (DensityState)
currentBar (int)
method observe(state, direction, mae, mfe, resolutionBar)
Add one resolved, direction-conditioned excursion observation.
MAE and MFE are normalized, nonnegative values frozen by the queue.
Namespace types: DensityState
Parameters:
state (DensityState)
direction (int)
mae (float)
mfe (float)
resolutionBar (int)
method support(state, direction, isMae)
Effective sample support for a direction and outcome stream.
Namespace types: DensityState
Parameters:
state (DensityState)
direction (int)
isMae (bool)
method directionSupport(state, direction)
Minimum of current direction's MAE/MFE effective supports.
Namespace types: DensityState
Parameters:
state (DensityState)
direction (int)
method estimate(state, direction, isMae)
Quantiles, mode, modal probability and support for one stream.
Namespace types: DensityState
Parameters:
state (DensityState)
direction (int)
isMae (bool)
method probabilityAt(state, direction, isMae, value)
Smoothed probability mass at the bin containing value.
Namespace types: DensityState
Parameters:
state (DensityState)
direction (int)
isMae (bool)
value (float)
Histogram
Fields:
bins (array<float>)
weight (series float)
weightSq (series float)
DensityState
Fields:
pooledMae (Histogram)
pooledMfe (Histogram)
longMae (Histogram)
longMfe (Histogram)
shortMae (Histogram)
shortMfe (Histogram)
gridSize (series int)
outcomeCap (series float)
smoothing (series float)
halfLife (series float)
familyCode (series int)
shrinkageAlpha (series float)
lastDecayBar (series int)
lastResolvedBar (series int)
resolvedCount (series int)
longResolvedCount (series int)
shortResolvedCount (series int)
DensityEstimate
Fields:
q10 (series float)
q50 (series float)
q80 (series float)
q90 (series float)
mode (series float)
modeProbability (series float)
effectiveSupport (series float)
Pine Bibliothek
Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.
Haftungsausschluss
Pine Bibliothek
Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.