Support Board
Date/Time: Sun, 15 Jun 2025 16:51:18 +0000
Post From: ACSIL: Issue Setting Volume By Price Study Start Date/Time (Mode 5) Programmatically
[2025-05-29 19:27:55] |
TB7000 - Posts: 19 |
Thank you for that answer. I did see that part of the documentation with a complete DateTime setting and did try different configurations using sc.SetChartStudyInputFloat(). Using Graph Period Type 5 (From Start Date-Time To End), I have two parameters to set: Start Date AND Start Time. When attempting to configure these, I was getting completely unexpected anchor points for the target VbP Study. After trying many different combinations and experiments, I am now doing the following: - I MUST set the Start Date Parameter to 0 (using sc.SetChartStudyInputInt). - THEN I set the Full DateTime into the Start Time Parameter (using sc.SetChartStudyInputFloat). This method is somewhat unexpected for me. At most, I would understand that programmatically one may only have to set the complete DateTime parameter directly into a single setting (e.g., the Time Parameter). However, what confuses me most is that to achieve this, I HAVE to first set the Date parameter to 0 and then populate the Time Parameter with the full DateTime value. All other combinations do not lead to the desired result. I'm still thinking that I'm not doing this properly, but at least it works for now. |