Interface OnChainIndicator
- All Known Implementing Classes:
AdjustedSOPRIndicator, MVRVRatioIndicator, NVTRatioIndicator, SOPRIndicator
public interface OnChainIndicator
Interface for on-chain indicators that compute metrics from blockchain data.
Unlike RTIndicator which processes a single price stream,
on-chain indicators consume structured OnChainSnapshot data
containing multiple blockchain metrics (spent outputs, market cap, etc.).
-
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(OnChainSnapshot snapshot) Computes the indicator value from a snapshot.name()Returns the indicator name.
-
Method Details
-
name
String name()Returns the indicator name. -
calculate
Computes the indicator value from a snapshot.- Parameters:
snapshot- the on-chain data snapshot- Returns:
- the computed indicator value, or
Double.NaNif not computable
-