// -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>();
        }