How can I get the margin requirement of the symbol?

 

This function does return zero only

SymbolInfoDouble(_Symbol, SYMBOL_MARGIN_INITIAL)


Using the class CSymbolInfo does not work either

#include <Trade\SymbolInfo.mqh>
CSymbolInfo simbolo;

void OnStart()
{
   simbolo.Name(_Symbol);
   simbolo.Refresh();

   Print( "Initial margin: ", simbolo.MarginInitial() );
}


Does anyone know a solution for this? Thanks

 
(bug?) SYMBOL_MARGIN_INITIAL = 0.0
(bug?) SYMBOL_MARGIN_INITIAL = 0.0
  • 2012.08.12
  • www.mql5.com
Hello MetaQuotes, I have checked SYMBOL_MARGIN_INITIAL value on several symbols and every time it returns 0.0...
 

Ah, forgot to mention that I tried OrderCalcMargin() with no success.