Hi guys please if anyone can give me an equivalent code to iBarshift, the expanded version of the function so i can study it more deeply.It can be in any programming language you want just i need it to study it .Thanks ahead!
- MQL5 Book
- Creating custom indicators
- Working with arrays
Proximus: anyone can give me an equivalent code to iBarshift, the expanded version of the function so i can study it more deeply. It can be in any programming language you want just i need it to study it.
- For current pair, current timeframe, exact=false
equivalent to int iBarShift(datetime tm){ return( ArrayBsearch(Time, tm) ); }
or int iBarShift(datetime tm){ int iLimit = Bars - 1; for(int iBar = 0; iBar < iLimit; iBar++) if(Time[iBar] <= tm) break; return(iBar); }
- At https://www.mql5.com/en/forum/145041 I report that iBarShift doesn't match the documentation.
WHRoeder:
- For current pair, current timeframe, exact=false
equivalent to or - At https://www.mql5.com/en/forum/145041 I report that iBarShift doesn't match the documentation.
Thanks man, i`m very grateful!
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