protected override State <Config> Run(TradingProvider trading, DataProvider data) { // If the Filter and CrossoverSMA signal the trade, we buy at market. trading.ExecutePartialMarketOrderBuy(FirstPair, 0.7M); return(new InTradeState()); }
protected override State <Config> Run(TradingProvider trading, DataProvider data) { trading.ExecutePartialMarketOrderBuy(FirstPair, 0.7M); return(new WaitState()); }