Hi, Tanaka!
I think this will help you.
If you trade in the M5 time interval, D1 will be useful if the time is within the filter.
Or there is a filter in H4 time interval.
I filter the grid EAs so I filter them. This is an example.
View attachment 70100
double MA1 = iMA(NULL, PERIOD_D1, 1, 0, 0, 0, 1);
double MA2 = iMA(NULL, PERIOD_D1, 3, 0, 0, 0, 1);
double Stochastic1 = iStochastic(NULL,PERIOD_D1, 14, 3, 5, 0, 0, 0, 0);
double Stochastic2 = iStochastic(NULL,PERIOD_D1, 14, 3, 5, 0, 0, 1, 0);
Buy (MA1>MA2 && Stochastic1>Stochastic2 && sdsdsdsdsds);
Sell (MA1<MA2 && Stochastic1<Stochastic2 && sdsdsdsdsds);