Difference between MODE_MARGININIT and MODE_MARGINREQUIRED?

 

Good afternoon,

I hope you are fine. I was wandering of someone could please explain the difference between these two values...

MODE_MARGININIT     => Initial margin requirements for 1 lot
MODE_MARGINREQUIRED => Free margin required to open 1 lot for buying

I can see their values are different. If MODE_MARGINREQUIRED is the free margin neccessary to trade 1lot, what is initial margin requirements?

Also, I am trying to output the maintenance margin, but the value is always zero. How can this be?

double margin_maintenance  = MarketInfo(Symbol(), MODE_MARGINMAINTENANCE);

Thanks in advance!

-A.



 

 My test results as below,I am also confused by these items.

 MarketInfo(Symbol(),MODE_MARGININIT))   //0

MarketInfo(Symbol(),MODE_MARGINMAINTENANCE)) //0

MarketInfo(Symbol(),MODE_MARGINHEDGED))  //50000 
 

What is the difference between MODE_MARGINMAINTENANCE and MODE_MARGINREQUIRED ?

Reason: