Support Board
Date/Time: Sat, 01 Mar 2025 13:26:56 +0000
Post From: How to count bars between 8.30 and 9.30 for last 3 days
[2021-09-30 15:03:21] |
User99735 - Posts: 234 |
With sc.AutoLoop set to 1, the above code will loop set through all the bars between 0, and current bar sc.Index, for each bar. So the loop for (int i = sc.Index; i >= 0; i--) can be removed along with suitable changes to the // Counting bars in session if check. With sc.AutoLook set to 0, code looks fine. |