Esempio n. 1
0
 public void DetectSignal(SwingLowHighContext context, Tick currentTick)
 {
     if (currentTick.Price > context.SwingHigh)
     {
         OnBuySignalDetected(currentTick);
     }
 }
        public async void OnMarketContextUpdated(ForexMarketContext marketContext)
        {
            var candles = await provider.RequestCandleAsync(CandleRequest.Latest1H());

            context = contextFactory.Create(candles);
        }