GarKain: Am I right, if I write i instead of Time[i], I will get the bar number?
and if I use this script in my EA, then when a new crossing occurs, the value of i will change to a new one?
Time[0] - will return the zero bar open time, Time[1] will return the first bar open time (the one which precedes the zero bar), Time[i] will return the bar open time, whose number is in the i variable
Time[0] - will return the opening time of the zero bar, Time[1] will return the opening time of the first bar (the one which precedes the zero bar), Time[i] will return the opening time of the bar whose number lies in the i variable
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.
Easier to write :
GarKain:
i - bar number
Time[i] - its time
And if I use such a script in an EA, then when a new crossing occurs, the value of i will change to a new one?
Am I right, if I write i instead of Time[i], I will get the bar number?
and if I use this script in my EA, then when a new crossing occurs, the value of i will change to a new one?
Time[0] - will return the zero bar open time, Time[1] will return the first bar open time (the one which precedes the zero bar), Time[i] will return the bar open time, whose number is in the i variable
Time[0] - will return the opening time of the zero bar, Time[1] will return the opening time of the first bar (the one which precedes the zero bar), Time[i] will return the opening time of the bar whose number lies in the i variable
is that a question?
Bygones :)
Hello!
Help me find an indicator that outputs support and resistance levels from data in a text file.
It should look similar to this one: https://www.mql5.com/en/code/8096 but with differences:
Need to be able to choose the colour, line width and a comment for each line, ie, the CSV structure is something like this:
date price weight colour comment
date price weight colour comment
etc.
Thank you.