Class SOPRIndicator
java.lang.Object
com.wualabs.qtsurfer.engine.indicators.onchain.SOPRIndicator
- All Implemented Interfaces:
OnChainIndicator
- Direct Known Subclasses:
AdjustedSOPRIndicator
Spent Output Profit Ratio (SOPR).
Measures whether spent outputs are in aggregate profit or loss:
SOPR = Σ valueAtSpending / Σ valueAtCreation
- SOPR > 1: participants selling at profit
- SOPR = 1: break-even (support in bull, resistance in bear)
- SOPR < 1: participants selling at loss (capitulation)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(OnChainSnapshot snapshot) Computes the indicator value from a snapshot.protected doublecalculate(List<SpentOutput> outputs) name()Returns the indicator name.
-
Constructor Details
-
SOPRIndicator
public SOPRIndicator()
-
-
Method Details
-
name
Description copied from interface:OnChainIndicatorReturns the indicator name.- Specified by:
namein interfaceOnChainIndicator
-
calculate
Description copied from interface:OnChainIndicatorComputes the indicator value from a snapshot.- Specified by:
calculatein interfaceOnChainIndicator- Parameters:
snapshot- the on-chain data snapshot- Returns:
- the computed indicator value, or
Double.NaNif not computable
-
calculate
-