예제 #1
0
            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());
            }
예제 #2
0
 protected override State <Config> Run(TradingProvider trading, DataProvider data)
 {
     trading.ExecutePartialMarketOrderBuy(FirstPair, 0.7M);
     return(new WaitState());
 }