Forex_Strategy_Builder.Strategy.PrepareUsePrevBarValueCheckBox C# (CSharp) 메소드

PrepareUsePrevBarValueCheckBox() 공개 메소드

Prepare the checkbox
public PrepareUsePrevBarValueCheckBox ( SlotTypes slotType ) : bool
slotType SlotTypes
리턴 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;
        }