How do you get price for specific bars? I want to know the fastest and best way to get value of every bars?

To add comments, please log in or register
Musngi
446
Musngi  

How do you get price for specific bars? I want to know the fastest and best way to get value of every bars?

For example: I want to get Each Value of 100 bars(I mean to limit it to 100 bars then show it subwindow as indicator lines), "Previous to Current Bars". Can you please list all function/method for this kind of task. I know some of the ways don't work, and its depends on my custom indicator, that's why I'm asking if you give sample code of how to do this in every possible ways.

Drazen Penic
2768
Drazen Penic  

Did you read the documentation on the subject? You can find it here: Timeseries and Indicators Access 

Musngi
446
Musngi  
Drazen Penic:

Did you read the documentation on the subject? You can find it here: Timeseries and Indicators Access 


I read but it looks like about array data. I want to get close price for specific bars and including current bar price.

fxsaber
10294
fxsaber  
https://www.mql5.com/en/code/18305
High-performance iTimeSeries for time-sensitive applications
High-performance iTimeSeries for time-sensitive applications
  • votes: 23
  • 2017.05.16
  • nicholishen
  • www.mql5.com
One of the major issues with MQL5 was the removal of the built in time-series functions. While doing so gave programmers a more finite level of development latitude, it also slowed things down due to the necessary step of creating and destroying new memory locations every-time one needs to access some time-series data. Let's look at a popular...
Musngi
446
Musngi  
fxsaber:
https://www.mql5.com/en/code/18305


Please give me simple example code.

To add comments, please log in or register