Errors, bugs, questions - page 1933 1...192619271928192919301931193219331934193519361937193819391940...3193 New comment Stanislav Korotky 2017.07.19 13:47 #19321 fxsaber: The difference is more than 1e-15. Moreover, num != Norm. They are different numbers, not the same numbers.My MT4 outputs true, true and difference 0. ;-) fxsaber 2017.07.19 13:56 #19322 Stanislav Korotky: My MT4 outputs true, true and difference 0. ;-)An undocumented way of distinguishing MT4/5 has formed. And MT5 bit rate has nothing to do with it. Alexey Viktorov 2017.07.19 14:12 #19323 fxsaber: An undocumented way of distinguishing MT4/5 has formed. And MT5 bitness has nothing to do with it.Besides that in mql4 works and in mql5 not even the documented operation prefix increment(++i) and decrement (--k) Документация по MQL5: Основы языка / Операции и выражения / Арифметические операции www.mql5.com Основы языка / Операции и выражения / Арифметические операции - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5 fxsaber 2017.07.19 14:20 #19324 Alexey Viktorov: Except that in mql4 it works, but in mql5 not even the documented operation prefix increment(++i) and decrement (--k)I didn't see a problemvoid OnStart() { int i = 0; Print(i++ == 0); // true Print(++i == 2); // true } fxsaber 2017.07.19 14:26 #19325 fxsaber:An undocumented way of distinguishing MT4/5 has formed. And MT5 bitness has nothing to do with it.It's not even the MT4/5 difference, it's whether #property strict is enabled.If it is enabled, they will be different, if not, they won't. There are different implementations of NormalizeDouble! Ilya Malev 2017.07.19 14:47 #19326 In what cases can reason=0 be passed to OnDeinit in indicators? Stanislav Korotky 2017.07.19 15:49 #19327 fxsaber: The difference is more than 1e-15. Moreover, Num != Norm. These are different numbers, not the same numbers.What about the zero degree? Degrees from 0 to -14 are a total of 15 digits. A degree of -15 is the 16th degree. I think so. fxsaber 2017.07.19 16:28 #19328 Stanislav Korotky: What about the zero degree? Degrees from 0 to -14 are a total of 15 digits. A degree of -15 is the 16th degree. I think so.See how many digits theDBL_MIN differs from zero. fxsaber 2017.07.19 16:58 #19329 Release version of the script is almost 3 times slower than Debug version.string PositionGetString2( const ENUM_POSITION_PROPERTY_STRING Property_id ) { return(PositionGetString(Property_id)); } #define TOSTRING(A) #A + " = " + (string)(A) void OnStart() { if (PositionSelect(_Symbol)) { const ulong StartTime = GetMicrosecondCount(); for (int i = 0; i < 1 e7; i++) { PositionGetString2(POSITION_SYMBOL); PositionGetString2(POSITION_COMMENT); } Print(TOSTRING(GetMicrosecondCount() - StartTime)); } }Steps to playSelect EURUSD for debugging and open its chart in the terminal.Open one position on EURUSD.Start the debug version in ME by pressing F5 and see the result in the log.Recompile to ME using F7 - this is very important otherwise EX5 will be debug.Run the Release script from the terminal and view the logged results.Debug-version resultGetMicrosecondCount()-StartTime = 638537Release version resultGetMicrosecondCount()-StartTime = 1746492 fxsaber 2017.07.19 18:22 #19330 When importing ticks into a custom tkc symbol, the tkc files are not readable. 1...192619271928192919301931193219331934193519361937193819391940...3193 New comment
The difference is more than 1e-15. Moreover, num != Norm. They are different numbers, not the same numbers.
My MT4 outputs true, true and difference 0. ;-)
My MT4 outputs true, true and difference 0. ;-)
An undocumented way of distinguishing MT4/5 has formed. And MT5 bit rate has nothing to do with it.
An undocumented way of distinguishing MT4/5 has formed. And MT5 bitness has nothing to do with it.
Besides that in mql4 works and in mql5 not even the documented operation prefix increment(++i) and decrement (--k)
Except that in mql4 it works, but in mql5 not even the documented operation prefix increment(++i) and decrement (--k)
I didn't see a problem
An undocumented way of distinguishing MT4/5 has formed. And MT5 bitness has nothing to do with it.
It's not even the MT4/5 difference, it's whether #property strict is enabled.
If it is enabled, they will be different, if not, they won't.
There are different implementations of NormalizeDouble!In what cases can reason=0 be passed to OnDeinit in indicators?
The difference is more than 1e-15. Moreover, Num != Norm. These are different numbers, not the same numbers.
What about the zero degree? Degrees from 0 to -14 are a total of 15 digits. A degree of -15 is the 16th degree. I think so.
What about the zero degree? Degrees from 0 to -14 are a total of 15 digits. A degree of -15 is the 16th degree. I think so.
See how many digits theDBL_MIN differs from zero.
Release version of the script is almost 3 times slower than Debug version.
Steps to play
Release version result
When importing ticks into a custom tkc symbol, the tkc files are not readable.