Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 13:36:59 +0000



Post From: ACSIL GetStudyPeakValleyLine results don't update when profile is moved

[2023-04-28 00:33:26]
User145575 - Posts: 20
Hello, I'm working on a study that takes as an input the studyId of a user drawn volume profile. On certain events it loops through and gets that VP's peaks/valleys and performs some calculations from them. On other events, the study moves the profile (let's say for example it drags the "end time" of the profile forward on a new high in price) using SetChartStudyInputFloat etc. (this works--I see the profile move to the new location). After moving the profile, it re-fetches the peaks/valleys by looping through and calling GetStudyPeakValleyLine() as before. Unfortunately, it is returning the same peaks/valleys as the first time, as if the internal representation in ACSIL didn't change. Even though graphically I see that the peaks/valleys have updated on the chart.

An interesting thing is, I had a very similar study maybe 2 years ago, and I'm pretty sure it worked then -- my study could drag the VP around and get the updated peaks/valleys. But my new study -- and a recompiled version of that old study -- both don't appear to get the updated peaks/valleys now. I have set breakpoints and stepped through and looked at the results, and I can't think of what I'm doing wrong. Do you have any advice?