Problem with AccountMargin() - page 2

 
vfr92:

Hello angevoyageur,

it doesn't really please me that others than me had the same problem ;-)  The post of jcc on 2009.08.11 20:30 talked precisely of the problem i actually face.

Do you know a workaround that I can use to calculate the Margin without using the AccountMargin(), which is not reliable ?

We're talking here about the position sizing and the risk of the system... wich is the most important part of a system ...

Thank you for your help

Appears that this problem is Broker_Specific. Change Broker or Check for AccountMargin=0. Those are your obvious work around.

 
Right. Thank you !