maybe some of you could help me.
I am a newbie at MetaTrader 4 and tried any of the MTF-Indicators in this thread, but without any success.
I only got the error message: 'return' - expressions are not allowed on global scope. not all control paths return a value
Any of you got an idea, what's the reason for this error message in the MetaEditor and how I get these indicators running ?
Thx for your help in advance
Move the line with the return statement within the function body
This indicator is in separate windows but for some reason the 0 or the 50 level are not working or in sync
Can you pls check the 0 and 50 levels
That indicator is not meant to have levels like 50 at all. It is meant to be working on the main chart and to use values on the main chart
Thanks for clearing it up.
Anything similar to this with the results ?
If you mean if there is a version that could use some levels for super trend, no, there is no such version
Many thanks Mladen for your kind assistance,
according to your tip, I removed the first "return(0);" and everything is working perfect.
Also thanks to R. Khan for your reply
Here you go (set the UniqueUD parameter of each new instance to unique value) : automatic_trendlines_mtf_1_1.mq4
Would you please, if it is possible to add line color option to this indicator, so we can recognize between MTF trend lines and I'll appreciate if you may add trend line thickness as well.
automatic_trendlines mtf 1_1.mq4
Here you go : automatic_trendlines_mtf_1_2.mq4
Many Thanks Mladen
Hope you fix these these issues
I really don't want to disturb you in the weekend but there are two issues in this indicator:
Try this one then (upper line is using color 4) : automatic_trendlines_mtf_1_2_1.mq4