[quote=honestknave;7939310]quote One method is to have a bool function to check whether the time is between London open and London close. Create some input variables so it's possible to alter the London hours as required: enter LonOpen=8; // London Open (broker time) enter LonClose=17; // London Close (broker time) Now add the function: bool London() if(Hour()gt;=LonOpen Hour()lt;LonClose) return(true); return(false); Before opening an order, simply check the return value of London() if(London()... ) { quote This is dependent on what you mean with a day. Do you mean a 24 hour period, or profit produced between London open and London near? How can you wish to deal with orders which were opened after London open but did not shut until after London shut (or perhaps even after the next London open)? Can it be time that the order started or the time the order closed which is significant to youpersonally? [/quote

I need EA not to start orders some hours until London closes rather flexible.

The remainder orders will stay open until TP is hit as it's based on martingale. Now if this usually do not occurs until next London open it will keep on opening new actions.

Let us say I start an order two weeks until London close then EA open orders till TP is hit even if it requires a few days. I only wish to prevent EA to start orders lets say one hour prior to London closes and allow it to operate for all the evening.
Also I would like to add to EA if profit reaches xx usd level then not to start orders until next London opening.

Hope you have the idea. Thanks for help mate.