Support Board
Date/Time: Sat, 22 Nov 2025 17:16:36 +0000
Post From: Advice for ACSIL bot guards/checks
| [2025-10-06 19:42:28] |
| ForgivingComputers.com - Posts: 1170 |
|
In general, it is easier to use Index numbers than time. So if you want to reset everything on the first bar: if (sc.Index == 0)
{ // reset variables here } If you only send an order when it is the last bar, you can do: if (sc.Index < sc.ArraySize - 1)
{ // Not the last bar return; } // Enter Trades here If you want to wait for the last bar to close before sending an order: if (sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_NOT_CLOSED)
{ return; } // Last Bar has closed, ready to trade |
