Expert Advisors: Multicurrency OnTickMarketWatch tick event handler

 

Multicurrency OnTickMarketWatch tick event handler:

The standard OnTick() handler allows to receive the ticks for only one symbol. For multicurrency experts you need the ticks for several symbols. In some cases it's necessary to recieve the ticks for all symbols from"Market Watch" window.

The Expert Advisor exOnTickMarketWatch.mq5 uses the standard custom event handler of OnChartEvent() function, it provides the following information:

  1. Symbol index of the "Market Watch" window
  2. Symbol name
  3. Tick Bid price.
  4. Symbol spread.
Launch the scOnTickMarketWatch.mq5 script to receive the ticks from "Market Watch" window.

Author: Константин

Multicurrency OnTickMarketWatch() tick event handler

 

By the way, you can use a similar technique for indicators, if you need ticks from several instruments.

 
A handler option without additional scripts would be interesting, otherwise you get "crutches".
 
komposter:
A handler option without additional scripts would be interesting, otherwise you get "crutches".
It depends on how you look at it. Because any custom MQL-program can be considered a "crutch" because it solves tasks that are not implemented in a standard way. The advantage of MQL5 is that it allows us to create these "crutches". By the way, it can be implemented without a script.
 
komposter:
It would be interesting to have a handler without additional scripts, otherwise you get "crutches".
This is the first thing that came to my mind.
 
Will this solve the problem of multi currency expert advisors that give different results on different pairs ?
 

IMHO With such an algorithm of the handler not only skipping of ticks is not excluded, but also repeated signals about the same ticks.

 

I was waiting for this code for a very long time. BIG THANK'S

 
jeebs # :

I was waiting for this code for a very long time. BIG THANK'S

And this was posted 13 years ago :)

 
Ahmet Metin Yilmaz #:

And this was posted 13 years ago :)

My ERROR to find on internet bro! It's solve SUPPLY and DEMAND on MULTICURENCY!!