Skip to content

Commit

Permalink
Remove Symbol and CurrentBar from Heikin-Ashi Indicator
Browse files Browse the repository at this point in the history
...in order to make the indicator more consistent with others.
  • Loading branch information
JonathanWheeler committed Jul 24, 2020
1 parent 8903942 commit 0cd0a77
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Indicators/HeikinAshi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,6 @@ public class HeikinAshi : BarIndicator, IIndicatorWarmUpPeriodProvider
/// </summary>
public IndicatorBase<IndicatorDataPoint> Volume { get; }

/// <summary>
/// Gets the Heikin-Ashi Symbol
/// </summary>
public Symbol Symbol { get; private set; }

/// <summary>
/// Gets the Heikin-Ashi current TradeBar
/// </summary>
public TradeBar CurrentBar => new TradeBar(Open.Current.Time, Symbol, Open, High, Low, Close, Volume);

/// <summary>
/// Initializes a new instance of the <see cref="HeikinAshi"/> class using the specified name.
/// </summary>
Expand Down Expand Up @@ -128,8 +118,6 @@ protected override decimal ComputeNextValue(IBaseDataBar input)
}
Volume.Update(input.Time, volume);

Symbol = input.Symbol;

return Close;
}

Expand All @@ -143,8 +131,7 @@ public override void Reset()
Low.Reset();
Close.Reset();
Volume.Reset();
Symbol = Symbol.Empty;
base.Reset();
}
}
}
}

0 comments on commit 0cd0a77

Please sign in to comment.