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 12 of 12

Thread: Cara Membuat Tombol Close All Order pada Chart

  1. #11
    Orang Lama
    Bahagia
     
    umar1177 is a jewel in the rough umar1177 is a jewel in the rough umar1177 is a jewel in the rough umar1177 is a jewel in the rough umar1177's Avatar
    Join Date
    May 2013
    Location
    semboro
    Posts
    798
    Accumulated bonus
    96 USD (What is this?)
    Thanks
    37
    Thanked 307 Times in 180 Posts
    Quote Originally Posted by proton99     
    terima kasih atas bantuannya agan id4799, saya coba dulu.

    ---------- Post added at 06:23 AM ---------- Previous post was at 05:55 AM ----------

    Gan saya sudah coba seperti ini :
    //+------------------------------------------------------------------+
    //| ChartEvent function |
    //+------------------------------------------------------------------+
    void OnChartEvent(const int id,
    const long &lparam,
    const double &dparam,
    const string &sparam)
    {
    if(id==CHARTEVENT_OBJECT_CLICK && sparam == "NAMA_OBJECT")
    {if (CloseAllNow) {CloseAll(Magic, 7); CloseAll(MagicTrending, 7);return (0);}
    }
    }
    //+------------------------------------------------------------------+

    tapi masih ada errornya : 'OnChartEvent' - function can be declared only in the global scope
    salah dimananya ya..? mohon bantuannya dong para agan master semua, trims.
    cek dulu ya

    ---------- Post added at 08:24 AM ---------- Previous post was at 08:20 AM ----------

    untuk "void" tidak ada retun
    Last edited by umar1177; 01-03-2017 at 08:21. Reason: salahh
    101177ui@gmail.com skype ismail.1177
    jasa bikin EA dan Indi

  2. FB_indo
  3. #12
    Poster Lama
    T ermenung
     
    mas ahmad is a jewel in the rough mas ahmad is a jewel in the rough mas ahmad is a jewel in the rough mas ahmad is a jewel in the rough mas ahmad's Avatar
    Join Date
    Jan 2012
    Location
    sidoarjo
    Posts
    3,473
    Accumulated bonus
    686 USD (What is this?)
    Thanks
    247
    Thanked 350 Times in 268 Posts
    Quote Originally Posted by id4799     
    Bisa pakai cara ini gan
    PHP Code:

    //+------------------------------------------------------------------+
    //| ChartEvent function                                              |
    //+------------------------------------------------------------------+
    void OnChartEvent(const int id,
                      const 
    long &lparam,
                      const 
    double &dparam,
                      const 
    string &sparam)
      {
    //---
       
    if(id==CHARTEVENT_OBJECT_CLICK && sparam == "NAMA_OBJECT"){
        
    // buat perintah close disini
       
    }
      }
    //+------------------------------------------------------------------+ 
    bisa ditambahin countdown close gak gan scriptnya? misalnya di waktu 10 menit setelah klik muncul countdown close,
    mohon pencerahannya gan. btw thanks buat penjelasan scriptnya. kan lumayan bisa buat ditinggal tidur kalau misalkan close nya berdasarkan sesi sesi eropa asia amerika

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