거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Multicurrency OnTickMarketWatch tick event handler - MetaTrader 5용 expert

조회수:
8842
평가:
(26)
게시됨:
2010.11.01 10:45
업데이트됨:
2016.11.22 07:32
\MQL5\Experts\OnTickMarketWatch\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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.

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.

Multicurrency OnTickMarketWatch() tick event handler

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/209

Adaptive Moving Average with Bollinger Bands ® Adaptive Moving Average with Bollinger Bands ®

The indicator shows the trend and allows to see a price range.

i-OrdersMQL5 i-OrdersMQL5

The indicator shows deals history on the chart.

CIniFile class CIniFile class

This class provides methods for working with Windows *.ini files.

20/200 pips - Simple profitable Expert Advisor 20/200 pips - Simple profitable Expert Advisor

It has simple code and trading rules. It's doesn't use any martingale MM strategies.