- Beranda
- Komunitas
- Pemrograman
- Sleep after loosing trade
Edit Komentar Anda
Sleep after loosing trade
Menjadi Anggota Sejak Jan 09, 2015
7 postingan
Nov 09, 2015 at 07:13
Menjadi Anggota Sejak Jan 09, 2015
7 postingan
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?
Menjadi Anggota Sejak Nov 21, 2011
1601 postingan
Nov 09, 2015 at 10:24
Menjadi Anggota Sejak Nov 21, 2011
1601 postingan
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
Menjadi Anggota Sejak Sep 06, 2011
30 postingan
Nov 10, 2015 at 11:48
Menjadi Anggota Sejak Sep 06, 2011
30 postingan
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.
Menjadi Anggota Sejak Jan 09, 2015
7 postingan
Nov 11, 2015 at 13:14
Menjadi Anggota Sejak Jan 09, 2015
7 postingan
Nice, thanks guys. I knew there would be a way to do it but I was getting all crossed up!
forex_trader_29148
Menjadi Anggota Sejak Feb 11, 2011
1768 postingan
Nov 11, 2015 at 17:01
Menjadi Anggota Sejak Feb 11, 2011
1768 postingan
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..
Menjadi Anggota Sejak Apr 10, 2015
17 postingan
Nov 18, 2015 at 07:39
Menjadi Anggota Sejak Apr 10, 2015
17 postingan
the maidore ea script should work to help the request.
*Penggunaan komersial dan spam tidak akan ditoleransi dan dapat mengakibatkan penutupan akun.
Tips: Memposting URL gambar/YouTube akan otomatis menyematkannya di postingan Anda!
Tips: Ketik tanda @ untuk melengkapi nama pengguna secara otomatis yang berpartisipasi dalam diskusi ini.