- Beranda
- Komunitas
- Pemrograman
- How program Lot = EURGBP x GBPUSD ?
Edit Komentar Anda
How program Lot = EURGBP x GBPUSD ?
forex_trader_318221
Menjadi Anggota Sejak Apr 07, 2016
37 postingan
Aug 13, 2016 at 11:05
Menjadi Anggota Sejak Apr 07, 2016
37 postingan
Hi guys!
I’d like to program an EA that open a position with lot = ((EURGBP’s bid + EURGBP’s ask)/2 x (GBPUSD’Sbid + GBPUSD’s ask)/2). How can I do it? What function I should use in the MetaEditor for return the quotation of EURGBP and GBPUSD ?
Thanks!!!
I’d like to program an EA that open a position with lot = ((EURGBP’s bid + EURGBP’s ask)/2 x (GBPUSD’Sbid + GBPUSD’s ask)/2). How can I do it? What function I should use in the MetaEditor for return the quotation of EURGBP and GBPUSD ?
Thanks!!!
forex_trader_25447
Menjadi Anggota Sejak Dec 21, 2010
127 postingan
Aug 13, 2016 at 20:23
Menjadi Anggota Sejak Dec 21, 2010
127 postingan
By theory :
1. To read Ask and Bid for any pair, you need that pair to be listed in Market Watch window.
2. Then you can use MarketInfo("EURUSD",MODE_ASK);
But I recommend you to have 1 open chart for each Symbol.
Then you can read info for any of this Symbols.
1. To read Ask and Bid for any pair, you need that pair to be listed in Market Watch window.
2. Then you can use MarketInfo("EURUSD",MODE_ASK);
But I recommend you to have 1 open chart for each Symbol.
Then you can read info for any of this Symbols.
*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.