Support Board
Date/Time: Thu, 28 Nov 2024 10:49:08 +0000
Post From: Automatic Scale Adjustment for a custom study
[2023-05-10 12:33:04] |
User787032 - Posts: 37 |
Hello, I have developed a custom study that plots cumulative values of calculated market values. The study works well, but I have noticed that the scale of the chart region does not adjust with the current visible study values. For example, even if the range of study values for the visible bars on the chart is from a low of 2200 to a high of 2400, the chart region scale runs from zero to 2400 (rather than from the visible low to the visible high), making the study line look flat at the top of the chart region. The scale range for the study is set to Automatic. On the chart region scale, I have checked Interactive Scale Move and Scale Range Automatic. Is there any other parameter that needs to be set to make the chart region scale adjust automatically to the visible range of the study values? I know that the scale on the Cumulative Delta Bars study automatically adjusts to the visible range of values, but I can’t see anything in the code that would influence this. Thanks in advance for any guidance. |