Example #1
0
 public StockViewer(CoordinateBuilder plotBuilder, MenuSetting menuSetting)
 {
     InitializeComponent();
     this.plotBuilder   = plotBuilder;
     _menuSetting       = menuSetting;
     plotBuilder.width  = Stock.Width;
     plotBuilder.height = Stock.Height;
     plotBuilder.DrawStockMajorToCanvas(ref Stock);
     if (menuSetting.ChartSettings["MACD"])
     {
         plotBuilder.LoadMACD(9);
         plotBuilder.DrawMACDToCanvas(ref MACD, 9);
     }
     if (menuSetting.ChartSettings["RSI"])
     {
         plotBuilder.LoadRSI();
         plotBuilder.DrawRSIToCanvas(ref RSI, 11);
     }
 }