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

Ticks indicator - MetaTrader 5용 지표

게시자:
fxsaber
조회수:
9970
평가:
(39)
게시됨:
2017.01.18 10:06
\MQL5\Include\
EventBase.mqh (3.17 KB) 조회
\MQL5\Include\fxsaber\
Pointer.mqh (0.63 KB) 조회
\MQL5\Include\fxsaber\ChartObjects\
Resource.mqh (0.51 KB) 조회
\MQL5\Include\fxsaber\ChartObjects\Ticks\
Bar.mqh (2.25 KB) 조회
Bars.mqh (4.3 KB) 조회
Tick.mqh (0.66 KB) 조회
\MQL5\Indicators\fxsaber\
Ticks.mq5 (1.34 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Differs from other tick indicators in that it shows the history on the main chart directly over the bars. The "spread" history is clearly visible, as well as formation process of each bar. Visually shows the formation of the current real-time bar.

Example of the Ticks indicator operation

Warning

As the indicator shows the price tick history for all time interval visible on the chart, the number of ticks for visualization may count up to hundreds of thousands and millions. Such heavy load causes the indicator to work slowly. For example, at the minimum scale on the H1, the visible interval may reach several months. The indicator will work very slowly, in order to load and display many millions of ticks.

If you are going to monitor ticks, it is logical to use a small TF (up to M5) and a large scale, in order to be able to see the price history in details (as in the figure above).

The indicator was taken from the blog and slightly modified — it had array overflows. Added (several lines) filling the area between the corresponding LowAsk and HighBid. Much of the excess was removed from the original — OOP construction of the indicator and unused mqh-files.

It is surprisingly (has no indicator buffers at all) stable.

Its design is far from optimal. Apparently, this is due to the fact that many bugs in the CopyTicks function had not been fixed yet at the time it was written. However, it shows the history data correctly and quite quickly (there is room for increasing the speed significantly).

Addressing this indicator via iCustom and IndicatorCreate is meaningless — there are no indicator buffers. It only serves for history visualization. And it is actually designed as an indicator only due to a certain coincidence of the main function — to show.

For example, the same as an EA

#property strict

#include <fxsaber\ChartObjects\ChartObjectTicks.mqh>

CHARTOBJECTTICKS ChartObject;

void OnChartEvent( const int id, const long& lparam, const double& dparam, const string& sparam )
{
  EVENTBASE::MyEvent(id, lparam, dparam, sparam);
}

void OnTick( void )
{
  if (::ChartGetInteger(0, ::CHART_FIRST_VISIBLE_BAR) <= ::ChartGetInteger(0, ::CHART_VISIBLE_BARS))
    ChartObject.Visual();
}

That is, it simply uses one of the custom types of interactive graphical objects. Therefore, paradoxically, this indicator is only formally an indicator — the technical form of MT program.

The transparency level for this object can be set in the input parameters.

The indicator is self-sufficient, it does not use standard libraries.

Making a screenshot using the terminal means is problematic — it may not match what the terminal shows.

Complies for MetaTrader 4, but of course, it does not show anything (no CopyTicks data).

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

ZigZag_OsMACandle ZigZag_OsMACandle

The ZigZag based on the OsMACandle oscillator.

ZigZag_OsMA ZigZag_OsMA

The ZigZag based on the OsMA oscillator.

TriggerLine with Arrow TriggerLine with Arrow

The Trigger Line indicator with arrows.

Tick Chart Tick Chart

The indicator displays the Ask and Bid, which are taken from the real tick history. Also, it is possible to evaluate the spread changes by visually comparing the Ask and Bid.