Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1109
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
Then I won't get a fractional number.
You probably need something like that:
typename(TralingStop)=="double" ? ...
typename(TralingStop)=="double" ?
Not exactly, if you entered "input" in the input parameters, for example 15 or 15.0, then display just 15 in the input field, i.e. an integer. If you entered 12.3 in the input parameters, display 12.3 in the input field
Not exactly, if you entered "input" in the input parameters, for example 15 or 15.0, then display just 15 in the input field, i.e. an integer. If you entered 12.3 in the input parameters, display 12.3 in the input field.
Well then it's a matter of determining the number of decimal places of any number. There was a topic like this somewhere - it was discussed there.
Well then it's about determining the number of decimal places of any number. There was a topic like this somewhere - it was discussed there.
I think there was one, but I couldn't find it, so I wrote it here (
Not exactly, if you entered "input" in the input parameters, for example 15 or 15.0, then display just 15 in the input field, i.e. an integer. If you entered 12.3 in the input parameters, then the input field should display 12.3.
Experiment with a script like this:
2019.08.06 22:40:44.668 tst1 (EURUSD,H1) inp1 = 15.000000 --> 15
2019.08.06 22:40:44.668 tst1 (EURUSD,H1) inp2 = 12.300000 --> 12.3
it seems the 7th decimal place will sometimes be wrong
It seems to have been, but I couldn't find it, so I wrote here (
experiment with a script like this:
2019.08.06 22:40:44.668 tst1 (EURUSD,H1) inp1 = 15.000000 --> 15
2019.08.06 22:40:44.668 tst1 (EURUSD,H1) inp2 = 12.300000 --> 12.3
I think the 7th decimal place will be wrong sometimes
Thank you all, I will try it!
Or am I looking in the wrong place?
if so, is there any way to implement the possibility of getting files from remote agents?
I think there was one, but I couldn't find it, so I posted it here (
That's how it's described in the documentation. In fmod you put divisor 1 and get fractional part of number or 0. You don't care how many decimal places are entered in field or input variable.