당사 팬 페이지에 가입하십시오
- 조회수:
- 16492
- 평가:
- 게시됨:
- 2016.02.08 12:05
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
In some cases, it is necessary to display quotes of another financial instrument (hereinafter - the symbol) or timeframe withing the window of the current chart. An example of this necessity: searching for divergences between the quote charts of two symbols.
The solution to this problem is available in a variety of options, up to the display of the chart of a different symbol. In this case, however, it will be limited to the display of a simple line, which is one of the four characteristics of the candlestick of another symbol: the opening price, closing, high or low.
The Another_Symbol indicator displays the data of another symbol in the subwindow of the current chart. The symbol name is specified in the "Symbol" parameter. In addition, it is possible to specify the desired timeframe (the "Chart period" parameter) and the price of one of the candles (the "Price" parameter). To extend the functionality, the "Price" parameter contains options for the calculation of the average price of candles (Median), typical (Typical) and weighted (Weighted Close) prices.
A simple example of the indicator operation - display of the closing price of GBPUSD symbol on the chart of the EURUSD symbol.
The simplicity of the indicator lies in the fact that it does not synchronize the charts. Data is output by the bars indexes, not by time. That is, if for any of the bars of the current chart there is no corresponding bar of the other symbol, there the data from the adjacent (earlier of later) bar will be displayed. This problem is not relevant on the higher timeframes, as such bar gaps are rare. But on the lower timeframes, especially on the chart periods like M1, the time lag can be significant.
The result of this discrepancy is the distortion of the real appearance of the quote chart of the other symbol. For this reason, this version of the indicator is more suitable for the timeframes in which the bar gaps almost never happen: M30 or higher.
The flip side of the problem is the advantage: it is possible to display the M15 or even the M5 chart on the H1 chart.
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/14479
![TEMA_Custom](https://c.mql5.com/i/code/indicator.png)
Triple Exponential Moving Average with customizable parameters.
![Regression Сhannel](https://c.mql5.com/i/code/indicator.png)
The channel indicator plots a linear regression channel.
![UP bot 1](https://c.mql5.com/i/code/expert.png)
A simple Expert Advisor, which works without the use of any indicators. Enters at trend reversal attempt.
![Trade when the market is closed](https://c.mql5.com/i/code/script.png)
The script is designed to place orders at the time when it is not possible, for example, when the market is closed.