public MiniLLStrategy(bool isDirectionBuy, StrategyTrade curStrategyTrade, Action gSave, InvokePrint print, Action onStop) { IsDirectionBuy = isDirectionBuy; CurStrategyTrade = curStrategyTrade; GSave = gSave; Print = print; OnStop = onStop; }
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 }; }
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; }