mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-24 09:28:11 -07:00
refactor: remove verbose comments from vecs.rs files
This commit is contained in:
@@ -4,23 +4,9 @@ use vecdb::{EagerVec, PcoVec};
|
|||||||
|
|
||||||
use crate::internal::ComputedFromDateLast;
|
use crate::internal::ComputedFromDateLast;
|
||||||
|
|
||||||
/// Reserve Risk metric components.
|
|
||||||
///
|
|
||||||
/// Reserve Risk = Price / HODL Bank
|
|
||||||
/// Where HODL Bank = Σ(Price - avg_VOCDD) over time
|
|
||||||
///
|
|
||||||
/// Low Reserve Risk = high long-term holder confidence = good buying opportunity.
|
|
||||||
#[derive(Clone, Traversable)]
|
#[derive(Clone, Traversable)]
|
||||||
pub struct Vecs {
|
pub struct Vecs {
|
||||||
/// Moving average of VOCDD (Value-weighted CDD) over 365 days
|
|
||||||
/// Used to smooth the VOCDD signal for HODL Bank calculation
|
|
||||||
pub vocdd_365d_sma: EagerVec<PcoVec<DateIndex, StoredF64>>,
|
pub vocdd_365d_sma: EagerVec<PcoVec<DateIndex, StoredF64>>,
|
||||||
|
|
||||||
/// HODL Bank = cumulative sum of (price - vocdd_365d_sma)
|
|
||||||
/// Represents the opportunity cost of holding Bitcoin vs trading
|
|
||||||
pub hodl_bank: EagerVec<PcoVec<DateIndex, StoredF64>>,
|
pub hodl_bank: EagerVec<PcoVec<DateIndex, StoredF64>>,
|
||||||
|
|
||||||
/// Reserve Risk = price / hodl_bank
|
|
||||||
/// A timing indicator for long-term Bitcoin accumulation
|
|
||||||
pub reserve_risk: Option<ComputedFromDateLast<StoredF64>>,
|
pub reserve_risk: Option<ComputedFromDateLast<StoredF64>>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,5 @@ pub struct Vecs {
|
|||||||
pub cointime_value_destroyed: ComputedFromHeightSumCum<StoredF64>,
|
pub cointime_value_destroyed: ComputedFromHeightSumCum<StoredF64>,
|
||||||
pub cointime_value_created: ComputedFromHeightSumCum<StoredF64>,
|
pub cointime_value_created: ComputedFromHeightSumCum<StoredF64>,
|
||||||
pub cointime_value_stored: ComputedFromHeightSumCum<StoredF64>,
|
pub cointime_value_stored: ComputedFromHeightSumCum<StoredF64>,
|
||||||
/// Value-weighted Coin Days Destroyed (CDD × price)
|
|
||||||
/// Used for Reserve Risk calculation: VOCDD = coindays_destroyed × price
|
|
||||||
pub vocdd: ComputedFromHeightSumCum<StoredF64>,
|
pub vocdd: ComputedFromHeightSumCum<StoredF64>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user