コード例 #1
0
        public IndicatorParam()
        {
            SlotNumber        = 0;
            IsDefined         = false;
            SlotType          = SlotTypes.NotDefined;
            IndicatorName     = String.Empty;
            IndicatorType     = TypeOfIndicator.Indicator;
            ExecutionTime     = ExecutionTime.DuringTheBar;
            IsDeafultGroupAll = false;
            IsAllowLTF        = true;
            ListParam         = new ListParam[5];
            NumParam          = new NumericParam[6];
            CheckParam        = new CheckParam[2];

            for (int i = 0; i < 5; i++)
            {
                ListParam[i] = new ListParam();
            }

            for (int i = 0; i < 6; i++)
            {
                NumParam[i] = new NumericParam();
            }

            for (int i = 0; i < 2; i++)
            {
                CheckParam[i] = new CheckParam();
            }
        }
コード例 #2
0
        /// <summary>
        ///     Returns a copy of the class.
        /// </summary>
        public CheckParam Clone()
        {
            var param = new CheckParam
            {
                Caption = Caption,
                Enabled = Enabled,
                Checked = Checked,
                ToolTip = ToolTip
            };

            return(param);
        }
コード例 #3
0
        public IndicatorParam()
        {
            SlotNumber = 0;
            IsDefined = false;
            SlotType = SlotTypes.NotDefined;
            IndicatorName = String.Empty;
            IndicatorType = TypeOfIndicator.Indicator;
            ExecutionTime = ExecutionTime.DuringTheBar;
            IsDeafultGroupAll = false;
            IsAllowLTF = true;
            ListParam = new ListParam[5];
            NumParam = new NumericParam[6];
            CheckParam = new CheckParam[2];

            for (int i = 0; i < 5; i++)
                ListParam[i] = new ListParam();

            for (int i = 0; i < 6; i++)
                NumParam[i] = new NumericParam();

            for (int i = 0; i < 2; i++)
                CheckParam[i] = new CheckParam();
        }
コード例 #4
0
 /// <summary>
 ///     Returns a copy of the class.
 /// </summary>
 public CheckParam Clone()
 {
     var param = new CheckParam
         {
             Caption = Caption,
             Enabled = Enabled,
             Checked = Checked,
             ToolTip = ToolTip
         };
     return param;
 }