Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 13:26:21 +0000



[Programming Help] - Any trick to charting 2 studies in the same Chart Region with both being Zero Centered?

View Count: 295

[2023-11-23 04:28:36]
gjockey - Posts: 48
Hello, I'm trying to chart 2 different studies that have very different Y axis values (Study 1 in the millions and study 2 in the single digits) in the same chart region with both studies being "Zero centered". The issue is that the first study in the millions is setting the vertical scale in the millions causing the 2nd study to always appear as a flat line. When setting the scale of the 2nd study, I would like to be able to set it as both "Automatic Zero Centered" AND "Independent" but there is no way to select both. I'm hoping to see if there is a possible workaround to this. Thanks.
[2023-11-23 09:23:25]
funbun - Posts: 90
First I would enable the left scale on the chart. Chart Settings -> Scale -> Use Left Side Scale
Then, I would set the scale of the study to use left scale. Studies -> Choose study -> Scale -> Use In Left Side Scale.
and Scale Range -> Independent.

Now I would set the left scale to "Interactive Scale Range" so that you can compress the study to your liking using mouse click drags.
In order to move the compressed study up and down use Shift+Mouse movement.

If the added studies are pretty static on the chart and you don't really need to move them around after the previous setting, you can turn back off the Left Scale on the chart to save space. It won't affect the studies scaling.

Hope it helps your case
Date Time Of Last Edit: 2023-11-23 09:26:50
[2023-11-23 13:57:42]
User584084 - Posts: 262
You can also look at the "Study Subgraph Divide" and "Study Subgraph Multiply" studies. Change Based On: <Main Price Graph> to Study 1 or 2 and then Divide or Multiply the Input Data by the amount needed. Chart the studies in same region.
Date Time Of Last Edit: 2023-11-23 13:59:47

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

Login

Login Page - Create Account