Beispiel #1
0
 public OrderManager(IBClient ibClient, DataGridView liveOrdersGrid, DataGridView tradeLogGrid, IBTradeApp appForm)
 {
     this.ibClient = ibClient;
     //this.orderDialog = new OrderDialog(this);
     this.liveOrdersGrid = liveOrdersGrid;
     this.tradeLogGrid   = tradeLogGrid;
     this.appForm        = appForm;
     this.appStgManager  = appForm.appStrategyManager;
 }
Beispiel #2
0
 public AccountDetailManager(IBClient ibClient, DataGridView accountValueGrid, DataGridView accountPortfolioGrid, IBTradeApp appForm)
 {
     IbClient                  = ibClient;
     AccountValueGrid          = accountValueGrid;
     this.accountPortfolioGrid = accountPortfolioGrid;
     this.appForm              = appForm;
     String[] tags = ACCOUNT_VALUE_TAGS.Split(',');
     valid_account_values = new Dictionary <string, string>();
     foreach (String tag in tags)
     {
         valid_account_values.Add(tag, tag);
     }
     appStrategyManager = appForm.appStrategyManager;
 }
        public HistoricalDataManager(IBClient ibClient, Chart chart, DataGridView gridView, IBTradeApp appForm)
            : base(ibClient, chart)
        {
            /*
             * Chart historicalChart = (Chart)uiControl;
             * historicalChart.Series[0]["PriceUpColor"] = "Green";
             * historicalChart.Series[0]["PriceDownColor"] = "Red";
             */
            this.gridView = gridView;
            this.appForm  = appForm;
            AppStrategyManager stgManager = appForm.appStrategyManager;

            this.appMDManager    = stgManager.getAppMDManager();
            this.RTBSynchronizer = appMDManager.getAppRTBSynchronizer();
        }
 public RealTimeBarsManager(IBClient ibClient, Chart rtBarsChart, DataGridView rtBarsGrid, IAppMDManager MDManager, IBTradeApp appForm)
     : base(ibClient, rtBarsChart, rtBarsGrid, appForm)
 {
     this.MDManager = MDManager;
     //this.marketDataHelper = marketDataHelper;
     //this.appForm = appForm;
 }