Please help how to Turn Off Turn On buy sell block and close all trade in Friday 23:58-23:59 GMT to prevent the huge gap which is very important.
-

Hi let say I want to close my all trade at Friday 23:58 GMT then also turn off my Buy block number 58 and Sell block number 69, then after 23:59 the EA will turn on the Buy block number 58 and Sell block number 69 again. I don't know how to do that and not sure that I made in picture correct or not, if not please recommend and make some easy example please. thank you and Best respectfully.
-
@zarbitz Take a look at my Tutorial EA I published recently. Actual Project Link: https://fxdreema.com/shared/Udh0CS5Ud
There I do similar things. For close on Friday, I have defined a constant in order to switch that feature ON/OFF).
On the On Init tab I have a condition that sets a flag to true or false depending on the configured parameter (instead of flag you could also use Turn ON /OFF blocks.

Assuming the CoF flag is set to true, I have on the on Tick tab the following separate path.

The last block connects to the central close Trades block.
For Turning ON/OFF trade entries take a look at this tree on the on Tick path ..

So Monday to Thursday I have different trading hours. On Fridays, if close on Fridays is true, I will disable the entry tree at the same time as the close should happen (in order to avoid that after closes new trades are opened again).
-
@trader-philipps thank you very much sir. this very helpful. I'm appreciate.