Check out these examples:
Money Fixed Margin
- www.mql5.com
An example for calculating the lot value with a fixed margin level. That is, if you specify 10%, a position with the margin equal to 10% of free margin will be opened. Input Parameters: Initial value is set to "warm up" the strategy tester. Then the remainder after devision of by (this number was chosen randomly) is calculated. It means...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello Guys,
I am a beginner in MQL5, I am still in the "testing phase", I did something very simple to start practicing, I have the following problem, I made a calculation for the batch that will be applied to each trade, I am currently testing with EUR / USD , on a demo account of 5,000, 1% risk, so in each trade there is a risk of losing $ 50, however when I take the test and the price hits stopLoss, my loss is $ 200.
Could you give me a help to find the problem and tips on how to better the logic of the code below.
Thanks.