/// <summary>
        /// Sets information for Live Bar subscription
        /// </summary>
        /// <param name="barLength">Bar length i.e. duration</param>
        /// <param name="pipSize">Pip size</param>
        /// <param name="barFormat">Bar format</param>
        /// <param name="barPriceType">bar price type</param>
        public void SetLiveBarDetails(decimal barLength, decimal pipSize, string barFormat, string barPriceType)
        {
            // Initialize object
            _liveBarDetail = new BarParameters();

            // Set parameters
            _liveBarDetail.BarLength = barLength;
            _liveBarDetail.PipSize   = pipSize;
            _liveBarDetail.Format    = barFormat;
            _liveBarDetail.PriceType = barPriceType;
        }
示例#2
0
 /// <summary>
 /// Argument Constructor
 /// </summary>
 /// <param name="bar">Contains bar values</param>
 /// <param name="barParameters">Parameters used to create bar</param>
 public BarDetail(Bar bar, BarParameters barParameters)
 {
     _bar           = bar;
     _barParameters = barParameters;
 }