mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 20:48:04 +00:00
feat: Add Prime method to various indicators for initializing state with historical data
- Implemented Prime method in Vel, Ao, Apo, Frama, Adl, Adosc, Aobv, Cmf, Efi, Eom, Iii, Kvo, Mfi, Nvi, Obv, Pvd, Pvi, Pvo, Pvr, Pvt, Tvi, Twap, Va, Vf, Vo, Vroc, Vwad, Vwap, and Vwma classes. - The Prime method resets the indicator state and processes the provided historical bar data to initialize the indicator. - Added warmup period property to Adl and Wad classes to define the minimum number of data points required for validity. - Updated benchmark tests to use Batch methods for performance evaluation.
This commit is contained in:
@@ -68,16 +68,6 @@ public sealed class Cci : ITValuePublisher
|
||||
/// </summary>
|
||||
public int WarmupPeriod => _period;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the default warmup period (<see cref="DefaultPeriod"/>).
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This static accessor is provided for backward compatibility. Prefer the instance
|
||||
/// <see cref="WarmupPeriod"/> property which returns the actual configured period.
|
||||
/// </remarks>
|
||||
[Obsolete("Use the instance WarmupPeriod property instead. This static accessor returns the default period (20) and will be removed in a future major version.")]
|
||||
public static int DefaultWarmupPeriod => DefaultPeriod;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a CCI indicator with specified period.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user