Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > General Discussion


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-15-2007, 06:00 PM
Junior Member
 
Join Date: Aug 2007
Posts: 18
mercury_man is on a distinguished road
How can make code work every second ???

Hello every one .
We know the code in neta trader work every receive signal , can we make the code work every second or until receive signal , whatever earlieset .
thank you very much .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-15-2007, 06:27 PM
Senior Member
 
Join Date: Feb 2006
Location: New Zealand
Posts: 249
Craig is on a distinguished road
There is no way I know of apart from examining the time stamps on the incoming ticks, why would you want to perform an action when you have no new data anyway?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-16-2007, 06:20 AM
Junior Member
 
Join Date: Aug 2007
Posts: 18
mercury_man is on a distinguished road
Quote:
Originally Posted by Craig View Post
There is no way I know of apart from examining the time stamps on the incoming ticks, why would you want to perform an action when you have no new data anyway?

oh my dear , thank you very much that you helping me .
in fact I want send and modify multi orders in each time , and as you see , I can made one every new data , can I send and modify multi orders in one time ?????
thank you again .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-16-2007, 08:45 AM
wookey's Avatar
Member
 
Join Date: May 2006
Location: Between Mars and Venus
Posts: 41
wookey is on a distinguished road
You can make an expert run every number of miliseconds, using infinite while loop in Init(). Look below for an example.

Code:
int init()
{
   if (IsExpertEnabled() == true)
   {
      if (IsTradeAllowed() == true)
      {
         while (true)
         {
            //------Your code here---
            Sleep(1000);
         }
      }
   }
   return(0);
}

int start()
{
   return(0);
}
It will run aproximately every second.

Wookey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-16-2007, 10:28 AM
Junior Member
 
Join Date: Aug 2007
Posts: 18
mercury_man is on a distinguished road
Quote:
Originally Posted by wookey View Post
You can make an expert run every number of miliseconds, using infinite while loop in Init(). Look below for an example.

Code:
int init()
{
   if (IsExpertEnabled() == true)
   {
      if (IsTradeAllowed() == true)
      {
         while (true)
         {
            //------Your code here---
            Sleep(1000);
         }
      }
   }
   return(0);
}

int start()
{
   return(0);
}
It will run aproximately every second.

Wookey
Oh thank you very much Wookey , I will test the code .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ea champion of 2006 does anyone know how to make it work forexking Metatrader 4 6 08-22-2007 07:06 PM
will this work? stevenali Suggestions for Trading Systems 6 07-24-2007 02:19 PM
Need Help With EA that does not work shorttermtrader Metatrader 4 0 05-02-2007 01:55 PM
This Ea Really Work sps8 Expert Advisors - Metatrader 4 18 04-02-2007 08:30 PM
How to make EA work? dr2k3 Expert Advisors - Metatrader 4 11 12-06-2006 10:39 AM


All times are GMT. The time now is 03:24 PM.



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