You can't withdraw your earnings, because we are not selling the PTMC now and your Balance value is currently approximate. We will notify you when you be able to withdraw from Agent's balance.
C# code examples including Panels as applicable to PTMC will go a long way to helping MQL4 coders transition from MQL4 to C#.
I love programming and I would love to learn how to do this as well. From my understanding, this feature is already implemented into Protrader.