MCPcopy Create free account
hub / github.com/TraderOracle/ATAS / WaddahExplosion

Class WaddahExplosion

WAEAtas.cs:12–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 using OFT.Rendering.Tools;
11
12 [DisplayName("WaddahExplosion")]
13 public class WaddahExplosion : Indicator
14 {
15 private readonly int Sensitivity = 150;
16 private readonly EMA fastEma = new EMA() { Period = 20 };
17 private readonly EMA slowEma = new EMA() { Period = 40 };
18 private readonly StdDev _dev = new StdDev() { Period = 20 };
19 private readonly BollingerBands _bb = new BollingerBands()
20 {
21 Period = 20,
22 Shift = 0,
23 Width = 2
24 };
25
26 private readonly ValueDataSeries _negSeries = new("Regular Up Bar")
27 {
28 Color = Colors.Red,
29 VisualType = VisualMode.Histogram
30 };
31 private readonly ValueDataSeries _negLess = new("Less Up Bar")
32 {
33 Color = Colors.Orange,
34 VisualType = VisualMode.Histogram
35 };
36
37 private readonly ValueDataSeries _posSeries = new("Regular Down Bar")
38 {
39 Color = Colors.Lime,
40 VisualType = VisualMode.Histogram
41 };
42 private readonly ValueDataSeries _posLess = new("Less Down Bar")
43 {
44 Color = Colors.Green,
45 VisualType = VisualMode.Histogram
46 };
47
48 private readonly ValueDataSeries _s1 = new("S1 EMA")
49 {
50 Color = Colors.White,
51 VisualType = VisualMode.Histogram
52 };
53
54 public WaddahExplosion() :
55 base(true)
56 {
57 Panel = IndicatorDataProvider.NewPanel;
58 DataSeries[0] = _posSeries;
59 DataSeries.Add(_negSeries);
60 DataSeries.Add(_negLess);
61 DataSeries.Add(_posLess);
62 DataSeries.Add(_s1);
63 }
64
65 protected override void OnCalculate(int bar, decimal value)
66 {
67 if (bar < 5)
68 return;
69

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected