MODE_MARGINREQUIRED expanded version

Hi , can somebody please tell me the expanded version of the function , that is how it is calculated:

MarketInfo(Symbol(),MODE_MARGINREQUIRED)

So that i can rebuild it myself and check it.

I don't know whether it is just me, but I don't understand what you are asking for.
How the margin required is calculated for the symbol and then make his own version of marketinfo.