-Aleks-: So, you put the data in the graphic buffer, not on the print. Determine the date from which you want the histogram to be plotted and put the data there.
That's the difficulty.
I printed it out to make it clear that I am getting the data from the file in general.
I can't figure out how to assign them to the relevant dates.
Thank you, I'm pulling the date and the value separately.
Now how do I fill the buffer with this?
Range_Buffer[i]=значение//???
It has to be in a loop. The while loop in the for loop is a waste of time. We have to read one line, pull the date and the value and work with them. Find the number of bar by time and put the value there. And only after that move on to the next entry.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello.
Please help me to display data from a file as a histogram.
In the file "file.txt" a date corresponds to a number, like this:
29.03.2017. 574391
30.03.2017. 741308
31.03.2017. 614367
I get data from file and print it out, like this:
Histogram by bar size to make it look like an indicator )
So, you put the data in the graphic buffer, not on the print. Determine the date from which you want the histogram to be plotted and put the data there.
That's the difficulty.
I printed it out to make it clear that I am getting the data from the file in general.
I can't figure out how to assign them to the relevant dates.
That's the difficulty.
I printed it out to make it clear that I am getting the data from the file in general.
I can't figure out how to assign them to the relevant dates.
Take the date from the file, find the bar number from the date and draw into it...
How exactly do you do this?
Show me please.
How exactly do you do this?
Please show me.
Use string functions. In particular
pull 10 characters from the zero position and convert the string to a date.
But if there is no bar open time in the string, histograms will not be on every bar if we run it on a chart other than D1.
Please help me to write a function for calculating the number of bars starting from the bar where the order was opened.
For example: If we have an open order on bar 5, the function should return 5.
My friends, please help me to write a function to calculate the number of bars starting from the bar where the order was opened.
For example: If we have an open order on bar 5, the function should return 5.
Use string functions. In particular
pull 10 characters from the zero position and convert the string to a date.
But if there is no bar open time in the string, the histogram will not be on every bar if I run it on a chart other than D1.
Thank you, I'm pulling the date and the value separately.
Now how do I fill the buffer with this?
Thank you, I'm pulling the date and the value separately.
Now how do I fill the buffer with this?
Range_Buffer[i]=значение//???It has to be in a loop. The while loop in the for loop is a waste of time. We have to read one line, pull the date and the value and work with them. Find the number of bar by time and put the value there. And only after that move on to the next entry.
That's the difficulty.
I printed it out to make it clear that I am getting the data from the file in general.
I can't figure out how to assign them to the relevant dates.