/// <summary>
        /// Sends Bar request with the given properties
        /// </summary>
        /// <param name="security"></param>
        /// <param name="barLength"></param>
        /// <param name="pipSize"></param>
        /// <param name="barFormat"></param>
        /// <param name="priceType"></param>
        /// <param name="dataProvider"></param>
        public void SubmitBarRequest(Security security, decimal barLength, decimal pipSize, string barFormat, string priceType, MarketDataProvider dataProvider)
        {
            // Create a new Subscription request
            SubscriptionRequest subscriptionRequest = new SubscriptionRequest(security,
                                                                              dataProvider, MarketDataType.Bar, SubscriptionType.Subscribe);

            // Set Bar details
            subscriptionRequest.SetLiveBarDetails(barLength, pipSize, barFormat, priceType);

            EventSystem.Publish <SubscriptionRequest>(subscriptionRequest);
        }