Support Board
Date/Time: Mon, 06 May 2024 04:16:32 +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: 802 |
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() |