How can i get the close, low, high price of current bar? When I use Close[0], iClose(Symbol(), 0, 0) to get close price of current bar, thess two values are always the same as Open[0](when running tester tool of MetaTrader, right now I'm running MIG Trade Station, demo account) ? The same for low and high prices? Please tell me how can i figure out it. Many thanks for reading!
---------- REPLY -----------------
Hi there!
Close[0] returns the close price of the current bar (The same is true for the High[0] return the high price of the current bar, Low[0] returns the low price of the current bar and Open[0] returns the open price of the current bar)
iClose function is very like Close function but it can return the close price for another symbol and timframe. If you used it like this:
iClose(NULL,0,0)
it will equal to Close[0]. (The same is true for the iHigh, iLow and iOpen functions).
Coders Guru