Historical data
Your point 2. is an answer to your question 1. If you choose an indicator to get history data, rates_total gives you the count of bar in the current chart, and high[] returns the high of each of these bars.
I want to program a screener which does not use the OnCalculate function since I want to go through all entries in the market watch list and evaluate each symbol individually.
For this evaluation I need all available data for high[] and rates_array[]. However I don't know how to get all data hence my idea was to check how OnCalculate does it.
- www.mql5.com
I want to program a screener which does not use the OnCalculate function since I want to go through all entries in the market watch list and evaluate each symbol individually.
For this evaluation I need all available data for high[] and rates_array[]. However I don't know how to get all data hence my idea was to check how OnCalculate does it.
Hi,
two questions on history data:
1) I would like to get all available history data and highest bar prices for the selected symbol. For this I want to use the functions CopyRates and CopyHigh. However, as I don't know how many data is available I don't know how to specify the "count" parameter in these functions:
"0" as value doesn't also seem to work.
2) In many indicators you find the function:
How is this function invoked from the event handler, e.g. which values are passed in particular for "rates_total" and the array "high" (and what size does high has?) ?
Regards,
Chris