How to plot the sum of open position sizes on chart ?

 

I am trying to create a simple mt5 indicator which plot the sum of the all open positions on chart ,

for example if there is 3 open positions with 0.5 lot size, it must print "1.5 lot" on chart .

can somebody help me please ?

 
Vahid K:

I am trying to create a simple mt5 indicator which plot the sum of the all open positions on chart ,

for example if there is 3 open positions with 0.5 lot size, it must print "1.5 lot" on chart .

can somebody help me please ?

Example:  Opened Positions:

Opened Positions

 
Vladimir Karputov:

Example:  Opened Positions:

Thank you so much 

Reason: