Hello Can anyone see what is wrong with this code. It is an MTF indicator for MT4. It shows for most timeframes correctly but for example so H4 and daily no lines are shown. When compiling, there is a warning that "not all control paths return a value" Line 62 column 4. I can not program so I do not understand what needs to be changed. Thankful for all the help from you who are good at this.
Files:
MTF_code.txt
5 kb
lMTF_Moving_Average.mq4
5 kb
MTF_Code.PNG
67 kb
- Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6.
- not all control paths return a value
- error need help
int init() { ⋮ SetIndexLabel(1,IndicatorName+" Current Candle"); ««««««« init returns an int. What are you returning? } // Line 62
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