Time/Trend Filters for EA

 

Hello


I'm developing a simple EMA Cross EA (default = classic 200/50 EMA cross). I'm looking to create filters across all TFs so EA only takes trades when these conditions are met (true/false options). So - M1, M5, M15, M30, H1, H4, D1, Weekly, Monthly.

Fore example - I'm trading the M15 chart for a Sell, but I only want EA to take trade if M30, H1 and H4 are also trending downwards.

I'm assuming it's an MA that does the filtering. Does anyone know what might be standard MA setting for these time filters?

My guess would be a 50 or above.

Thank you very much.

 
Bendict Wellstood :

Hello


I'm developing a simple EMA Cross EA (default = classic 200/50 EMA cross). I'm looking to create filters across all TFs so EA only takes trades when these conditions are met (true/false options). So - M1, M5, M15, M30, H1, H4, D1, Weekly, Monthly.

Fore example - I'm trading the M15 chart for a Sell, but I only want EA to take trade if M30, H1 and H4 are also trending downwards.

I'm assuming it's an MA that does the filtering. Does anyone know what might be standard MA setting for these time filters?

My guess would be a 50 or above.

Thank you very much.

It's pretty simple. A few rules need to be taken - signal format:

  • For the BUY signal
    • OR in text format (example: "M15 UP, H1 UP")
    • OR in digital format (example: "M15 + 1, H1 +1")
  • For the SELL signal
      • OR in text format (example: "M30 DOWN, H1 DOWN")
      • OR in digital format (example: "M30 -1, H1 -1")


That is the most important thing - it is a convenient format for the signal. Then the adviser simply follows the instructions.

An example will be later ...

 
Thank you very much.
Reason: