Sleep after loosing trade

Nov 09, 2015 at 07:13
589 개의 뷰
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 부터 멤버   게시물1718
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 부터 멤버   게시물31
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 부터 멤버   게시물1916
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
*상업적 사용 및 스팸은 허용되지 않으며 계정이 해지될 수 있습니다.
팁: 이미지/유튜브 URL을 게시하면 게시물에 자동으로 삽입됩니다!
팁: @기호를 입력하여 이 토론에 참여하는 사용자 이름을 자동으로 완성합니다.