Login Page - Create Account

Support Board


Date/Time: Mon, 10 Mar 2025 20:31:32 +0000



Post From: Understanding Study/Price overlay memory usage

[2022-04-04 19:32:05]
jwick - Posts: 142
Hi ... I'm using a lot of study / price overlay studies in my chartbook (a total of 15 spread 5 each across 3 charts). The study being referenced sets values in a lot of subgraphs (42), in case that is relevant.

I'm finding the study / price overlay studies use a lot of memory. When I load the chart, they're using an additional 4 GB of memory in total (if I remove all of the study / price overlay instances, my memory usage immediately drops around 4 GB). And if I run a chart replay across all my charts, the difference in memory usage jumps to a whopping 16GB (without the study / price overlay studies, the usage after a chart replay ends roughly where it began when I loaded the chartbook - 6 GB. However, with the study / price overlay studies, the usage jumps to 20GB at the end of a chart replay).

Why would this happen? Is it expected behavior for the study / price overlay study to be memory intensive? The only studies applied in the chartbook are the study / price overlay studies and my custom study in the source chart that they reference.

Thanks!

EDIT: Additional query ... if this is expected behavior of Study / Price overlay, would using sc.GetChartBaseData() instead of Study / Price Overlay be any more memory efficient?
Date Time Of Last Edit: 2022-04-04 20:04:42