The last parameter in the iBarShift() function is used to give you an indication whether the exact bar you asked about exists.
For example, if the time is a Saturday, and the last parameter = true, it will return -1 because there are no FX bars on Saturday
(on most Dealers charts, there may be exceptions)
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
I'm trying to get the high/low value of the bar BEFORE the entry bar. How do I do it?
I think this is the entry bar's low/high (?): HighestValueOfTheBarBeforeEntryBar = High[iBarShift(NULL, 0, OrderOpenTime(), false)
What does the last variable (true/false) stands for anyway?
Thanks a lot
-Newbie