How to show gain/loss on the chart?

 

How to use MQL5 to show the current trading symbol and trading cycle and the total gain and loss on the chart like the attached picture?

Thanks.

Files:
 
Alen Chang :

How to use MQL5 to show the current trading symbol and trading cycle and the total gain and loss on the chart like the attached picture ?

Thanks.

Try this code: Profit of the current symbol 2