MacdBuffer[i]=iMA(NULL, PERIOD_M15, FastEMA,0,MODE_EMA,PRICE_OPEN,i) - iMA(NULL, PERIOD_M15, SlowEMA,0,MODE_EMA,PRICE_OPEN,i);You are mixing apples and oranges.
For custom timeframe you can use custom calculation independent of iMA.
So is it because I am using the iMA funciton for my MACD line?
I was thinking about supplementing the MACD code with an equation rather than the multiple iMA functions.
No. It's because you are mixing timeframes. Read and understand the links provided.
That's the whole point of this indicator.
It's entire purpose is to calculate higher time frames and use those readings when calculating a smaller timeframe.
idk if you understand from the post, but my indicator is meant to be dependent on a larger timeframe while still reading a smaller timeframe.
Are you saying that this is impossible?
Are you saying that this is impossible?
You indicator is broken, fix your broken indicator.
You indicator is broken, fix your broken indicator.
That's why I'm here, these forums are here so we can help each other with stuff like this.
You seem somewhat knowledgeable about what is wrong here, could you please give me some hints on how I might fix this problem?
I really want to get better at coding mql4 and would greatly appreciate any help whatsoever.
I gave you links, you ignored them.
I gave you links, you ignored them.
No, I read them immediately, I do not see the relevance though.
The poster from the link had a much different problem than me, which is why I didn't think you had an understanding of my problem.
I've come here for help and I've paid great attention to what you have given me but I still cannot find a solution to my problem.
If you know what could fix my indicator, will you please help me?
Other wise you're kind of being a dick. I don't need you to waste my time, you don't have to be a part of the toxicity in these forums.
No, I read them immediately, I do not see the relevance though.
The poster from the link had a much different problem than me, which is why I didn't think you had an understanding of my problem.
I've come here for help and I've paid great attention to what you have given me but I still cannot find a solution to my problem.
If you know what could fix my indicator, will you please help me?
Other wise you're kind of being a dick. I don't need you to waste my time, you don't have to be a part of the toxicity in these forums.
- Then you failed to read and understand TimeScale problem - Indices - MQL4 and MetaTrader 4 - MQL4 programming forum #2.3 and Previous Day High-Low - Real Account - MQL4 and MetaTrader 4 - MQL4 programming forum #8
- I understood completely and showed you the problem lines and highlighted the problems.
- You can't find a solution even when someone shows it to you. Your problem. Step away from the keyboard and go to Freelance.
- I did help you. You won't learn.
- You be rude and expect people to help you? You be rude and expect us to waste our time when you won't even try.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have made an indicator that notifies of EMA in the M1 chart based on the status of MACD in a M15 chart.
This doesn't work when I have contradicting timeframes within my indicator.
e.g.
I have have ran a print function to ensure that this was the problem.
And it definitely is.
I get the same number regardless of MACD and Signal line postions when timeframes of MACD and EMA are different.
If i set MACD timeframes to equal EMA timeframes then the the number changes according to actual MACD values.
So it is definitely an issue and I'm super stuck on it.
Any help is greatly appreciated.