Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted

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

Posted

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.

Posted (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 by iwjw

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...