Compilation error after importing MyIndicator
-
Hi, I get the following compilation error due to importing a custom indicator with some errors I guess. Can you help?((
This is the project:
https://fxdreema.com/shared/hksirNvceThis is the error:

This is the original indicator in MT4:

This is how I imported it:

-
@fm2020 The problem is that ths value cannot be complied correctly. Sadly, I'm not a programmer so I cannot offer you a solution.
Are those 'current' input parameters selectable? I mean, can you choose, 1H, 4H, Daily, etc.? -
@fm2020 replace "current" with the proper mql4 identifier, "PERIOD_CURRENT"
https://docs.mql4.com/constants/chartconstants/enum_timeframes -
Thank you. Yes, this worked. I noticed also something weird as I couldn't make it work first (no trades in the Strategy Tester). As I purchased the indicator in MQL5 shop it was stored under Market. Only once I removed it and placed it in the general folder, the algo worked as expected.
Anyway thanks a lot!