mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 05:48:06 +00:00
style patterns
This commit is contained in:
@@ -211,7 +211,7 @@ public class VwapbandsIndicatorTests
|
||||
|
||||
// Same prices but different volume distributions
|
||||
// Process both bars for each indicator
|
||||
|
||||
|
||||
// Indicator1: high volume on low price, low volume on high price
|
||||
indicator1.HistoricalData.AddBar(now, 100, 102, 98, 100, 10000);
|
||||
indicator1.ProcessUpdate(new UpdateArgs(UpdateReason.HistoricalBar));
|
||||
@@ -231,4 +231,4 @@ public class VwapbandsIndicatorTests
|
||||
// VWAP2 should be higher (weighted toward 110 due to high volume at high price)
|
||||
Assert.True(vwap1 < vwap2, $"VWAP1 ({vwap1}) should be less than VWAP2 ({vwap2}) due to volume weighting");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,4 +76,4 @@ public class VwapbandsIndicator : Indicator, IWatchlistIndicator
|
||||
Lower2Series!.SetValue(vwapbands.Lower2.Value, vwapbands.IsHot, ShowColdValues);
|
||||
WidthSeries!.SetValue(vwapbands.Width.Value, vwapbands.IsHot, ShowColdValues);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -602,4 +602,4 @@ public class VwapbandsTests
|
||||
Assert.Equal(expectedVwap, vwapbands.Vwap.Value, precision: 10);
|
||||
Assert.True(vwapbands.Vwap.Value < 110, "VWAP should be heavily weighted toward 100");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,4 +518,4 @@ public sealed class VwapbandsValidationTests : IDisposable
|
||||
|
||||
_output.WriteLine("VWAPBANDS static Calculate validated successfully");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -414,4 +414,4 @@ public sealed class Vwapbands : AbstractBase
|
||||
lower2[i] = vwapVal - 2.0 * multiplier * stdev;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user