Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Libraries | ZZ Standard Functions TF YR1 Lib

MetaTrader Experts, Indicators, Scripts and Libraries
Set of functions for the YR1 timeframe.
==================
1.Number of bars in the YR1 timeframe.
int iBars_YR1 (string Exchange);
iBarsYR (currency pair).
2.Number of bar by time in the YR1 timeframe.
int iBarShift_YR1 (string Exchange, datetime time, bool exact);
iBarShiftYR (currency pair, time value to search, returned value if bar was not
found (FALSE - iBarShift returns closest/TRUE - iBarShift returns -1)).
3.Opening time by the bar number in the YR1 timeframe.
datetime iTime_YR1 (string Exchange, int shift);
iCloseYR (currency pair, bar number).
4.Open price.
double iOpen_YR1 (string Exchange, int shift);
iOpenYR (currency pair, bar number).
5.High price of the selected bar in the YR1 timeframe.
double iHigh_YR1 (string Exchange, int shift);
iHighYR (currency pair, bar number).
6.Low price of the selected bar in the YR1 timeframe.
double iLow_YR1 (string Exchange, int shift);
iLowYR (currency pair, bar number).
7.Close price.
double iClose_YR1 (string Exchange, int shift);
iCloseYR (currency pair, bar number).
7295

Best MetaTrader Indicators + Profitable Expert Advisors