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!

Trades keep closing Immediately

2 replies

metaskriptz

Subscriber, bbp_participant, customer, community, sq-ultimate, 11 replies.

Visit profile

11 months ago #291408

Hello,

 

Im stumped on an issue I’m currently having. Some of my strategies like my strategy on gold futures keep closing immediately after opening. It’s strategy based on daily bars and at the end of the day it opens and closes the trade immediately. I’m using MT5 trading Darwinex Futures. It’s taking an immediate loss. It’s been happening every day. Is there a known solution for this?

Thanks

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

11 months ago #291657

Does this happen to many strategies? Or only those trading the daily timeframe?

Would you share a sample? You can send me to [email protected] for further analysis

0

metaskriptz

Subscriber, bbp_participant, customer, community, sq-ultimate, 11 replies.

Visit profile

11 months ago #291659

I had chatgbt fix the code. Long info short, It was because the trade was happening at daily close and the data wasn’t populating yet for the EA to work properly. I fixed it by adding a 5 minute delay to the code

0

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