79607102

Date: 2025-05-05 14:24:30
Score: 0.5
Natty:
Report link

time() accepts a negative bars_back argument to retrieve the UNIX time up to the 500th bar in the future. You could iterate until the expected number of bars is found:

int counter = 1
while time("", -counter) < futureTime
    counter += 1
log.info("The number of bars is: {0}", counter)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sbtnc