Forex_Strategy_Builder.Accumulation_Distribution.Accumulation_Distribution C# (CSharp) Method

Accumulation_Distribution() public method

Sets the default indicator parameters for the designated slot type
public Accumulation_Distribution ( SlotTypes slotType ) : System.Drawing
slotType SlotTypes
return System.Drawing
        public Accumulation_Distribution(SlotTypes slotType)
        {
            // General properties
            IndicatorName  = "Accumulation Distribution";
            PossibleSlots  = SlotTypes.OpenFilter | SlotTypes.CloseFilter;
            SeparatedChart = true;

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

            // The ComboBox parameters
            IndParam.ListParam[0].Caption  = "Logic";
            IndParam.ListParam[0].ItemList = new string[]
            {
                "The AD rises",
                "The AD falls",
                "The AD changes its direction upward",
                "The AD changes its direction downward"
            };
            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 = "Logic of application of the indicator.";

            // The CheckBox parameters
            IndParam.CheckParam[0].Caption = "Use previous bar value";
            IndParam.CheckParam[0].Checked = PrepareUsePrevBarValueCheckBox(slotType);
            IndParam.CheckParam[0].Enabled = true;
            IndParam.CheckParam[0].ToolTip = "Use the indicator value from the previous bar.";

            return;
        }