Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 116

 
trader781:
I've erased this part because I'll have to do it separately.
If you need rounding to the nearest integer, there is a standard function.

MathRound()

 
trader781:

how to do it:

let's say I have an account balance of 5800

if (5800)\2000= ( in this case it should come out 2, all fractions are discarded, we need this processing function)

as well as 1800\2000=1

UseMathCeil()

double res = MathCeil(5800/2000);
if(res==0) res=1;
Comment( res );
 
Vitaly Muzichenko:

Use MathCeil()

double res = MathCeil(5800/2000);
if(res==0) res=1;
Comment( res );
Found it, thanks.
 

Guys, please help, explain!!!

How in the standard Moving Average indicator can I add a sound when the indicator crosses a horizon line which can be added with the settings?

 
Rustam Bikbulatov:

Guys, please help, explain!!!

How in the standard Moving Average indicator can I add a sound when the indicator crosses a horizon line which can be added with the settings?

In the standard one, you can't.
 
Artyom Trishkin:
Not in the standard one.
Is it possible to add such a function to the code? And if so, which one?
 
Rustam Bikbulatov:
Can such a function be added to the code? And if so, which one?
To write an indicator based on a standard MA
 
Artyom Trishkin:
To write an indicator based on a standard MA
can you help?
 
Rustam Bikbulatov:
can you help?
Start writing. What doesn't work - ask - we can help.

Or do you want us to do it for you?
 
Artyom Trishkin:
Start writing. What doesn't work - ask - we'll help.

Or do I have to do it for you?
Will I have to pay for it?