
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
What about the indicator short name? if you are gonna add the same indicator twice on the chart you need make sure the shortname is different for different parâmeters.
Hi, Samuel. Sorry but I don't know what is a shortname. I named them differently but in a similar way. These are the names:
Trend-channel-1-xau-adaptive.mq5
Trend-channel-5-xau-adaptive.mq5
Trend-channel-15-xau-adaptive.mq5
Trend-channel-60-xau-adaptive.mq5
Trend-channel-240-xau-adaptive.mq5
Trend-channel-1440-xau-adaptive.mq5
Are they too similar?
No. The issue comes from your code.
Hi, Alain. The weird thing is that the indicators work well alone but after a while one or two or them stop working if used together while in the tester everything is fine.
Sorry but 5 persons tried to help you and still you don't seem to understand you didn't provide enough details.
"Stop working" what that means exactly ? Provide screenshots or logs to show it.
It's a coding issue, provide the relevant source code, remove some logic from it if you don't want to share all.
Provide all details to understand your issue otherwise it's just a waste of time.
it's not a state secret. This is the code for the 15 minutes period. The others are the same, the only difference are the lines names, the time and iMA parameters and the internal variable names. There are many useless variables in it because I made a second version without cleaning.
I've just discovered that changing profile and apply the indicators to a new chart everything start working again. Some kind of metatrader bug?
Hi, Carl. It means the lines on the screen stop moving because the iMA is not calculated anymore inside the code. I'm sure of that because I used a Print line to watch the iMA progress.
It's because of your code! It could be that you have to many handles...
Expect that you have to learn how to do it before you can do it.
It's because of your code! It could be that you have to many handles...
Expect that you have to learn how to do it before you can do it.
You're right Carl, I'm not an expert, only trying to learn. As an update I can say changing profile and chart didn't work.
But I've just tried to calculate the most long lines in a different way.
Instead of calculating every iMA and Bands handle on the 1 minute time frame I'm using the 5 minute for the four hours line and the 15 minute for the daily line.
It seems everything working fine for the moment.
Hi, Samuel. Sorry but I don't know what is a shortname. I named them differently but in a similar way. These are the names:
Trend-channel-1-xau-adaptive.mq5
Trend-channel-5-xau-adaptive.mq5
Trend-channel-15-xau-adaptive.mq5
Trend-channel-60-xau-adaptive.mq5
Trend-channel-240-xau-adaptive.mq5
Trend-channel-1440-xau-adaptive.mq5
Are they too similar?
Oh, you were able to reply before i delete that. i deleted because doesn't seem to be the case.
Anyway you can learn about that reading the documentation.
https://www.mql5.com/en/docs/standardlibrary/cchart/cchartindicatorname
https://www.mql5.com/en/docs/constants/indicatorconstants/customindicatorproperties#enum_customind_property_string
Oh, you were able to reply before i delete that. i deleted because doesn't seem to be the case.
Anyway you can learn about that reading the documentation.
https://www.mql5.com/en/docs/standardlibrary/cchart/cchartindicatorname
https://www.mql5.com/en/docs/constants/indicatorconstants/customindicatorproperties#enum_customind_property_string
Thanks very much for all your answers. I would like to add that I was able to solve the problem using less handles on the 1 minute timeframe and instead, for the long cycles, using the 5 minute timeframe.
From my limited experience I would say I had too much handles using the iMA and iBands functions on the 1 minute timeframe. Apparently there is a limit when using handles on the same timeframe. what do you think?