Login Page - Create Account

Support Board


Date/Time: Thu, 23 May 2024 16:53:02 +0000



Post From: GetVolumeAtPriceDataForStudyProfile Index Value During Replay

[2021-03-09 02:34:42]
yellowandy - Posts: 20
Hi, I have a custom study that is leveraging the volume profiles which are set to a fixed amount of time (1 day). I'm able to access all the data I need from the profile but what I noticed is that when my study is recalculated or loaded I'm never able to access the profile for the current index while it's looping. I specify "0" for the current profile assuming that during the recalculation it would always point to the latest profile at that point in time. Instead it seams as though all of the volume profiles are first calculated and drawn, then my custom study is initiated and looped through and is then always pointing to the very last profile. I am using auto looping and have set the MaintainVolumeAtPriceData flag to true. With GetStudyPeakValleyLine you can pass in -1 to indicate to use the latest one, is there an equivalent for GetNumPriceLevelsForStudyProfile and GetVolumeAtPriceDataForStudyProfile? The docs state it has to be a positive index >= 0;