1 second rtd data to 1,15, and 60 minute intervals

jetpack

Board Regular
Joined
Nov 4, 2010
Messages
81
I have rtd data in the following format copied at 1 sec intervals;

OpenHigh Low CLOSE
90909090
94.594.594.594.5
838371.571.5
80.580.580.580.5
67.567.567.567.5
63.573.754351.5
68.7568.754646
47.7547.7535.7535.75
5262.526.531.5
47.755335.2540

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

I need to group the data in a new sheet for each new time interval; 1,15 and 60 minutes.

The data is copied with the newest data added to a new last row.

the resulting data will be used in a dynamic chart.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
OK . . . what exactly do you need help with ?

What do you want the results to look like ?

thank you very much for being willing to have a go at this...

I need help in automating the process of finding the start and end of the intervals and copying the result to a new sheets with vba.

the results will be in this format, with the last row showing, as an example, the formulas to be used to return the values for a 1 minute(60 second) interval;
openhighlowclose
9094.526.540
A1MAX(A1:A60)MIN(A1:A60)A60

<colgroup><col><col span="2"><col></colgroup><tbody>
</tbody>

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

<tbody>
</tbody>

since the chart will be candlestick, it requires OHLC for each candle, therefore 4 values for each interval. data would need to be copied into a table, if possible, to automate the dynamic capability, or if there is a better method, better still.

don't know if it's possible to create a chart on the same sheet as each interval with vba or not?

thanks again for your time.
 
Upvote 0
g'day d'ya.

if doing it manually, I would follow the logic in the example. since the rtd is in 1 second interval, for a 1 minute conversion, I would start at A1 and evaluate 60 rows. that would give me the converted values for a 1 minute(60 second) interval. to find the 15 minute interval I would do the same except the lookup would be A1:A900, 60(seconds) x 15 minutes, etc. every iteration would be a multiple of the starting value; 60,120,180,etc.

I don't have a problem with the formulae, just not conversant in vba to automate the task to the end of the rows.

thanks so much for spending your energies to help me on this mate. really appreciate it.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,732
Members
449,333
Latest member
Adiadidas

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top