proprietario Posted August 27, 2010 Report 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
proprietario Posted August 27, 2010 Author Report 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.
iwjw Posted August 27, 2010 Report 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now