proprietario Posted August 27, 2010 Report Share Posted August 27, 2010 Good evening everyone, I want a script that I shut all orders active at one precise time the day. You know where I can find something this type? I need to adjust the hours for closure of all open pairs, every week. Thank's Quote Link to comment Share on other sites More sharing options...
proprietario Posted August 27, 2010 Author Report Share Posted August 27, 2010 to give examples ... we want that on Monday, all open positions are closed at 08:00 am ... I am looking for a script or program to give me this opportunity, or plan the closure of all open positions. Quote Link to comment Share on other sites More sharing options...
iwjw Posted August 27, 2010 Report Share Posted August 27, 2010 (edited) extern int CloseDay=1 //0=Sunday..1=Monday and so on extern int CloseHour=12 extern int CloseMinute=0 if(TimeDayOfWeek(Time[0])==CloseDay && TimeHour(Time[0])==CloseHour && TimeMinute(Time[0])==CloseMinute) { CloseAllOpenTrades() } How to close open trades you'll find in the EAs that are posted here edit: you would have to run it as an EA Edited August 27, 2010 by iwjw Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.