Please note that the path separator should be specified as aĭouble backslash '\\'. In case ofįailure, file MQL5\Indicators\MyIndicators\ThirdIndicator.ex5 is MQL5\Experts\MyExperts\MyIndicators\ThirdIndicator.ex5. MQL5\Experts\MyExperts) at the following path: MyIndicators\ThirdIndicator, the search starts in the folder of theĬalling program (the Expert Advisor is located in the folder The indicator path is set in a subdirectory such as If the indicator is notįound, the function returns INVALID_HANDLE and error 4802 MQL5\Indicators\SecondIndicator.ex5 is searched. Not found, a search relative to the Indicators root directory is MQL5\Experts\MyExperts\SecondIndicator.ex5. It contains theįollowing call: iCustom(Symbol(), Period(), "SecondIndicator".). For example, the CrossMA.EX5Įxpert Advisor is located at MQL5\Experts\MyExperts. Where the caller program's EX5 is located. The EX5 file is searched in the same folder,.Indicator is searched and loaded based on the following sequence of If the path does not start with a backslash '\', the If the file is notįound at this path, error 4802 (ERR_INDICATOR_CANNOT_CREATE) is Indicator will be loaded as MQL5\FirstIndicator.ex5. So,įor a call of iCustom(Symbol(), Period(), "\FirstIndicator".), the If the backslash '\' is indicated before the custom indicator name, theĮX5 indicator file is searched relative to the MQL5 root folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |