EA overlapping during busy hours?

 

Dear All


Let's say that I've programmed an EA that takes 1 second to run from start to end (including opening/closing orders). What happens if the market is very busy and ticks come 2 or more times in a second. Does that mean that the second instance will run even before the first instance is even finished? Bottomline is that I want my EA to run one at a time. Please explain this to me. Thanks!


 

Lets say you write a couple of test EA that takes a few seconds to run and find out?

 
The start() function is triggered only if the EA is idle when a tick arrives. CB
 
cloudbreaker wrote >>
The start() function is triggered only if the EA is idle when a tick arrives. CB

Yeah otherwise think of how dangerous the Sleep() function would be hehe.

 
cloudbreaker:
The start() function is triggered only if the EA is idle when a tick arrives. CB
phy:

Lets say you write a couple of test EA that takes a few seconds to run and find out?



Thanks guys. I did try phy's suggestion.. and it's exactly what CB said. =)

 
Awesome, good that you came and confirmed your findings. Could help a newbie out in the searches later on.
Reason: