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!
Page 2 of 2
FirstFirst 1 2
Results 11 to 13 of 13

Thread: [help] Ambil lot dan profit history

  1. #11
    Pecandu
    Yeehaw
     
    daengrani is a name known to all daengrani is a name known to all daengrani is a name known to all daengrani is a name known to all daengrani is a name known to all daengrani is a name known to all daengrani's Avatar
    Join Date
    Jan 2011
    Location
    Makassar
    Posts
    591
    Accumulated bonus
    78 USD (What is this?)
    Thanks
    533
    Thanked 686 Times in 241 Posts
    atau fungsi berikut:

    PHP Code:
    //---------------------------------------------------------
    double ConsecLossTrades(int &lossTradesdouble &lot)                    
    {                                       
       
    lossTrades=0;
       
    int i;
       
       for(
    i=0i<OrdersHistoryTotal(); i++) 
       {                                     
          if (
    OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false) break;
          if (
    OrderSymbol()!=Symbol()) continue;                       
          if (
    OrderMagicNumber()!=MagicNumber) continue;                       
          if (
    OrderCloseTime() < 1) continue;   // redundant check
            
          
    if(OrderProfit()<0)   { lossTrades++;    lot=OrderLots(); }
          else  { 
    lossTrades=0;  lot 0.0; }
       }
       return (
    lot);
    }
    //--------------------------------------------------------- 
    klu ga bisa juga, coba share EA yg lengkap

  2. FB_indo
  3. #12
    Penggemar
    ----
     
    hasyim20 is on a distinguished road hasyim20's Avatar
    Join Date
    Aug 2016
    Posts
    317
    Accumulated bonus
    241 USD (What is this?)
    Thanks
    447
    Thanked 14 Times in 14 Posts
    wahhh benar-benar master coding .. singkat banget.. namun ane sebagai pemula masih bingung kalau mau buat coding itu dengan progran apa yaaa gannn?

  4. <a href="https://www.mt5.com/id/">Forex Portal MT5</a>
  5. #13
    Pecandu
    Bahagia
     
    cacink is a jewel in the rough cacink is a jewel in the rough cacink is a jewel in the rough cacink's Avatar
    Join Date
    May 2013
    Location
    Yogya Istimewa
    Posts
    421
    Accumulated bonus
    123 USD (What is this?)
    Thanks
    197
    Thanked 255 Times in 130 Posts
    wahhh benar-benar master coding .. singkat banget.. namun ane sebagai pemula masih bingung kalau mau buat coding itu dengan progran apa yaaa gannn?
    programnya sudah dari bawaan MT4 gan namanya metaeditor. pencet F4 saat MT4nya sudah open, nanti lgsung kebuka program metaeditor nya gan.metaeditor bisa buat EA/expert advisor,custom indicator dan script. kalau agan mau belajar coding khususnya dalam perforexan pantau aja subforum dimari gan pasti agan mendapat pencerahan dalam dunia coding forex.

Page 2 of 2
FirstFirst 1 2

Posting Permissions

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