コード例 #1
0
        public void CreateNewSprStrategy(decimal currentPosition, decimal currentPositionPrice, decimal spread, decimal lot,
                                         Sides sideForEnterToPosition, decimal absMaxFuturesNumber)
        {
            //StrategyForTest = new SpreaderStrategy(currentPosition, currentPositionPrice, spread, lot,
            //    sideForEnterToPosition, absMaxFuturesNumber);

            StrategyForTest.SetStrategyEntitiesForWork(StConnector, StSecurity, StPortfolio);
        }
コード例 #2
0
        public void CreateNewCondtrategy(decimal priceToClose, Security securityToClose, PriceDirection securityDesirableDirection, decimal positionToClose)
        {
            //StrategyForTest = new PositionCloserStrategy(priceToClose, securityToClose, securityDesirableDirection, positionToClose);

            StrategyForTest.SetStrategyEntitiesForWork(StConnector, StSecurity, StPortfolio);
        }