Login Page - Create Account

Support Board


Date/Time: Wed, 02 Jul 2025 05:22:50 +0000



Post From: Acsil SCDateTime

[2023-03-04 22:27:30]
ondafringe - Posts: 325
Change this:

SCDateTime BarDateTime = sc.BaseDateTimeIn;

To this:

SCDateTime BarDateTime = sc.BaseDateTimeIn[sc.Index];

But you don't need the minute (depending on what you're trying to accomplish).

And your nested "if" doesn't make sense because you haven't assigned anything to those variables.

And instead of constantly checking for lows, you might want to consider only checking sc.Low at the end of the bar.
Date Time Of Last Edit: 2023-03-04 22:38:36