// -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;
        }
Пример #2
0
        // -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;
 }
Пример #4
0
 public MarketTrend(ExchangeInformation _exchangeInformation)
 {
     exchangeInformation = _exchangeInformation;
     exchangeInformation.DataConstatntParametrUpdate += exchangeInformation_DataConstatntParametrUpdate;
 }
Пример #5
0
        bool session_check           = false; // только сделки основной сессии

        public SpeedTradesAverage(ExchangeInformation _exchangeInformation)
        {
            exchangeInformation = _exchangeInformation;
        }
Пример #6
0
        const int countSpeedList    = 25; // количество периодов для средней

        // Constructor
        public SpeedTick(ExchangeInformation _exchangeInformation)
        {
            exchangeInformation = _exchangeInformation;
        }
Пример #7
0
        List <double> speedList;                        // для расчета средней

        public SpeedTradesTick(ExchangeInformation _exchangeInformation)
        {
            exchangeInformation = _exchangeInformation;
            speedList           = new List <double>();
        }