Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2006, 06:56 PM
Junior Member
 
Join Date: Apr 2006
Posts: 2
RobM is on a distinguished road
Shutdown by timeout

Hi everyone,
I'm new to the forum so excuse me if this is not the right place to ask this question. I have written a script for MT4 and basically it waits until the start of a new daily bar to perform it's calculations. The problem I have is that after a short while the script seems to hang up and, when I go to remove it, I get 'shutdown by timeout' in the experts tab of the terminal window. The beginning code goes like this:

timeold=TimeDay(Time[0]);
timenow=timeold;
while(timeold == timenow)
{
timenow=TimeDay(Time[0]);
}

Does anyone know why this would be occurring? Is there a time limit on a script executed on a chart?
Also I have been testing with FXDD because they are one of the few companies who incorporate the odd Sunday data and thus allow me to create automated pivot points without Monday always being messed up. However they are not supporting MT4 in a live environment. Does anyone know a company that supports MT4 and does not add the three or four bars of Sunday night data?
Thanks for all your help.

Last edited by RobM; 05-08-2006 at 07:07 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 05-08-2006, 07:54 PM
Member
 
Join Date: Jan 2006
Location: Florida
Posts: 45
HoggZilla is on a distinguished road
According to your code, this will run everytime.

timeold=TimeDay(Time[0]);
timenow=timeold;
while(timeold == timenow)
{
timenow=TimeDay(Time[0]);
}

You have set both timeold and timenow to the same thing before the while statement. Now assuming this is what you want to do, how do you exit this while until the day changes. It will stay in this loop all day.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 05-08-2006, 09:21 PM
Junior Member
 
Join Date: Apr 2006
Posts: 2
RobM is on a distinguished road
It will only stay in the loop until the day changes (ie next daily bar). It will then perform it's task once and exit. That's what I want. Basically I want to start it running before going to bed and know that it'll do it's job as soon as a new daily bar starts. Note this is a script not an EA.

Last edited by RobM; 05-08-2006 at 09:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 12-09-2007, 04:17 AM
Junior Member
 
Join Date: Nov 2007
Posts: 1
bacex2000 is on a distinguished road
Unhappy i have the same problem too

hi RObM....do you have to solve the "shutdown by timeout"? problem...

cause i don't fix my script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT. The time now is 01:43 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.