Functions accepting variable periods

The following functions support variable periods (where periods parameter can be array and change from bar to bar):