Did you eliminate TimeFrame from your sample code? If so, it’s the cause.

By the way, skipping trades when it’s not the correct frame is expected behavior, so it’s not an error.