Forex_Strategy_Builder.Enter_Once.Enter_Once C# (CSharp) Method

Enter_Once() public method

Sets the default indicator parameters for the designated slot type
public Enter_Once ( SlotTypes slotType )
slotType SlotTypes
        public Enter_Once(SlotTypes slotType)
        {
            // General properties
            IndicatorName = "Enter Once";
            PossibleSlots = SlotTypes.OpenFilter;

            // Setting up the indicator parameters
            IndParam = new IndicatorParam();
            IndParam.IndicatorName = IndicatorName;
            IndParam.SlotType      = slotType;
            IndParam.IndicatorType = TypeOfIndicator.DateTime;

            // The ComboBox parameters
            IndParam.ListParam[0].Caption = "Logic";
            IndParam.ListParam[0].ItemList = new string[]
            {
                "Enter no more than once a bar",
                "Enter no more than once a day",
                "Enter no more than once a week",
                "Enter no more than once a month"
            };
            IndParam.ListParam[0].Index   = 0;
            IndParam.ListParam[0].Text    = IndParam.ListParam[0].ItemList[IndParam.ListParam[0].Index];
            IndParam.ListParam[0].Enabled = true;
            IndParam.ListParam[0].ToolTip = "Indicator's logic.";

            return;
        }