How to know the size of current open trade?

 
I want to write a code like this:

1. If the current trade of EA1 is losing 30 pips. Then
2. EA2 will open a trade of the same lot size to balance it.

My questions is how EA2 gets the lost size of the trade in EA1.

Can anyone give me a hand? Thanks.
 

EA's can exchange values via GlobalVariableSet and Get

Reason: