Controlling risk management while backtesting in PI

Risk Management

How to set the risk management in the platform and placing checks like ?

a) Controlling RPT(Risk per trade)

b) Allocation of instruments

c) Testing multiple instruments while doing backtest using PI

d) Stop algorithm if equity falls below a particular limit and setting an upper limit as well as lower limit 

One can not do it in Pi using existing tools,you can refer to some third party services or one has to code on his own and test.