Just do them separately, so:
double MACDMain15m = iMACD(....
double MACDSignal15m = iMACD(....
double MACDMain1Hr = iMACD(....
double MACDSignal1Hr = iMACD(....
etc
iRick:
Just do them separately, so:
double MACDMain15m = iMACD(....
double MACDSignal15m = iMACD(....
double MACDMain1Hr = iMACD(....
double MACDSignal1Hr = iMACD(....
etc
Yes, that would be probably the easier way.

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
Hi, I'd like to test an own expert advisor using several timeframes. Parameters would be:
Shorter_Period = (ex.M15), Longer_Period = (ex.H4). So the strategy will run through all of the periods between.
So then, we're going to consider this is for example applied to MACD indicator:
So then how's that I have to set the function to match Main and Signal timeframe the same in such case as they're defined as variable?