Support Board
Date/Time: Sun, 01 Jun 2025 19:55:41 +0000
Post From: Behaviour of GetBarHasClosedStatus()
[2023-04-06 22:47:04] |
ondafringe - Posts: 322 |
Negative logic is harder to follow. So instead of checking whether the bar has NOT closed, it would be better to check whether the bar HAS closed. But... using your negative logic, here's my take: The code within your if-condition will continuously execute until you get one tick of movement after the current bar's time period has expired. At that point, the code within your else-condition will execute one time. Then the code within your if-condition will, again, continuously execute -- starting with the first tick of the new bar -- until your negative-logic if-condition returns false. Date Time Of Last Edit: 2023-04-07 00:13:05
|