Good(o) evening, afternoon, morning - Could you please suggest a code - I need to output the value of the last closed order (whether it is positive or negative) - the code that I know shows only a previously specified position - for example 1 order in the history of closed orders - if a new deal is done - with a further close, its value is not checked and not output or if I indicate 0 then after the first one closed also is not checked in future - how to make sure it always checks the last closed order How do I do this? Thank you in advance.
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.
I have data in a file like this:
2016.01.21 19:39:07;6;22
2016.01.21 19:40:08;6;21
2016.01.21 19:41:08;6;20
That is the date and a couple of values that I want to display in the indicator.
Is there such a function so that the values are displayed by time and not by bar number?
I have data in a file like this:
2016.01.21 19:39:07;6;22
2016.01.21 19:40:08;6;21
2016.01.21 19:41:08;6;20
That is the date and a couple of values that I want to display in the indicator.
Is there such a function so that the values are displayed by time and not by bar number?
Sultry to the point of tears..... :-) I'll be aware of that.
Help me find the reason for this.
Tried to make an indicator to show the opening levels of the day. However, this is what happens. When there is a test in the tester all is normal.
I cannot understand what is wrong. But when I try to put it on the chart I get just a parallel drawing on the D1 chart.
I do not understand what is wrong.
I do not understand what is wrong:
Help me find the reason for this.
Tried to make an indicator to show the opening levels of the day. However, this is what happens. When there is a test in the tester all is normal.
But when I put it on the chart, it just turns out to be a parallel drawing of the D1 chart.
I do not understand what is wrong.
Here is the code:
Add it to init()
Add in init()
How do I know the value of a bar in an indicator by its time (by bar time)?
iBarShift
iBarShift