How to load code and backtest

I have some codes which I have got from Internet. and I want to add these codes in Pi and backtest it.

please tell me how to do it.