Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 06:51:23 +0000



Post From: Acsil SCDateTime

[2023-03-04 22:27:30]
ondafringe - Posts: 286
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