Working on a script that uses two timeframes, ten-minute bars and daily bars. I need finer resolution than ten-minute bars for fills during back-testing.
To accomplish this, I am using minute bars as input, compressing and synching my two other bar histories, 10-minute and daily. So, trading on minute interval with decisions being made based on the two other timeframes.
When I access my synchronized ten-minute bar’s IntraDayBarNumber, the result comes back as the bar number of the minute bars, unsynchronized comes back with the expected ten-minute bar number but creates other problems.
If I want to do something at the close of the second ten-minute bar, I can’t use the synchronized bar history. Is this expected?
Workaround is to build out a list of correlations, close of bar nine = close of first ten-minute bar, etc. Is this the correct approach?
To accomplish this, I am using minute bars as input, compressing and synching my two other bar histories, 10-minute and daily. So, trading on minute interval with decisions being made based on the two other timeframes.
When I access my synchronized ten-minute bar’s IntraDayBarNumber, the result comes back as the bar number of the minute bars, unsynchronized comes back with the expected ten-minute bar number but creates other problems.
If I want to do something at the close of the second ten-minute bar, I can’t use the synchronized bar history. Is this expected?
Workaround is to build out a list of correlations, close of bar nine = close of first ten-minute bar, etc. Is this the correct approach?
Rename
Currently there are no replies yet. Please check back later.
Your Response
Post
Edit Post
Login is required