This commit is contained in:
Miha Kralj
2024-09-30 06:46:07 -07:00
parent 148f0ea846
commit bdc01bff4a
28 changed files with 803 additions and 1053 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ public class TBarSeries : List<TBar>
public new virtual void Add(TBar bar)
{
if (bar.IsNew) { base.Add(bar); } else { this[^1] = bar; }
if (bar.IsNew || base.Count == 0) { base.Add(bar); }
else { this[^1] = bar; }
Pub?.Invoke(this, new TBarEventArgs(bar));
Open.Add(bar.Time, bar.Open, IsNew: bar.IsNew, IsHot: true);