Support Board
Date/Time: Wed, 08 Oct 2025 08:19:32 +0000
Post From: Advice for ACSIL bot guards/checks
[2025-10-06 19:42:28] |
ForgivingComputers.com - Posts: 1138 |
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 |