Join our fan page
- Views:
- 1931
- Rating:
- Published:
- 2025.02.12 18:56
- Updated:
- 2025.02.19 09:51
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The following code is deceptively simple and straightforward.
And yet it is also quite useful, especially if you would like to know how many bars are on your chart.
This is always going to be equal to or less than any constraint you have specified through Tools/Options/Charts and Max Bars in Chart, of course, and dependent on the data either downloaded from your broker, or uploaded by you, using a custom symbol, for instance.
I use the built-in iBars function in this instance. All you do is drag the script onto the chart, and look in the experts tab of the Toolbox.
You can also look at the top left corner of the chart window because I added a Comment line

An indicator which visualizes how volume changes over time within each bar. It shows tick volume in a rolling histogram format.

This Script & EA enables coders to backtest their news based strategies which use the MQL5 Calendar.

PrintXYZ() library to print massive information from the terminal.

A simple starting-point script to collect data and send to a CSV in oldest-newest ordering. In this example only the close price data is collected.