public override MarketEnteringComponentResult CanEnter(ITradingObject tradingObject)
        {
            var result = new MarketEnteringComponentResult();

            if (MetricBooleanExpression.IsTrue(tradingObject))
            {
                result.Comments = MetricBooleanExpression.GetInstantializedExpression(tradingObject);
                result.CanEnter = true;
            }

            return(result);
        }
Exemple #2
0
        public override MarketEnteringComponentResult CanEnter(ITradingObject tradingObject)
        {
            var result = new MarketEnteringComponentResult();

            var boardIndexTradingObject = Context.GetBoardIndexTradingObject(tradingObject);

            if (boardIndexTradingObject != null)
            {
                if (MetricBooleanExpression.IsTrue(boardIndexTradingObject))
                {
                    result.Comments = MetricBooleanExpression.GetInstantializedExpression(boardIndexTradingObject);
                    result.CanEnter = true;
                }
            }
            return(result);
        }