What is the value return by OrderCalcMargin() true or false ? If false what is the error ?
If true, where is placed this code, which broker-server ?
function return true. i m trying Alpari-Demo server and i think the problem is caused Alpari-Demo server. Because another server in metatrader5 result is different
Thank you for your information (If true, where is placed this code, which broker-server ?)
I still get true and 0.01 USD in Alpari-Ltd-Demo Server (XAUUSD). My code is placed in My EA's OnTick() function
Print(status+" - "+CalcMargin);
result : "true - 0.01"