Ejemplo n.º 1
0
        private void MACD_OnSelected(object sender, RoutedEventArgs e)
        {
            TradingChart.RemoveIndicators();

            var macd = new Macd(new ExponentialMaCalculation(), 12, 26, 9, TradingChart.Candles);

            TradingChart.AddIndicator(macd);
            var strategy = new MacdTradingStrategy(TradingChart.Candles, macd);

            TradingChart.SetStrategy(strategy);
        }
Ejemplo n.º 2
0
 public MacdTradingStrategy(List <HighLowItem> candles, Macd macd)
     : base(candles)
 {
     this.macd = macd;
 }