Forex_Strategy_Builder.Dialogs.Generator.Generator.ClearStrategySlotsStatus C# (CSharp) Method

ClearStrategySlotsStatus() private method

Clears the slots status of the given strategy.
private ClearStrategySlotsStatus ( Strategy strategy ) : Strategy
strategy Strategy
return Strategy
        Strategy ClearStrategySlotsStatus(Strategy strategy)
        {
            Strategy tempStrategy = strategy.Clone();
            tempStrategy.PropertiesStatus = StrategySlotStatus.Open;
            foreach (IndicatorSlot slot in tempStrategy.Slot)
                slot.SlotStatus = StrategySlotStatus.Open;

            return tempStrategy;
        }