Support Board
Date/Time: Mon, 03 Feb 2025 02:22:13 +0000
Post From: How to set the time for the past 10 minutes to use sc.GetOHLCOfTimePeriod
[2019-10-18 12:33:41] |
User907968 - Posts: 825 |
You can simplify quite a lot enddatetime = sc.BaseDateTimeIn[sc.Index]; startdatetime = enddatetime - (10 * MINUTES); or if your chart is a time based and the period is a divisor of 10, and you only want the high and low, you could also use these functions - sc.GetHighest() sc.GetLowest() |