Example #1
0
        public StrategyLimit_Limit(string uniqueID) : base(uniqueID)
        {
            LParam = new InternalParamLimit_Limit();
            LState = new InternalStateLimit_Limit();

            CStrategyTrade  = new StrategyTrade(this, Print);
            CStrategyPrices = new StrategyPrices(this, Print)
            {
                OnUpdateTicker = OnUpdateTicker
            };
        }
Example #2
0
        public StrategyGrid(string uniqueID) : base(uniqueID)
        {
            LParam = new InternalStrategyParamGrid();
            LState = new InternalStrategyStateGrid();

            CStrategyTrade  = new StrategyTrade(this, Print);
            CStrategyPrices = new StrategyPrices(this, Print)
            {
                OnUpdateTicker = OnUpdateTicker
            };
        }
        public StrategyCrossMA(string uniqueID) : base(uniqueID)
        {
            LParam = new InternalStrategyParamMA();
            LState = new InternalStrategyStateMA();

            CStrategyTrade  = new StrategyTrade(this, Print);
            CStrategyPrices = new StrategyPrices(this, Print);

            CStrategyStopOrders = new StrategyStopOrders(this);
            CStrategyStopOrders.PerformedStopOrder += OnPerformedStopOrder;

            CStrategyPrices.OnUpdateCandles = OnUpdateCandles;
        }