Forex_Strategy_Builder.Strategy.PrepareUsePrevBarValueCheckBox C# (CSharp) Method

PrepareUsePrevBarValueCheckBox() public method

Prepare the checkbox
public PrepareUsePrevBarValueCheckBox ( SlotTypes slotType ) : bool
slotType SlotTypes
return bool
        public bool PrepareUsePrevBarValueCheckBox(SlotTypes slotType)
        {
            bool isChecked = true;
            if (slotType == SlotTypes.OpenFilter)
            {
                if (Data.Strategy.Slot[Data.Strategy.OpenSlot].IndParam.ExecutionTime == ExecutionTime.AtBarClosing)
                    isChecked = false;
            }
            else if (slotType == SlotTypes.Close)
            {
                isChecked = true;
            }
            else if (slotType == SlotTypes.CloseFilter)
            {
                if (Data.Strategy.Slot[Data.Strategy.CloseSlot].IndParam.ExecutionTime == ExecutionTime.AtBarClosing)
                    isChecked = false;
            }
            return isChecked;
        }