Automatic Timeframe Switcher

 
I have this EA that automatically changes the timeframe.
The problem is that it shows all timeframes (M1 to the higher timeframe defined by me: M1→M5→M15→M30→H1→H4→D1→M1...).

I want it to show only three timeframes: M30; H4 and D1.
Or, if possible, modify to display the wanted timeframes.
I tried to modify it but I could not.
Someone could make this modification for me please?

Files:
 
41007:
I have this EA that automatically changes the timeframe.
The problem is that it shows all timeframes (M1 to the higher timeframe defined by me: M1→M5→M15→M30→H1→H4→D1→M1...).

I want it to show only three timeframes: M30; H4 and D1.
Or, if possible, modify to display the wanted timeframes.
I tried to modify it but I could not.
Someone could make this modification for me please?


See Freelance section.
 

Try something like:

 

int OnInit()
{      
        if (MaxTF!=PERIOD_M30 && MaxTF!=PERIOD_H4 && MaxTF!=PERIOD_D1) 
           {
           Alert("Not supported Timeframe");
           return(INIT_FAILED);
           }
Reason: