Exemplo n.º 1
0
 public void mMtApiClient_QuoteRemoved(object sender, Mt5QuoteEventArgs e, MtApi5Client mt)
 {
     if (mapQuotes.Keys.Contains(e.Quote.Instrument))
     {
         mapQuotes.Remove(e.Quote.Instrument);
     }
 }
Exemplo n.º 2
0
        public void mMtApiClient_QuoteUpdate(object sender, Mt5QuoteEventArgs e, MtApi5Client mt)
        {
            if (!mapHistoryQuotes.Keys.Contains(e.Quote.Instrument))
            {
                mapHistoryQuotes.Add(e.Quote.Instrument, new List <Mt5Quote>());
            }
            mapHistoryQuotes[e.Quote.Instrument].Add(e.Quote);

            var dig = mt.SymbolInfoInteger(e.Quote.Instrument, ENUM_SYMBOL_INFO_INTEGER.SYMBOL_SPREAD_FLOAT);

            if (null == s)
            {
                s = new SymbolInfo(e.Quote.Instrument, mt);
            }


            Console.WriteLine(s.stringSymbolInfo.PAGE);
        }
Exemplo n.º 3
0
 private void mMtApiClient_QuoteAdded(object sender, Mt5QuoteEventArgs e)
 {
     RunOnUiThread <Mt5Quote>(AddQuote, e.Quote);
 }
Exemplo n.º 4
0
 public void mMtApiClient_QuoteAdded(object sender, Mt5QuoteEventArgs e, MtApi5Client mt)
 {
 }
Exemplo n.º 5
0
 private void mMtApiClient_QuoteRemoved(object sender, Mt5QuoteEventArgs e)
 {
     runOnUIThread <Mt5Quote>(RemoveQuote, e.Quote);
 }
Exemplo n.º 6
0
        void apiClient_QuoteAdded(object sender, Mt5QuoteEventArgs e)
        {
            Mt5QuoteAdapter quoteAdapter = new Mt5QuoteAdapter(e.Quote);

            QuoteAdded.FireEvent(this, new QuoteEventArgs(quoteAdapter));
        }
Exemplo n.º 7
0
 private void mMtApiClient_QuoteUpdate(object sender, Mt5QuoteEventArgs e)
 {
     policyInterface.mMtApiClient_QuoteUpdate(sender, e, mt);
 }