Thread: How to code?
View Single Post
  #1072 (permalink)  
Old 07-04-2008, 09:43 PM
TheRumpledOne's Avatar
TheRumpledOne TheRumpledOne is offline
Banned
 
Join Date: Nov 2006
Posts: 802
TheRumpledOne is an unknown quantity at this point
Quote:
Originally Posted by amatrader View Post
Hi there,

I hope you don't mind me butting in here, I'm looking at a similar situation and I have a thaught on the issue... what about if you code a loop at the end of your program that says "if no order is open run through again". and let it loop maybe 3 or 4 times.

If it does that then any missed orders (which happens quite often) should surely get picked up. or is there something wrong with my thinking.

I think it would look something like this...



I'm still new to this so if it doesn't make sense please explain to me why.
Hey, that's a good idea!

I could check the time and if X seconds or minutes have elapsed then exit the loop.

THANKS!!

P.S. This was not for an EA. I don't code EAs.
Reply With Quote