Can a Shared Project contain both an EA and indicators in MQL5? I have compile issues with duplicated OnInit functions
Sander Bruyneel:
Can a Shared Project contain both an EA and indicators in MQL5? I have compile issues with duplicated OnInit functions.
There must be something wrong in my thinking as both the EA mq5 file as the indicator mq5 file have a OnInit function.
What is the recommended code style to solve this?
Using a project file (mqproj) you can only have one "main" mq5, an EA or an indicator or...
However you can use the Shared Projects folder with as much mq5 (EAs, Indicators...), but then you can't use a mqproj.
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
Can a Shared Project contain both an EA and indicators in MQL5? I have compile issues with duplicated OnInit functions.
There must be something wrong in my thinking as both the EA mq5 file as the indicator mq5 file have a OnInit function.
What is the recommended code style to solve this?