cannot convert enum error

 
Guys does anyone know why i am getting this error . 
'period' - cannot convert to enum
new to programming . 
thanks a lot
Files:
 

You have declared period with wrong type. You used INT, but it's ENUM_TIMEFRAMES

Change this

IsNewCandle(int period, int index)

To this

IsNewCandle(ENUM_TIMEFRAMES period, int index)
Please pay attention to log errors that compiler give you, it's clearly explained also there.
 
Fabio Cavalloni #:
IsNewCandle(ENUM_TIMEFRAMES period, int index)
Thanks a lot . 
that fixed that error . 
i clearly have no clue what i am doing 😅