Support Board
Date/Time: Fri, 29 Nov 2024 06:52:16 +0000
Post From: Acsil SCDateTime
[2023-03-05 00:06:07] |
ondafringe - Posts: 286 |
From my perspective, your study is already looping on every tick, so no need to add another loop (assuming that's what you meant). If you want to find the lowest low between 0000 (midnight) and 0930, and if you want to check the low at the end of every bar, and you want it to stop at 0930, you are going to have to use bars that are 1 minute or less in duration. You could create a global bool and set it to true. At the end of every bar, check that bool is true and hour is less than 10. If so, check the low. Then, at 0930, set the bool to false. Edit: If you want to check the lows from one time to another, say, from 2000 to 0930, one way of doing it: Create a global bool and initialize it to false. Create a global float to hold the lowest low and initialize it to 999999. Set up three conditionals: if/else-if/else-if If the hour and minute equals 2000, set the bool to true. Else-If the hour and minute equals 0930, set the bool to false and reset the float to 999999. Else-If the bool is true, check the low. Date Time Of Last Edit: 2023-03-05 16:18:36
|