Dear FF members,
I've just coded a little EA (actually it's a script, but i had to code it as EA because MT4 remove scripts when changing tf, but don't remove EAs) that every x ticks movements automatically change the timeframe of the window where it's attached.
I'm using it on a dedicated window that every few seconds change tf (it start from d1, 4h, 1h, 30m, 15m, 5m, 1m, d1...etc.).
I've just found myself changing tf thousands times everyday, so today i've decided to code this little ea that do it for me, in the meantime i use the other window (the one without ea) to place my trades draw trendlines etc.
I'm just using it from 5 minutes, so don't know if it will be very useful, but if you change tf continuously like me many times a day, maybe this can be nice for you!
The only input of the EA is ticksnumbertochange, default is 5, but feel free to find the best number you like.
(of course during strong market activity like news release etc, 5ticks can be a number very little).
I've tried to use the Sleep(milliseconds) function, but it seems that when a new tick happen, the mt4 reload the code without waiting the Sleep() function, so it's useless :|
But please if you found a way to use Time instead of tick-changes, just feel free to modify it and post it too
I've just coded a little EA (actually it's a script, but i had to code it as EA because MT4 remove scripts when changing tf, but don't remove EAs) that every x ticks movements automatically change the timeframe of the window where it's attached.
I'm using it on a dedicated window that every few seconds change tf (it start from d1, 4h, 1h, 30m, 15m, 5m, 1m, d1...etc.).
I've just found myself changing tf thousands times everyday, so today i've decided to code this little ea that do it for me, in the meantime i use the other window (the one without ea) to place my trades draw trendlines etc.
I'm just using it from 5 minutes, so don't know if it will be very useful, but if you change tf continuously like me many times a day, maybe this can be nice for you!
The only input of the EA is ticksnumbertochange, default is 5, but feel free to find the best number you like.
(of course during strong market activity like news release etc, 5ticks can be a number very little).
I've tried to use the Sleep(milliseconds) function, but it seems that when a new tick happen, the mt4 reload the code without waiting the Sleep() function, so it's useless :|
But please if you found a way to use Time instead of tick-changes, just feel free to modify it and post it too