Ejemplo n.º 1
0
 public MiniLLStrategy(bool isDirectionBuy, StrategyTrade curStrategyTrade, Action gSave, InvokePrint print, Action onStop)
 {
     IsDirectionBuy   = isDirectionBuy;
     CurStrategyTrade = curStrategyTrade;
     GSave            = gSave;
     Print            = print;
     OnStop           = onStop;
 }
Ejemplo n.º 2
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
            };
        }
Ejemplo n.º 3
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;
        }