George Goudinakis / Publications
Forum
OrderCalcMargin() gives error - 4014: System function is not allowed to call
Could anyone shed some light on this error, I am adding an example code #property indicator_chart_window int OnInit () { double dVol = 1.0 ; double dMargin = 0.0 ; double dAsk = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); if (! OrderCalcMargin ( ORDER_TYPE_BUY , _Symbol