Esempio n. 1
0
 public void Set(string name, int index, Mq4Double value)
 {
     if (!_mq4ObjectByName.ContainsKey(name))
     {
         return;
     }
     _mq4ObjectByName[name].Set(index, value);
     _mq4ObjectByName[name].Draw();
 }
Esempio n. 2
0
 public override void Set(int index, Mq4Double value)
 {
     base.Set(index, value);
     switch (index)
     {
     case MQ4Const.OBJPROP_TIME1:
         _index = _timeSeries.GetIndexByTime(Time1);
         break;
     }
 }
Esempio n. 3
0
        private void OnValueChanged(int index, Mq4Double value)
        {
            int indexToSet;

            if (_mq4Array.IsInverted)
            {
                indexToSet = _mq4Array.Length - index;
            }
            else
            {
                indexToSet = index;
            }

            if (indexToSet < 0)
            {
                return;
            }

            _dataSeries[indexToSet] = value;
        }
Esempio n. 4
0
 public virtual void Set(int index, Mq4Double value)
 {
     _properties[index] = value;
 }