Background
I use various Offline charts on MT4.
These charts are created by placing an EA or Indicator onto an M1 host chart in order to create the offline charts.
and VOLUME from the host chart and because these offline charts span variable M1 bars this makes the second count inaccurate. This means that when a new offline bar currently forms it simply looks to the current M1 bar and starts the Time count from that point, which could be between 0 - 59 seconds into the bar !
Because it is not possible to change the way the offline bars are created I require a simple indicator to resolve this issue.
Requirements
I require a simple indicator to run on the offline chart that can detect when a NEW OFFLINE BAR starts:-
Indicator - Second count - Accurately record the number of SECONDS of each offline bar from the time the bar appears on the offline chart to the time the bar closes on the offline chart. IT MUST START FROM 0 SECONDS AND NOT USE THE LATEST SECOND COUNT FROM THE HOST CHART.
The indicator should plot the recorded data onto a simple histogram and the data should be available in a buffer.
Other features:-
Instance ID - ability for multiple copies to be added to a chart.
This of course means that the indicator can only record live data and should not attempt to draw any history when added to the chart because it will undoubtedly be inaccurate.
Many thanks for your interest, speed is of the essence.