Download MetaTrader 5
To add comments, please log in or register
Having questions? Ask them on the Forum - traders will help you!
Automated-Trading
Admin
97411
Automated-Trading 2010.11.01 10:45 

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

Franco
374
Franco 2010.12.05 21:36  
Will this solve the problem of multi currency expert advisors that give different results on different pairs ?
/
To add comments, please log in or register