Well then you can only really use any of the fairly standard pivot line code and set the high in the calculation as the highest high in your look back period and the low as the lowest low in that period. The close will have to be the close of the last candle or whatever you set as the end of your look back period.
In my indicators that I just put in the library I use pivot levels as a gauge of market sentiment rather than targets and stops. Daily pivots are something that all traders are aware of and so may be levels that effect market movements. If you have your own minute pivot levels on minute candles then they may just end up being lines in the sand but then I don’t know what your intention is for them.