Rejoignez notre page de fans
- Vues:
- 9083
- Note:
- Publié:
- 2010.11.01 10:45
- Mise à jour:
- 2016.11.22 07:32
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
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:
- Symbol index of the "Market Watch" window
- Symbol name
- Tick Bid price.
- Symbol spread.
Launch the scOnTickMarketWatch.mq5 script to receive the ticks from "Market Watch" window.
Recommendations:
- This version of multicurrency event handler uses a lot of resources. The CPU usage can be decreased by increasing the delay variable of the script, but you can skip some ticks.
- After launch of the script and Expert Advisor you can specify the symbols by adding them in "Market Watch" window.
- You can modify the code for your needs, for example, you can configure it to receive the Ask price instead of spread.
P.S. It has been published at Russian forum.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/209
![Adaptive Moving Average with Bollinger Bands ®](https://c.mql5.com/i/code/indicator.png)
The indicator shows the trend and allows to see a price range.
![i-OrdersMQL5](https://c.mql5.com/i/code/indicator.png)
The indicator shows deals history on the chart.
![CIniFile class](https://c.mql5.com/i/code/library.png)
This class provides methods for working with Windows *.ini files.
![20/200 pips - Simple profitable Expert Advisor](https://c.mql5.com/i/code/expert.png)
It has simple code and trading rules. It's doesn't use any martingale MM strategies.