Errors, bugs, questions - page 780

 

papaklass:

Also: Found glitches with spread in OnCalculate() function.

which calculation is wrong?
 
sergeev:
but more specifically, which calculation is not true?
The first and last column.
 
TheXpert:
First and last column.

no formulas are given. what are we talking about.

papaklass:

If you calculate spread as spread_1 = SymbolInfoDouble(Symbol(), SYMBOL_ASK) - SymbolInfoDouble(Symbol(), SYMBOL_BID) difference and compare this value with the spread value given by OnCalculate(), the values are not the same.

And the normalization?
 
sergeev:

no formulas are given. what are we talking about.

What about normalisation?

This does not work, if there is a problem with normalisation there will be a discrepancy of 1 point, and there are discrepancies of up to 4 points

2012.07.17 19:27:34     Spread (EURUSD,M1)        spread = 14  ...  0.00010
 
sergeev:

no formulas are given. what are we talking about.

You asked, I answered. You still have to check.
 
Urain:

This does not work, if there is a problem with normalization there will be a discrepancy of 1 point, but there are discrepancies of up to 4 points

Well, then we just need to check if it's a weekly spread or a weekly one.


But there is another thing - it is possible that incoming spreads array will not correspond to a fresh SymbolInfoDouble call in a millisecond , right?

If so, I don't see it as an error.

Документация по MQL5: Получение рыночной информации / SymbolInfoDouble
Документация по MQL5: Получение рыночной информации / SymbolInfoDouble
  • www.mql5.com
Получение рыночной информации / SymbolInfoDouble - Документация по MQL5
 

Am I going to see my zigzag published in the English part of the kodobase?

Three weeks is already a hammering.

 
TheXpert:

Am I going to see my zigzag published in the English part of the kodobase?

Three weeks is already a hammering.

Summer, holidays... It should appear in the next few days...
 

Who can explain why Mach and Min are limited to searching only from 2 numbers and not from a larger number as in other languages? Because I have to do cumbersome formulas to find the searched for... Thanks!

 
borilunad:

Who can explain why Mach and Min are limited to searching only from 2 numbers and not from a larger number as in other languages? Because I have to do cumbersome formulas to find the searched for... Thanks!

ArrayMaximum() and ArrayMinimum() wouldn't work?