Edit Your Comment
Sleep after loosing trade
Nov 09, 2015 at 07:13
เป็นสมาชิกตั้งแต่ Jan 09, 2015
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?
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
เป็นสมาชิกตั้งแต่ Nov 21, 2011
1601 โพสต์
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

forex_trader_29148
เป็นสมาชิกตั้งแต่ Feb 11, 2011
1768 โพสต์
Nov 11, 2015 at 17:01
เป็นสมาชิกตั้งแต่ Feb 11, 2011
1768 โพสต์
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 โพสต์

*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ