เพื่อใช้การแชท โปรดเข้าสู่ระบบ
กลับไปที่รายชื่อ
TomS91
Nov 09 2015 at 07:13
7 โพสต์
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?
CrazyTraderfx (CrazyTrader)
Nov 09 2015 at 10:24
1718 โพสต์
Hi,

Simply check at the trade history.

If last order closed < 0, then don't open new trades until timecurrent() > LastOrderclosedtime()+X
Crazy Coder (MasterKey)
Nov 10 2015 at 11:48
31 โพสต์
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.
TomS91
Nov 11 2015 at 13:14
7 โพสต์
Nice, thanks guys. I knew there would be a way to do it but I was getting all crossed up!
rob559
Nov 11 2015 at 17:01
1916 โพสต์
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..
lawners1791
Nov 18 2015 at 07:39
17 โพสต์
the maidore ea script should work to help the request.
โปรดเข้าสู่ระบบเพื่อแสดงความคิดเห็น