How to close all open position at a certain time New comment Kevan Wells 2011.02.23 16:36 Hi, i'm new to this forum. I'd like to set up a simple script that takes all the open positions on my account at a certain time (let's say 7 a.m.) and close oll of them at the BID price ? Thanks, Luca Closing a manually opened position [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. Need help Kevan Wells 2011.02.23 17:30 #1 what about the following (got something from the book section) ? for (int i=1; i<=OrdersTotal(); i++) { OrderClose (i, i.lots, BID, 2) } questions ? how do i condition this to a time ? is there any time function ? is correct to get the lots on the order saying i.lots ? Thanks. [Archive!] Any rookie question, How to use the Hopefully simple/quick question about New comment
Hi,
i'm new to this forum. I'd like to set up a simple script that takes all the open positions on my account at a certain time (let's say 7 a.m.) and close oll of them at the BID price ?
Thanks,
Luca