Example #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);
        }
        public void CreateNewCondtrategy(decimal priceToClose, Security securityToClose, PriceDirection securityDesirableDirection, decimal positionToClose)
        {
            //StrategyForTest = new PositionCloserStrategy(priceToClose, securityToClose, securityDesirableDirection, positionToClose);

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