READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

EA not closing trades on Friday

7 replies

nolube

Customer, bbp_participant, community, 115 replies.

Visit profile

10 years ago #115056

I’m running this strategy on a small real account, it exits trades at EOD but for some reason it is not exiting on Fridays. I’m wondering if some of these settings are conflicting?

 

 

File: sqeod.jpgsqeod.jpg

0

CMKCMK

Customer, bbp_participant, community, 44 replies.

Visit profile

10 years ago #136610

Hi nolube

 

 

 

I am encountering the same problem as you described above. My trades (I set it to close on Friday) open throughout the weekends and only close the first instant on Monday morning (GMT +8) when the market opens. 

 

So far I leave it as it is and it still works for me. But I would certainly like to hear from Marc or Tomas what they think about this…

 

 

 

Cheers

 

 

 

https://www.myfxbook.com/members/FXCMK/mt4-2000213/1558589/1Q77lrpwicbRJhhLWv1w

https://www.myfxbook.com/members/FXCMK/mt4-2001988/1559022/Hks0bj0M666iFMpuAIXf

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

10 years ago #136625

Could you please attach the strategy file (STR) that is causing you problems?  Or alternatively you can send it to e-mail [email protected]

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

10 years ago #136712

I believe that it is caused by the fact that your broker stops tradig on Friday before you set your EA to close the trades.
 
There is a special EA parameter ExitTimeOnFriday where you can set the exact exit time on which all the orders will be closed. It is by default set to 00:00, which means midnight.
If your broker closes all trading at 23:00 then your EA would not have a chance to close all trades.
 
You have to use this parameter and set the time some time before the real market closes on Friday – you can easily see it in the time of the last candle on 1 min chart.
 
Please let us know if it solved your problem.

Mark
StrategyQuant architect

0

CMKCMK

Customer, bbp_participant, community, 44 replies.

Visit profile

10 years ago #136720

Dear Tomas and Mark
 
 
You are right.
I followed your suggestion and It Works. I have changed the ExitTimeOnFriday  from default 00:00 to 23:59 and the trades closed on Friday.
 
Thanks 

0

nolube

Customer, bbp_participant, community, 115 replies.

Visit profile

10 years ago #136723

This was the first thing that I tried, and it didn’t work.. maybe I’ll send the .str file in soon.

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

10 years ago #136724

if it didn’t work make sure you really set the time right. It must be before your broker stops trading on Friday – you can see it on the chart when it stops – it can be at 22:00 or even sooner, depending on broker timezone.

Mark
StrategyQuant architect

0

nolube

Customer, bbp_participant, community, 115 replies.

Visit profile

10 years ago #136726

if it didn’t work make sure you really set the time right. It must be before your broker stops trading on Friday – you can see it on the chart when it stops – it can be at 22:00 or even sooner, depending on broker timezone.

 

Hi Mark, you can see I have done that in my initial screenshot. I’ve checked this against my 1min chart as suggested also, tried bringing it in to 23:45 in case it didn’t trade for the last 2 minutes etc.

0

Viewing 7 replies - 1 through 7 (of 7 total)