23 Jul 2023, 07:07

Hi everyone,

I've been trying to find information on two specific topics but couldn't locate any relevant blocks.

Rounding a variable:
I'm interested in rounding a number stored in a variable. Is it possible to achieve this using custom MQL code, or are there other ways to do it?

Performing remainder division in custom MQL code:
I have three variables named "First," "Second," and "result." I'm trying to find a way to calculate the remainder of the division between "First" and "Second" and store the result in the "result" variable. Could someone please guide me on how to write "First % Second" in "result"?

Thank you so much for your help in advance!