How to square-off all automatically while profit crosses defined amount??

Can Algo be created only for risk management? Auto square-off with defined amount,Either profit or loss.
And also auto square off position by 3:15pm, instead of getting charged from brokers for not Squaring-off.

Thank you

which platform you are using? if you want to customize or set trading rules you should build custom application using programming.

I generally use algoniti which may help you to enter and exit. Based on price you can enter any stock and exit with profit/loss automatically also at whatever time you set like 3:15.

Its not recommended to use third party softwares for trade execution.