Its just simply that, lol.
Example. I need to find 5% of 1000 (which I do know it's 50 in real life), but how do I calculate this math using mql4 language?
Its just simply that, lol.
Example. I need to find 5% of 1000 (which I do know it's 50 in real life), but how do I calculate this math using mql4 language?
Very simply, just multiply the number of percentages by the number you want to get the percentage from and divide by 100. If you want to store percentage the value, remeber to use double type.
In your example:
double percentage = 5 * 1000 / 100;