new quote

Sep 21, 2012 at 10:54 AM


Could you pls clarify how do my .net app get known that new quote has arrived ? Is there any "on quote" mechanism or it has to be constantly scanned for changes?


Sep 21, 2012 at 1:40 PM
Edited Sep 21, 2012 at 1:51 PM


Architecturally .NET ExpertAdvisor (class TradePlatform.MT4.SDK.ExpertAdvisor) acts in same way like MQL script. it has 3 access point: init(), start(), deinit(). start() actually called when new tick arrives (means "on quote").

To complete scenario you described, you need create class, inherit one from ExpertAdvisor abstraction and implement some kind of notification for you application in start() method. Notification can be done via WCF, REST, TCP, C# code, whatever is more relevant for your case. Assembly with ExpertAdvisor implementation should be placed in Gateway.exe directory.

Please also check Documentation and Samples

In further releases we will introduce better integration mechanism with other applications.

Thank you for your interest to the project.

Oct 29, 2012 at 10:54 AM

you can gain that in TradePlatform.NET 2.0



terminalA = Bridge.GetTerminal(727272, "EURUSD");
terminalA.QuoteRecieved += terminalA_QuoteRecieved;

private void terminalA_QuoteRecieved(MqlHandler mql)
            double bid = mql.Bid();
            double ask = mql.Ask();

            this.BeginInvoke((MethodInvoker) (() => labelBid.Text = bid.ToString()));
            this.BeginInvoke((MethodInvoker) (() => lableAsk.Text = ask.ToString()));

More samples under source control