Sleep after loosing trade

Nov 09, 2015 at 07:13
770流覽
5 Replies
會員從Jan 09, 2015開始   7帖子
Nov 09, 2015 at 07:13
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?
會員從Nov 21, 2011開始   1601帖子
Nov 09, 2015 at 10:24
Hi,

Simply check at the trade history.

If last order closed < 0, then don't open new trades until timecurrent() > LastOrderclosedtime()+X
會員從Sep 06, 2011開始   30帖子
Nov 10, 2015 at 11:48
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.
會員從Jan 09, 2015開始   7帖子
Nov 11, 2015 at 13:14
Nice, thanks guys. I knew there would be a way to do it but I was getting all crossed up!
rob559
forex_trader_29148
會員從Feb 11, 2011開始   1768帖子
Nov 11, 2015 at 17:01
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..
會員從Apr 10, 2015開始   17帖子
Nov 18, 2015 at 07:39
the maidore ea script should work to help the request.
登錄 / 註冊 to comment
You must be connected to Myfxbook in order to leave a comment
*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。