Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 05:22:08 +0000



[User Discussion] - Linked Windows - Bar Period Ratio

View Count: 1113

[2014-03-14 01:13:48]
iafayte - Posts: 11
Hi

Let's say the first window is a x tick chart. The other window is a 5*x tick chart. Whenever I change the first window's period, I want the other to change to 5 times the period of the first window.

For example, Window #1 is a 100 Tick period chart. This means Window #2 is 500 Tick period. If I change Window #1 to 50 Tick, I want Window #2 to automatically change to 50*5 = 250 Tick.

Is there any way to accomplish this automatically in Sierra Chart? If not, is it possible to implement? It would be really useful for traders that look at individual stock symbols. Thanks!
Date Time Of Last Edit: 2014-03-14 01:14:27
[2014-03-15 01:42:20]
vegasfoster - Posts: 444
I may be able to do it with a custom study, I will take a look at it tomorrow. I know for a fact it will not work correctly if you are switching between renko charts and other types of charts, but it may if you are only using tick, minute, volume, or range charts.
Date Time Of Last Edit: 2014-03-15 01:43:36
[2014-03-18 23:41:15]
vegasfoster - Posts: 444
I looked at this and am having issues with how I was planning to do it, I'll keep thinking about it.
[2014-03-19 10:37:52]
tobi - Posts: 351
I think I can help you with that. Kiwi helped me with that some time back. For reference please see here:
http://www.sierrachart.com/supportboard/showthread.php?t=37404&highlight=timeframe

Please see the attached files. The attached dll is working for tick-charts and time-charts.

Copy the "linked-timeframes.dll" into your SC data folder.
Go to your Window #1 click Analysis >> Studies >> Add Custom Study and choose "Tick charts - Master" from the "Linked-TF" study. Click Ok 2x.
Go to your Window #2 click Analysis >> Studies >> Add Custom Study and choose "Tick charts - Linked" from the "Linked-TF" study. In the study settings, choose the chart # that contains the Master-TF study and choose this study. In the "factor/fraction" field choose 5. Click Ok 2x.

Now, when the you change the tick-period in Window #1 the tick-period in Windows #2 will change accordingly.

If you want to use this on time-charts, you have to use the "Time charts - ..." studies.

I've also added a chartbook (cht-file) as an example and the cpp-file in case you want to change anything.


attachmentlinked-timeframes.dll - Attached On 2014-03-19 10:16:08 UTC - Size: 18.5 KB - 330 views
attachmentlinked-timeframes.cpp - Attached On 2014-03-19 10:16:16 UTC - Size: 3.77 KB - 429 views
Attachment Deleted.
attachmentlinked-TF.cht - Attached On 2014-03-19 10:16:28 UTC - Size: 57.59 KB - 335 views
[2014-03-20 05:00:08]
vegasfoster - Posts: 444
Thanks tobi :)

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

Login

Login Page - Create Account