Problem with TimeFrame Shortkey script

 

I just download script to activate "next & previous TimeFrame" shortcut key.. (for MetaTrader 5)

But it seems minor error inside program..... I try debugging with MetaEditor and found 1 error line.

 ...... I can not contact the creator, so anybody here can help ?

Files:
NextTF.mq5  2 kb
PrevTF.mq5  2 kb
 
widhie75:

I just download script to activate "next & previous TimeFrame" shortcut key.. (for MetaTrader 5)

But it seems minor error inside program..... I try debugging with MetaEditor and found 1 error line.

 ...... I can not contact the creator, so anybody here can help ?

Add the following line after the last 'case' line :

      case PERIOD_MN1: return(PERIOD_W1);
      default: return(-1);
 

Wow,,, thanks angevoyageur.... It works now... and here is the corrected version...

Also thanks to programmer who create this usefull script...


1. Extract this Zip file....

2. Copy all files into [MetaTrader 5 installed folder]/MQL5/Scripts/Examples

 

Hi Guys,


I recently started using the MT4 platform, so I am quite new to this.

Is there a way to use this script for a MT4 platform?


thanks

Alex