/// <summary> /// Resets the Top 10 layout. /// </summary> public void ClearTop10Slots() { _minBalance = int.MaxValue; _maxBalance = int.MinValue; _top10Holder.Clear(); ArrangeTop10Slots(); SetVerticalScrollBar(); }
/// <summary> /// Resets the Top 10 layout. /// </summary> public void ClearTop10Slots() { minValue = float.MaxValue; maxValue = float.MinValue; top10Holder.Clear(); ArrangeTop10Slots(); SetVerticalScrollBar(); }
/// <summary> /// Resets the custom indicators in the custom indicators list. /// </summary> public static void ResetCustomIndicators(IEnumerable <Indicator> indicatorList) { CustomIndicators.Clear(); if (indicatorList == null) { return; } foreach (Indicator indicator in indicatorList) { if (!CustomIndicators.ContainsKey(indicator.IndicatorName)) { CustomIndicators.Add(indicator.IndicatorName, indicator); } } CustomIndicators.Sort(); }
/// <summary> /// Clears the indicator list and adds to it the original indicators. /// </summary> public static void CombineAllIndicators() { AllIndicators.Clear(); foreach (var record in OriginalIndicators) { if (!AllIndicators.ContainsKey(record.Key)) { AllIndicators.Add(record.Key, record.Value); } } foreach (var record in CustomIndicators) { if (!AllIndicators.ContainsKey(record.Key)) { AllIndicators.Add(record.Key, record.Value); } else if (record.Value.OverrideMainIndicator) { AllIndicators[record.Key] = record.Value; } } AllIndicators.Sort(); OpenPointIndicators = GetIndicatorNames(SlotTypes.Open); ClosePointIndicators = GetIndicatorNames(SlotTypes.Close); OpenFilterIndicators = GetIndicatorNames(SlotTypes.OpenFilter); CloseFilterIndicators = GetIndicatorNames(SlotTypes.CloseFilter); foreach (string indicatorName in ClosePointIndicators) { Indicator indicator = ConstructIndicator(indicatorName); indicator.Initialize(SlotTypes.NotDefined); if (indicator.AllowClosingFilters) { ClosingIndicatorsWithClosingFilters.Add(indicatorName); } } }