How to make trading and profit and loss account from trial balance

Just a few tweak here and there is what I need from you. There are a lot of modifications of this indicator for mt3 and mt4 as well. But original idea came from here - see image attached. It uses EMA 34 with an angle threshold of. 2 to.