is there a function or easyway to get the next or previos time frame (from PERIOD_CURRENT) ?

 

i am stuck on this, appreciate the the help

 

Because the enumerations are not sequential, you can not increment/decrement them to get the next larger/smaller one.
          Why are MT5 ENUM_TIMEFRAMES strange? - General - MQL5 programming forum - Page 2 #11 (2020)