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 Type
    Method
    Description
    double
    Computes the indicator value from a snapshot.
    Returns the indicator name.
  • Method Details

    • name

      String name()
      Returns the indicator name.
    • calculate

      double calculate(OnChainSnapshot snapshot)
      Computes the indicator value from a snapshot.
      Parameters:
      snapshot - the on-chain data snapshot
      Returns:
      the computed indicator value, or Double.NaN if not computable