Well, if only it had been written humanely... Everything seems to be clear at the beginning, but a little later you start to lose your mind...)).
O.K. A concrete example:
The order is closed at the end of the TP movement, but since the SELL signal has not been cancelled a new order is opened, which is unacceptable.
I measure 720 sec, after which we can open a new order. So, in this case, from which order these seconds will be measured, from the first order in the history or from the last one?
And then: And if so, what then? Since I plus z, it comes out to count from the beginning? Brrrrr:))
2013.04.08 19:06:05 2013.03.28 20:00 testavimas naktini fleta EURUSD,M15: ArraySize 21 But all elements are written to the array as zero
2013.04.08 19:06:04 2013.03.28 16:00 testavimas naktini fleta EURUSD,M15: avgPriceC[19]=0.00000000 So this line has no Close[1] value assigned to an array element.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Well, if only it had been written humanely... Everything seems to be clear at the beginning, but a little later you start to lose your mind...)).
O.K. A concrete example:
The order is closed at the end of the TP movement, but since the SELL signal has not been cancelled a new order is opened, which is unacceptable.
I measure 720 sec, after which we can open a new order. So, in this case, from which order these seconds will be measured, from the first order in the history or from the last one?
And then: And if so, what then? Since I plus z, it comes out to count from the beginning? Brrrrr:))
Thank you very much!
This function returns the number of seconds since the last position closed
The length of the array changes, we see it from
2013.04.08 19:06:05 2013.03.28 20:00 testavimas naktini fleta EURUSD,M15: ArraySize 21
But all elements are written to the array as zero
2013.04.08 19:06:04 2013.03.28 16:00 testavimas naktini fleta EURUSD,M15: avgPriceC[19]=0.00000000
So this line has no Close[1] value assigned to an array element.
avgPriceC[i] = Close[1];Who can explain why.This function returns the number of seconds since the last position was closed
Thank you:)
Help
I tried it via interleaving variable, it didn't work. ArrayResize was put after the array. The result is the same. There are zeros in the array.
start on v.272.Help
I tried it via interleaving variable, it didn't work.ArrayResize was put after the array. The result is the same. There are zeros in the array.
Start on v.272I don't see the int i string and index initialization in your code. Please submit the string to studio.
ZZY I don't speak Lithuanian well, the comments in the code confuse me a bit)))
I don't see your int i string and index initialisation. Please, in the studio.
ZZY I don't speak Lithuanian well, the comments in the code throw me off a bit)))
You have declared array y[] twice: globally and in the start function.
You have declared array y[] twice: globally and in the start function.
In KIM's example also
In the KIM example, also
Do you want a taxi, or a ride?