Hello RedWolf,
What you are looking for can easily be implemented using the "GetTimeUnit" component. Please use the User Guide in the Help drop down menu of the Visual JForex Flash Editor to learn more about it. Also, you may take a look at some of the topics in the
Working With Time section of the Visual JForex sub-forum.
Last but not the least, if you may please upload your strategy's .VFS file, then either one of us community members or Dukascopy's own Visual JForex Experts may be able to better assist you.