Incorrect Margin Per Lot

 

I have a script that prints the margin per lot:

double marginPerLot = MarketInfo(symbol, MODE_MARGINREQUIRED);

On GER40, it gives me 629.75€.

When I open one lot, the actual margin used is 943.40€.

Has anyone encountered this issue? And is there a workaround to get the correct value?

 
OliverTT:

I have a script that prints the margin per lot:

double marginPerLot = MarketInfo(symbol, MODE_MARGINREQUIRED);

On GER40, it gives me 629.75€.

When I open one lot, the actual margin used is 943.40€.

Has anyone encountered this issue? And is there a workaround to get the correct value?

It is set by your broker, you will need to discuss it with them.