about taking previous candle information in backtesting

how to take previous candle information in backtesting in pi?
and how to use supertrend indicator?