Edit Your Comment
Sleep after loosing trade
Nov 09, 2015 at 07:13
Tham gia từ Jan 09, 2015
7bài viết
Hi Everyone. I'm trying to make something to add to my EA that means after it closes a trade at a loss the EA 'sleeps' for X amount of time but I'm stuck on how to do it.
Is there any way to record balance say every hour then current balance can be compared to that for example?
Is there any way to record balance say every hour then current balance can be compared to that for example?
Tham gia từ Nov 21, 2011
1718bài viết
Nov 09, 2015 at 10:24
Tham gia từ Nov 21, 2011
1718bài viết
Hi,
Simply check at the trade history.
If last order closed < 0, then don't open new trades until timecurrent() > LastOrderclosedtime()+X
Simply check at the trade history.
If last order closed < 0, then don't open new trades until timecurrent() > LastOrderclosedtime()+X
Tham gia từ Sep 06, 2011
31bài viết
Nov 10, 2015 at 11:48
Tham gia từ Sep 06, 2011
31bài viết
Like CrazyTrader said you need to check trade history first. And to sleep for X times, you only need to start a timer that will set a flag.
forex_trader_29148
Tham gia từ Feb 11, 2011
1916bài viết
Nov 11, 2015 at 17:01
Tham gia từ Feb 11, 2011
1916bài viết
TomS91 posted:
Hi Everyone. I'm trying to make something to add to my EA that means after it closes a trade at a loss the EA 'sleeps' for X amount of time but I'm stuck on how to do it.
Is there any way to record balance say every hour then current balance can be compared to that for example?
you can modify it in order to open only .01 lot the next trade..
Tham gia từ Apr 10, 2015
17bài viết
Nov 18, 2015 at 07:39
Tham gia từ Apr 10, 2015
17bài viết
the maidore ea script should work to help the request.
*Nghiêm cấm sử dụng cho mục đích thương mại và spam, nếu vi phạm có thể dẫn đến việc chấm dứt tài khoản.
Mẹo: Đăng ảnh/url youtube sẽ tự động được nhúng vào bài viết của bạn!
Mẹo: Dùng @ để tự động điền tên người dùng tham gia vào cuộc thảo luận này.