Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

BarDuration - indicator for MetaTrader 5

Stanislav Korotky
Stanislav Korotky
Trading is just my hobby. I'm working in IT industry. So developement of experts, indicators, and script is not a problem at all to me. Wide range of technologies are used: MQL4, MQL5, system and applied programming, web-services, neural networks and more.
New:
| English Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
Views:
4436
Rating:
(5)
Published:
BarDuration.mq5 (4.53 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This indicator displays a subwindow with histogram of custom bars' durations in minutes. It's applicable for renko boxes, PnF, equivolume bars, and other custom charts, where bar durations are variable, as opposed to standard charts based on timeframes.

Please note that MT5 does not support charts with variable timeframes, so the custom representation, such as renko or equivolume, is emulated by standard charts anyway, and usually uses M1 timeframe, because it's the smallest available timeframe and it provides highest possible accuracy of bar alignment on time axis.

Using this indicator on a regular chart makes small sense, because it'll show vertical columns of the same height for all bars.

Inputs

  • Directional - a boolean option to show signed or unsigned histogram; by default, it's false (unsigned) and all values are absolute; if direction is enabled (true) - the values are positive or negative depending from price change on corresponding bar;


Bar Duration indicator on a renko chart


MeanReversionTrendEA MeanReversionTrendEA

The EA automatically trades based on trend and mean reversion signals with validated parameters.

JSON JSON

Serialization and deserialization of the JSON format

Supertrend Supertrend

A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.

Introsort (Introspective sort) using Function Pointers Introsort (Introspective sort) using Function Pointers

A hybrid sorting algorithm that provide fast performance for sorting arrays of simple types, structures or object pointers.