Looking for max account amount
-
Is there a way I can set a trade to use not more than 5% of what is on my account?
So it is looking for the Balance and then when it make trades they should be not higher than Balance * 0,05I know there is areas to set the max trade amount, but not sure where to make it check the balance and make the % part.
Any ideas?Or is this enough for doing it:
AccountBalance()*5/100 -
This calculation will give you the value of 50, which is not a lot size and can't be used directly.
Look at the money managements, there are some. I think you want to use "Freeze % of Balance", which calculates the lot size based on the broker settings... try it and look at how the value of free margin changes. Or you want to use this "Risk % of Balance", which calculates the lot size so for the given stop-loss to lose certain amount of money.
-
Or Test this to see if it works for you.
-
uchiha, you have mistake in block 5. "Global Variables in MT4" - these are not the same global variables for the expert advisor. Unfortunately they call these "global variables", hit F3 in MetaTrader and you will see where they are. On the left side of this block you should use Value -> Numeric.
-
Thanks for the tip. I'm still getting used to variables

-
But, what if I want to use the martingale strategy?
Then I can't use the freeze % balance as well? -
No, this is another way to manage volume sizes where the volume is calculated using the value of free margin. Basically, the volume size does not depend on the last trade's volume (as in Martingale), it depends on the broker settings and the money you have. But as I know that you work in Binary Options environment, I'm not sure if you can use that anyway... but you can try, I don't know what the outcome will be.