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
fxsaber #:
You need to learn how to make proper performance measurements.
You are drawing wrong conclusions.
Unfortunately, you do not understand what you are measuring.
So, tell me what I do not understand please :-)
Till now, I understand that I should replace the code with your optimized (!) function, then put a big warning for users to disable compiler optimizations before using the library, in order to get the same performance they would get without using all of this shit!
If, indeed, you have a desire to figure out how to correctly measure the performance of any functions, go to the Russian-language forum and ask there. The developers talked about it in detail with examples. I don't have any links.
Update 1 March 2023
Added functions for comparison of doubles:
Added miscellaneous functions:
Added function for formatting of doubles to string:
Added new miscellaneous function.
The function has a much faster performance than MathPow(10, power).
Faster.
@fxsaber Thanks!
Forum on trading, automated trading systems and testing trading strategies
Libraries: Math Utils
amrali, 2023.03.08 15:32
Added new miscellaneous function.
The function has a much faster performance than MathPow(10, power).
Added faster rounding functions.
Update 24 April 2023
Added new function:
Renamed the rounding functions to Ceil(), Floor(), Round() and Trunc() to avoid name conflicts with <Math\Stat\Math.mqh>.
Fixed the GetDigits() function to avoid an infinite loop in rare situations.
3. `string FormatMoney(double amount)` formats a double value `amount` as a string representing a currency amount. It formats the amount with two decimal places, replaces the decimal point with a comma, and inserts spaces every three digits for readability. It also adds the currency symbol obtained from `AccountInfoString(ACCOUNT_CURRENCY)` at the end.
Post formatted by moderator