Using multiple timeframes on one EA?

 

Hello,

Thank you for taking the time to look into my post. My question is as follows.

I have an EA which opens a trade on the USDCAD H1 chart when my HE indication switches from on colour to another. Is it possible to code into the same EA to close the position using the same strategy however on the M30 chart.

So the EA would trigger a BUY/SELL on the USDCAD H1 chart when the HE changes colour, I would like the EA to close the trade when the HE changes to the opposite colour on the M30 chart on the same pair. Is this possible?

Kind Regards,

Shane Silvanus

[twitter link was deleted by moderator]

 
Shane Silvanus: So the EA would trigger a BUY/SELL on the USDCAD H1 chart when the HE changes colour, I would like the EA to close the trade when the HE changes to the opposite colour on the M30 chart on the same pair. Is this possible?
  1. Of course. What is the second parameter of iCustom?
  2. You should write a self documenting function instead of calling iCustom directly, see Detailed explanation of iCustom - MQL4 forum
Reason: