free margin check
-
What is the righ way to check if free margin is enough for a trade?
I'm trying with a condition like this

but is not working.
Any help is appreciated.
-
Not sure but if you put this in a comment you will see what value is returned.
-
Unfortunately this (picture) works NOT in live test.

-
Do you mean it works on demo but not on live?
-
@MT4Nutzer said in free margin check:
Unfortunately this (picture) works NOT in live test.

Sorry for misunderstanding. I test it on demo. Trades are opende too when Free Margin < Margin in the moment of opening.
-
Your free margin will never be greater than margin
-
@jstap said in free margin check:
Your free margin will never be greater than margin
Thank you, @jstap . I will try to find a solution for this problem with Margin Level in percent as next.