Forex Community Place

Dapatkan hingga
$50000
karena mengundang teman
untuk memperoleh Bonus StartUp
dari InstaForex
Tidak perlu investasi!
Mulai trading tanpa
risiko dan investasi
Dengan Bonus Permulaan 1000$
Dapatkan bonus
55%
ke akun anda!
Results 1 to 6 of 6

Thread: Mohon bantuan agar EA 1 PAIR 1x OP, logikanya bagaimana?

  1. #1
    Anggota
    ----
     
    ason is on a distinguished road ason's Avatar
    Join Date
    Feb 2012
    Posts
    126
    Accumulated bonus
    18 USD (What is this?)
    Thanks
    6
    Thanked 14 Times in 11 Posts

    Mohon bantuan agar EA 1 PAIR 1x OP, logikanya bagaimana?

    Mohon bantuan agar EA 1 PAIR 1x OP, logikanya bagaimana?

    Mohon bantuan masta


  2. The Following User Says Thank You to ason For This Useful Post:


  3. #2
    Orang Asing
    ----
     
    aldi4 is an unknown quantity at this point aldi4's Avatar
    Join Date
    Jan 2018
    Posts
    4
    Accumulated bonus
    0 USD (What is this?)
    Thanks
    0
    Thanked 1 Time in 1 Post

    Replay dan Comment

    Aku sendiri juga bingung dengan masalah PAIR di EA
    Silahkan lihat di Alatkesehatan.id untuk memesan Nebulizer Omron termurah berkualitas tinggi

  4. #3
    Anggota
    Bahagia
     
    khenshin has a spectacular aura about khenshin has a spectacular aura about khenshin's Avatar
    Join Date
    Feb 2019
    Location
    Jawa Timur
    Posts
    142
    Accumulated bonus
    18 USD (What is this?)
    Thanks
    50
    Thanked 170 Times in 87 Posts
    Quote Originally Posted by ason     
    Mohon bantuan agar EA 1 PAIR 1x OP, logikanya bagaimana?

    Mohon bantuan masta

    maksudnya gimana gan mohon diperjelas?bukanya setiap EA aktif hanya di 1 pair aja?
    kalau mau dua atau lebih ya setel manual satu persatu pair gan,
    Sukses bukan pilihan melainkan tujuan, mari sukses bersama dengan saling berbagi ilmu dan pengalaman


  5. #4
    Newbie
    Bahagia
     
    cybersukabumi is on a distinguished road cybersukabumi's Avatar
    Join Date
    Mar 2015
    Location
    Sukabumi
    Posts
    23
    Accumulated bonus
    4 USD (What is this?)
    Thanks
    1
    Thanked 14 Times in 3 Posts
    Quote Originally Posted by ason     
    Mohon bantuan agar EA 1 PAIR 1x OP, logikanya bagaimana?

    Mohon bantuan masta


    Maksudnya 1x OP pada waktu tersebut bukan Gan?

    ---------- Post added at 09:57 ---------- Previous post was at 09:55 ----------

    Quote Originally Posted by aldi4     
    Aku sendiri juga bingung dengan masalah PAIR di EA
    Kalo mau 1 kali OP dan cuma 1 pair aja yg OPnya bisa pake ini Gan :
    if(......... ketentuan buat OP && OrdersTotal==0){ OP Buy/Sell;} gitu Gan

  6. #5
    Orang Lama
    Semilir
     
    amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo's Avatar
    Join Date
    Sep 2010
    Location
    Sekitaran Bumi
    Posts
    1,049
    Accumulated bonus
    139 USD (What is this?)
    Thanks
    96
    Thanked 605 Times in 309 Posts
    Quote Originally Posted by ason     
    Mohon bantuan agar EA 1 PAIR 1x OP, logikanya bagaimana?

    Mohon bantuan masta

    contoh 1x OP perhari per pair
    Code:
    #define HR2400 86400       // 24 * 3600
    
    int      TimeOfDay(datetime when){  return( when % HR2400          );         }
    datetime DateOfDay(datetime when){  return( when - TimeOfDay(when) );         }
    datetime Today(){                   return(DateOfDay( TimeCurrent() ));       }
    buat di atas sendiri sebelum OnInit()

    lalu bikin pengenal order di dalam blok OnTick()
    Code:
    datetime AkhirTrade;
    
    for (int a = 0; a < OrdersHistoryTotal(); a++)
       {
          if(OrderSelect(a, SELECT_BY_POS,MODE_HISTORY) == true)
          { 
             if (OrderSymbol()==Symbol() && OrderMagicNumber() == MagicNumber) 
             {
             AkhirTrade = DateOfDay(OrderCloseTime());
    
             }
          }
       }
    contoh untuk penggunaan
    Code:
    if(Today()>AkhirTrade)Alert("Silahkan Trade");
          else(Alert("Jangan Trade"));
    EA melihat waktu close order terakhir. lalu mencocokkan dg tanggal sekarang. jika hari ini > jam terakhir close trade maka EA silahkan jalan.

    Jangan lupa mengganti MagicNumber dg angka yg sesuai

    ---------- Post added at 11:34 ---------- Previous post was at 11:29 ----------

    Quote Originally Posted by ason     
    Mohon bantuan agar EA 1 PAIR 1x OP, logikanya bagaimana?

    Mohon bantuan masta

    jika yg dimaksud satu kali open orders, maka

    Code:
    int Buy=0, Sell=0;
    
    for (int a = 0; a < OrdersTotal(); a++)
       {
          if(OrderSelect(a, SELECT_BY_POS,MODE_TRADES) == true)
          { 
             if (OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber && OrderCloseTime() == 0) 
             {
                   if(OrderType() == OP_BUY)  {Buy++;} 
                   if(OrderType() == OP_SELL) {Sell++;}
             } 
          }
       }
    Untuk Contoh penggunaan
    Code:
    if(Buy==1 || Sell==1)Alert("Order Maksimal sekali");
    jangan lupa mengganti magicnumber
    Yahuuu

  7. The Following User Says Thank You to amtwoxtwo For This Useful Post:

    Lusifa13 (04-30-2019)

  8. <a href="https://www.mt5.com/id/">Forex Portal MT5</a>
  9. #6
    Pecandu
    Santai
     
    Lusifa13 has a spectacular aura about Lusifa13 has a spectacular aura about Lusifa13's Avatar
    Join Date
    Mar 2019
    Posts
    464
    Accumulated bonus
    37 USD (What is this?)
    Thanks
    203
    Thanked 160 Times in 116 Posts
    Quote Originally Posted by amtwoxtwo     
    contoh 1x OP perhari per pair
    Code:
    #define HR2400 86400       // 24 * 3600
    
    int      TimeOfDay(datetime when){  return( when % HR2400          );         }
    datetime DateOfDay(datetime when){  return( when - TimeOfDay(when) );         }
    datetime Today(){                   return(DateOfDay( TimeCurrent() ));       }
    buat di atas sendiri sebelum OnInit()

    lalu bikin pengenal order di dalam blok OnTick()
    Code:
    datetime AkhirTrade;
    
    for (int a = 0; a < OrdersHistoryTotal(); a++)
       {
          if(OrderSelect(a, SELECT_BY_POS,MODE_HISTORY) == true)
          { 
             if (OrderSymbol()==Symbol() && OrderMagicNumber() == MagicNumber) 
             {
             AkhirTrade = DateOfDay(OrderCloseTime());
    
             }
          }
       }
    contoh untuk penggunaan
    Code:
    if(Today()>AkhirTrade)Alert("Silahkan Trade");
          else(Alert("Jangan Trade"));
    EA melihat waktu close order terakhir. lalu mencocokkan dg tanggal sekarang. jika hari ini > jam terakhir close trade maka EA silahkan jalan.

    Jangan lupa mengganti MagicNumber dg angka yg sesuai

    ---------- Post added at 11:34 ---------- Previous post was at 11:29 ----------



    jika yg dimaksud satu kali open orders, maka

    Code:
    int Buy=0, Sell=0;
    
    for (int a = 0; a < OrdersTotal(); a++)
       {
          if(OrderSelect(a, SELECT_BY_POS,MODE_TRADES) == true)
          { 
             if (OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber && OrderCloseTime() == 0) 
             {
                   if(OrderType() == OP_BUY)  {Buy++;} 
                   if(OrderType() == OP_SELL) {Sell++;}
             } 
          }
       }
    Untuk Contoh penggunaan
    Code:
    if(Buy==1 || Sell==1)Alert("Order Maksimal sekali");
    jangan lupa mengganti magicnumber
    Ijin sedot gan, kalo boleh tau darimana agan belajar coding beginian? Saya agak susah nyari sumber diblog lokal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts