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.

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
'period' - cannot convert to enum
new to programming .
thanks a lot