Download MetaTrader 5
To add comments, please log in or register
Unable to find the right application? Order it!
Tito Bellicus
8
Tito Bellicus 2014.09.18 15:25 
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:
Alain Verleyen
Moderator
28518
Alain Verleyen 2014.09.18 15:32  
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.
Taskin Osman
803
Taskin Osman 2014.09.24 14:09  

Try something like:

 

int OnInit()
{      
        if (MaxTF!=PERIOD_M30 && MaxTF!=PERIOD_H4 && MaxTF!=PERIOD_D1) 
           {
           Alert("Not supported Timeframe");
           return(INIT_FAILED);
           }
/
To add comments, please log in or register