Jump to content

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 (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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...