[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 227

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
How can I select the last 2 trades already closed (from the account history list)?
It should be something like this
how to write correct parameter to select?The last two orders will have the numbers OrdersHistoryTotal()-1 and OrdersHistoryTotal()-2.
Here is a script to test
>> Good luck!
the code is quite crude.
See: i=Bars-Period1+1 at the first iteration of the loop, we get k=i+Period1-1=Bars-Period1+1+Period1-1=Bars and then Close[k], which means we are already out of the array.
Correct: i=Bars-Period1-1
..................
Is there any way to find the maximum(min) of the close[i]/close[i+1] ratio, but without using arrays??? Thank you!
Is there any way to find the maximum(min.) of the close[i]/close[i+1] relationship, but without using arrays??? Thanks!
the question is where to write what the maximum will be searched for. this is usually called an array:) ArrayMax(in)imum is optimal
the question is where to write what the maximum will be searched for. this is usually called an array:) ArrayMax(in)imum -optimal
And if you write it into a buffer?
Is there any way to find the maximum(min.) of the close[i]/close[i+1] ratio, but without using arrays??? Thank you!
If I understood the question correctly. You can experiment not with close[i], but like this:
where Cbar, -number of last bars, among which an extremum is searched for
If I understood the question correctly. It is possible to experiment not with close, but like this:
where Cbar is the number of last bars among which the extremum is searched for
It is the absolute value of the ratio Prace[i]/Price[i+1] that interests me.
What if you put it in a buffer?
Isn't a buffer an array?
Isn't a buffer an array?
Yes, but if I write Buffer[i]=close[i]/close[i+1] and then use iHighest function, nothing works!!!!
Yes, but if I write Buffer[i]=close[i]/close[i+1] and then use iHighest function, then nothing happens!!!!
because iHighest only works with timeseries. For other arrays analog of ArrayMaximum