// -Constructor- public ProcessingAllTrades(IExportDDE _alltradesChannel, ExchangeInformation _exchangeInfomation) { exchangeInfomation = _exchangeInfomation; speedTrades = new SpeedTrades(exchangeInfomation); speedTick = new SpeedTick(exchangeInfomation); speedTradesTick = new SpeedTradesTick(exchangeInfomation); speedTradesAvgDayli = new SpeedTradesAverage(exchangeInfomation); marketTrend = new MarketTrend(exchangeInfomation); _alltradesChannel.LoadedLineEvent += AllTradesChannel_LoadedLineEvent; }
// -Counstructor- public AnalyticalScalperModel() { ddeInfrastructure = new DDEinfrastructure(); exchangeInfomation = new ExchangeInformation(); accountInformation = new AccountInfomation(); allTradesChannel = ddeInfrastructure.AllTradesTable; currentTableChannel = ddeInfrastructure.CurrentTable; processAllTrad = new ProcessingAllTrades(allTradesChannel, exchangeInfomation); processCurrenTable = new ProcessingCurrentTable(currentTableChannel, exchangeInfomation); }
//-Constructor- public ProcessingCurrentTable(IExportDDE _currentTableChannel, ExchangeInformation _exchangeInfomation) { exchangeInfomation = _exchangeInfomation; _currentTableChannel.LoadedLineEvent += currentTableChannel_LoadedLineEvent; }
public MarketTrend(ExchangeInformation _exchangeInformation) { exchangeInformation = _exchangeInformation; exchangeInformation.DataConstatntParametrUpdate += exchangeInformation_DataConstatntParametrUpdate; }
bool session_check = false; // только сделки основной сессии public SpeedTradesAverage(ExchangeInformation _exchangeInformation) { exchangeInformation = _exchangeInformation; }
const int countSpeedList = 25; // количество периодов для средней // Constructor public SpeedTick(ExchangeInformation _exchangeInformation) { exchangeInformation = _exchangeInformation; }
List <double> speedList; // для расчета средней public SpeedTradesTick(ExchangeInformation _exchangeInformation) { exchangeInformation = _exchangeInformation; speedList = new List <double>(); }