示例#1
0
 public Mq4ArrayToDataSeriesConverter(Mq4Array <Mq4Double> mq4Array, IndicatorDataSeries dataSeries)
 {
     _mq4Array          = mq4Array;
     _dataSeries        = dataSeries;
     _mq4Array.Changed += OnValueChanged;
     CopyAllValues();
 }
示例#2
0
        public DataSeries Create(Mq4Array <Mq4Double> mq4Array)
        {
            IndicatorDataSeries dataSeries;

            if (_cachedAdapters.TryGetValue(mq4Array, out dataSeries))
            {
                return(dataSeries);
            }

            dataSeries = _dataSeriesFactory();
            new Mq4ArrayToDataSeriesConverter(mq4Array, dataSeries);
            _cachedAdapters[mq4Array] = dataSeries;

            return(dataSeries);
        }