MACD strategy of considering two Timeframes, higher and lower for entries
-
Guys I am requesting someone to help me automate my MACD strategy of considering two Timeframes, higher and lower for entries
-
Can you please share the details of what you need exactly?
-
@l-andorrà I mean forexample when the Buy signal is triggered on a high timeframe, the only consider opening and closing buys only on a lower timeframe and vice versa for the sell
-
@Creven actually opening positions on a lower timeframe but maintaining the general trend on the higher timeframe and close upon the opposite signal still on the lower timeframe
-
@Creven and it should consider opening and closing at the opening of the candle not closing, in other words it should be applied to open price
-
Can input the timeframe to the common indicators
-
@sktsec Then you need something like this:

The first block is checking if MACD is above 0 on the H1 timeframe while the second block is checking for a MACD crossing the 0 level on the M15 timeframe.
-
@l-andorrà oh Then. How can I add inputs for magic number, higher timeframe, lower timeframe to the EA
-
@Creven I'm not sure Magic Number can be changed via Input parameter. Never tried it. On your TF input parameteres, you'll find the eay to do it here:
-
@l-andorrà
Every EA created might have automatically contained an input for magic number at the end of other inputs.Just we would neglect it in most cases
-
That is how they work now. By default, a magic number can be chosen when you are running the bot on the chart. However, I don't think fxDreema allowsusing a constant to modify it.
-
@l-andorrà
Right! After a position is opened, modification of magic number is not expected