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

Monitoring-Spread - MetaTrader 4용 지표

조회수:
48116
평가:
(33)
게시됨:
2009.11.12 09:53
업데이트됨:
2016.11.22 07:32
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Description:

Indicator shows a histogram (the idea is not mine) with minimal (red), average (green) and maximal (blue) spread values on the corresponding bars.

Such monitoring is very useful for broker's spread compare and for spread dynamics analysis.

Image:


Fig 1. Indicator's work for real and synthetic currency pairs. Broker X.


The information collected doesn't lost after the indicator's delete and can be shown again after attaching to the chart.

Also indicator has a feature to visualize a spread for synthetic currency pairs.



Fig 2. Indicator's work for real and synthetic currency pairs. Broker Y.

Recommendations:

To use synthetic currency pairs, do the following steps:

  • Run the attached EXP_Monitoring-Synthetic expert on a real pair (as synthetics). It is necessary specify the currency (Currency property), which will be used for the synthetic pair calculation;
  • Open the offline-chart for the constructed (XXXYYY_ZZZ) synthetic pair (chart will be updated automatically with the any new bar);
  • Attach the IND_Monitoring-Spread indicator to the opened offline-chart;

On the figures presented above on the right side there is a synthetic pairs EURCAD (through USD, using the EURUSD and USDCAD) and GBPJPY (through EUR, using the EURGBP and EURJPY).

On each of these pairs the IND_Monitoring-Spread indicator shows spread dynamics of the corresponding synthetic pair. For the strategy testing of the synthetic paris there is an opportunity to use them in the Strategy Tester, as real. So the generated historical data and spread characteristics of the synthetic pairs can be used further.

The expert EXP_Monitoring-Synthetic is an expert of loopback type, so it can be run as a script (when you close the terminal script is automatically removed from the chart). Also, as the indicator above, the expert does not lose the collected historical data of synthetic pairs.

The proposed code can be modified to perform a real time update of the offline-chart, but it would require a more computing resources than for the current version, which updates occurs with a new bar. Note that for auto-update of the offline charts you should allow DLL use in your client terminal.


Editor's remark:

Note that it's a mirror translation of the original Russian version.

If you have any questions to the author, suggestions or comments, it's better to post them there.

If you have found this code useful for trading or educational purposes, don't forget to thank author.

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

StatementToGraph StatementToGraph

Graphic displaying of the statement, carring of a data from the *.htm table to the graph, for the convenience of analysis.

LineMA LineMA

Indicator shows color lines between two MA crosses

MACD-STOCH Trader MACD-STOCH Trader

EA based on MACD and STOCH. It will be helpful, if you test this EA with other currencies and report me, thx.

Balance. A brief information about balance and positons Balance. A brief information about balance and positons

The indicator shows current balance and positions on the chart