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

Latest: Metatrader 4 Libraries | ZZ_Standard_Functions_TF_YR1_Lib | MQL5 Release

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

Image for ZZ_Standard_Functions_TF_YR1_Lib

==================
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).

Recover from drawdowns intelligently with the Auto Recovery Expert Advisor for MT4/MT5. Perfect for hedging strategies. Learn more.

Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.

7295

Best MetaTrader Indicators + Profitable Expert Advisors