- I call "current bar", the last bar in the chart. I mean the uncompleted bar that the terminal is still drawing it.
- I call "index" i, the parameter used in this function:
iMA(string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int i).
or those array:
High[i], Open[i], Close[i], Low[i],Time[i].
1. Is 0 (zero) the index of the current bar?
2. For the current bar, is that true?
- Open is known and cannot change. It's the first tick price value got during the current bar.
- High is known but it can change. It's the highest tick price value got during the current bar.
- Low is known and it can change. It's the lowest tick price value got during the current bar.
- Close is known and it can change. It's the last tick price value got during the current bar.
NOTE:
- "during the current bar" means: during the terminal is drawing the current bar.
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 call "index" i, the parameter used in this function:
iMA(string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int i).
or those array:
High[i], Open[i], Close[i], Low[i],Time[i].
1. Is 0 (zero) the index of the current bar?
2. For the current bar, is that true?
- Open is known and cannot change. It's the first tick price value got during the current bar.
- High is known but it can change. It's the highest tick price value got during the current bar.
- Low is known and it can change. It's the lowest tick price value got during the current bar.
- Close is known and it can change. It's the last tick price value got during the current bar.
NOTE:
- "during the current bar" means: during the terminal is drawing the current bar.
I use MT4 buil 200
Thanks