Download MetaTrader 5
To add comments, please log in or register
Do you want to become a well-known developer? Execute the orders of traders in the Freelance service!
Point Zero
839
Point Zero 2014.04.27 16:37 

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.



Ziheng Zhuang
1389
Ziheng Zhuang 2014.06.09 05:42  

 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 
Ziheng Zhuang
1389
Ziheng Zhuang 2014.08.15 07:53  

What is the difference between MODE_MARGINMAINTENANCE and MODE_MARGINREQUIRED ?

/
To add comments, please log in or register