Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 13:22:12 +0000



Overlay-OHLC Study question

View Count: 746

[2016-11-18 23:54:34]
Merlin - Posts: 81
Hi. I'm new to Sierra Charts, and loving it! I'm in the process of learning the software and setting up my charts. I have programmed indicators for other charting software platforms in the past, but ACSIL and C++ in general are new to me.

I'd like to have a non-time-based chart (tick or range based) of an index futures contract, and display a subgraph showing a relevant TICK index as OHLC bars beneath the main price graph, with each TICK OHLC bar lined up to the corresponding futures bar by start and end time.

At first glance, it would seem that the Overlay-OHLC study would accomplish this, using a 1-second chart of the relevant TICK index as the source chart. And it does come close! But the values this study returns are not quite correct for this purpose, because this study requires me to pick only one subgraph from the source chart - Open, High, Low or Close. The best I can do in this case is base it on the Close of each 1-second bar. But since there are multiple Tick values transmitted even within each one-second interval, it will inevitably miss some of the High and Low Tick values.

For my analysis techniques, for example looking for price/Tick divergences where price makes a higher high while Tick makes a lower high, having the correct extreme high and low values for each bar on the chart is critical.

To get correct OHLC TICK bars on my trading chart, I'd like an option for the study to work like this:
- The Open of each OHLC bar for the study would be the Open of the first relevant 1-second bar from the source (TICK) chart with the time period of each futures bar.
- The High of each OHLC bar would be the highest High of all of the source bars within the futures bar time period.
- The Low of each OHLC bar would be the lowest Low of all of the source bars within the futures bar time period.
- And the Close of each OHLC bar would be based on the Close of the last 1-second bar within the futures bar's time period.

I'm very grateful that you've supplied the C++ source for this and most other studies. Thank you! I suspect that as my ACSIL skill improves, I will be able to revise the source myself to make a version of this study that works as I describe.

But I do think that, for showing price values from one chart on another chart, what I've described is the correct way for this study to work.
So before taking on this project myself, I thought I would ask you: can Sierra Chart add an option to this study to work as described??
Thank you for considering this.

(Or is it possible that there's already a study that works as I describe, and I've just missed it??)
Date Time Of Last Edit: 2016-11-18 23:56:12
[2016-11-19 00:00:23]
Sierra Chart Engineering - Posts: 104368
We understand what you are looking for. We will see if we can update the study to accomplish this.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-11-19 00:09:42]
Merlin - Posts: 81
Great! I look forward to it.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account