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 3
FirstFirst 1 2 3 LastLast
Results 11 to 20 of 28

Thread: request buatin script sell limit otomatis pasang buy stop sesuwai distance

  1. #11
    Forum Veteran
    ----
     
    reinji has a spectacular aura about reinji has a spectacular aura about reinji has a spectacular aura about reinji's Avatar
    Join Date
    Aug 2010
    Posts
    5,583
    Accumulated bonus
    1395 USD (What is this?)
    Thanks
    78
    Thanked 255 Times in 216 Posts
    Black Frame Talent: Kontes Demotivator pada Forum MT5.com
    Quote Originally Posted by caid17     
    sory kalo masih ada yg error, soalnya belum tak kompile dan tak coba...
    coba yang ini gan..
    PHP Code:
    //+------------------------------------------------------------------+
    //| Instant Sell.mq4 |
    //| Untuk kita semua yang ingin simple saja . |
    //| http://sumberdolaronline.blogspot.com/ |
    //+------------------------------------------------------------------+
    #property copyright "Ryo321"
    #property link "http://sumberdolaronline.blogspot.com/"

    #include <stdlib.mqh>
    #property show_inputs
    extern double Lots =0.1;
    extern int dist =30;
    extern double harga =1.0030;
    extern string ket1 ="isi dist dengan jarak antar harga sell limit dengan buy stop";
    extern string ket2 ="isi harga dengan harga dari sell limit";

    //+------------------------------------------------------------------+
    //| script "transaksi untuk semua pairs" |
    //+------------------------------------------------------------------+
    int start()
    {
    //----
    int ticket=OrderSend(Symbol(),OP_SELLLIMIT,Lots,harga, 3,0,0,"coba1",1,0,CLR_NONE);
    if(ticket<1)
    {
    int error=GetLastError();
    Print("Error = ",ErrorDescription(error));
    return;
    }
    int ticket1=OrderSend(Symbol(),OP_BUYSTOP,Lots,harga+d ist*Point,3,"coba2",2,0,CLR_NONE);
    if(ticket1<1)
    {
    int error1=GetLastError();
    Print("Error = ",ErrorDescription(error1));
    return;
    }
    return(0);
    }
    //+------------------------------------------------------------------+
    ini buat buy limit..
    PHP Code:
    #include <stdlib.mqh>
    #property show_inputs
    extern double Lots =0.1;
    extern int dist =30;
    extern double harga =1.0030;
    extern string ket1 ="isi dist dengan jarak antar harga sell limit dengan buy stop";
    extern string ket2 ="isi harga dengan harga dari sell limit";

    //+------------------------------------------------------------------+
    //| script "transaksi untuk semua pairs" |
    //+------------------------------------------------------------------+
    int start()
    {
    //----
    int ticket=OrderSend(Symbol(),OP_BUYLIMIT,Lots,harga,3 ,0,0,"coba1",1,0,CLR_NONE);
    if(ticket<1)
    {
    int error=GetLastError();
    Print("Error = ",ErrorDescription(error));
    return;
    }
    int ticket1=OrderSend(Symbol(),OP_SELLSTOP,Lots,harga-dist*Point,3,0,0,"coba2",2,0,CLR_NONE);
    if(ticket1<1)
    {
    int error1=GetLastError();
    Print("Error = ",ErrorDescription(error1));
    return;
    }
    return(0);
    }
    //+------------------------------------------------------------------+
    good luck...
    wadu, yang sell melilid ko muncul gini
    Code:
    yang buy melilid malah bisa, cuman gak order ke chart, munculnya gini
    HTML Code:
    [url=http://www.servimg.com/image_preview.php?i=1013&u=15459014][img]http://i45.servimg.com/u/f45/15/45/90/14/2012-277.png[/img][/url]

  2. #12
    Penggemar
    Terinspirasi
     
    caid17 will become famous soon enough caid17's Avatar
    Join Date
    Aug 2010
    Location
    dimana aja...
    Posts
    368
    Accumulated bonus
    50 USD (What is this?)
    Thanks
    42
    Thanked 44 Times in 38 Posts
    hmm ane coba di demo bisa kok gan...
    Spoiler Spoiler:
    Click image for larger version

Name:	ssssss.jpg
Views:	17
Size:	152.1 KB
ID:	28151

    coba deh tak uploatin yang punya ane...
    buy_limit.mq4
    sell_limit.mq4

  3. The Following User Says Thank You to caid17 For This Useful Post:

    reinji (11-22-2012)

  4. #13
    Forum Veteran
    ----
     
    reinji has a spectacular aura about reinji has a spectacular aura about reinji has a spectacular aura about reinji's Avatar
    Join Date
    Aug 2010
    Posts
    5,583
    Accumulated bonus
    1395 USD (What is this?)
    Thanks
    78
    Thanked 255 Times in 216 Posts
    Black Frame Talent: Kontes Demotivator pada Forum MT5.com
    Quote Originally Posted by caid17     
    coba deh tak uploatin yang punya ane...
    buy_limit.mq4
    sell_limit.mq4
    nah sip, ane coba dulu, makasih masih setanby di sini sekali lagi membantu ane yang lagi perlu banget nieh secrip, kekekeke
    nanti klo ada masalah lagi bantuin ane ye, kekeke

  5. #14
    Orang Lama
    Mengintai
     
    nubinubi is a name known to all nubinubi is a name known to all nubinubi is a name known to all nubinubi is a name known to all nubinubi is a name known to all nubinubi is a name known to all nubinubi's Avatar
    Join Date
    Nov 2010
    Location
    di.....
    Posts
    955
    Accumulated bonus
    90 USD (What is this?)
    Thanks
    693
    Thanked 624 Times in 333 Posts
    ikutan bantu ya om

    di BuyMelilit, dengan default distance, sellstop ada di bawah buylimit (buylimit kena duluan baru klo turun lagi sellstopnya kena)
    kalo distance diisi pake minus, berarti sellstopnya ada di atas buylimit (sellstop bakal kena duluan)

    di SellMelilit, dengan default distance, buystop ada di atas selllimit (selllimit kena duluan baru klo naik lagi buystopnya kena)
    klo distance diisi pake minus, berarti buystopnya ada di bawah selllimit (buystop bakal kena duluan)

    maap klo bikin bingung penjelasannya..hehe..lebih enak dicobain langsung..maap klo ada yg kurang pas
    Attached Files
    Oil and Oil

  6. The Following 2 Users Say Thank You to nubinubi For This Useful Post:

    ferdiasila (06-21-2014), reinji (11-22-2012)

  7. #15
    Orang Asing
    ----
     
    khusnulkhatimah is an unknown quantity at this point khusnulkhatimah's Avatar
    Join Date
    Oct 2012
    Posts
    7
    Accumulated bonus
    1 USD (What is this?)
    Thanks
    0
    Thanked 0 Times in 0 Posts
    boleh doonk yang mw bantuu,..
    ane pengen kondisi ea yang begini;
    - setelah eksekusi lihat harga sekarang, jika harga naik 2 pips maka OP BUY, jika kemudian harga turun 2 pips close posisi.
    <sebaliknya, lihat harga sekarang, jika harga turun 2 pips maka OP SELL, jika kemudian harga naik 2 pips maka close posisi.

    terimakasiih yaak..

  8. #16
    Forum Veteran
    ----
     
    reinji has a spectacular aura about reinji has a spectacular aura about reinji has a spectacular aura about reinji's Avatar
    Join Date
    Aug 2010
    Posts
    5,583
    Accumulated bonus
    1395 USD (What is this?)
    Thanks
    78
    Thanked 255 Times in 216 Posts
    Black Frame Talent: Kontes Demotivator pada Forum MT5.com
    Quote Originally Posted by nubinubi     
    ikutan bantu ya om

    di BuyMelilit, dengan default distance, sellstop ada di bawah buylimit (buylimit kena duluan baru klo turun lagi sellstopnya kena)
    kalo distance diisi pake minus, berarti sellstopnya ada di atas buylimit (sellstop bakal kena duluan)

    di SellMelilit, dengan default distance, buystop ada di atas selllimit (selllimit kena duluan baru klo naik lagi buystopnya kena)
    klo distance diisi pake minus, berarti buystopnya ada di bawah selllimit (buystop bakal kena duluan)

    maap klo bikin bingung penjelasannya..hehe..lebih enak dicobain langsung..maap klo ada yg kurang pas
    terimakasih dah susah susah di buwatin, ane coba dulu gan, nanti ane kabarin lagi klo dah sukses

    Quote Originally Posted by khusnulkhatimah     
    boleh doonk yang mw bantuu,..
    ane pengen kondisi ea yang begini;
    - setelah eksekusi lihat harga sekarang, jika harga naik 2 pips maka OP BUY, jika kemudian harga turun 2 pips close posisi.
    <sebaliknya, lihat harga sekarang, jika harga turun 2 pips maka OP SELL, jika kemudian harga naik 2 pips maka close posisi.

    terimakasiih ya
    wah klo masalah EA, gak tau ane gan, dan lebih bagus lagi anda bikin aja thread baru, jangan nimbrung di sini, takutnya klo halaman berikutnya klan posting anda percuma, ke tutup yang postingan terbaru terus kan?

  9. #17
    Banned
    Doh
     
    drdolar is on a distinguished road drdolar's Avatar
    Join Date
    Mar 2013
    Posts
    244
    Accumulated bonus
    33 USD (What is this?)
    Thanks
    33
    Thanked 31 Times in 29 Posts
    Quote Originally Posted by reinji     
    boleh doonk yang mw bantuu,..
    ane pengen kondisi ea yang begini;
    - setelah eksekusi lihat harga sekarang, jika harga naik 2 pips maka OP BUY, jika kemudian harga turun 2 pips close posisi.
    <sebaliknya, lihat harga sekarang, jika harga turun 2 pips maka OP SELL, jika kemudian harga naik 2 pips maka close posisi.

    terimakasiih ya
    wah bener juga nih gan ... ide cemerlang ... nantinya akan di buat seperti EA gitu ya ...
    jadi semi averaging gitu ... hahahaha
    tapi nantinya hasil akhir adalah locking juga

    tapi alangkah lebih baik coba manual dulu aja gan, soalnya kan hedging locking seperti ini nantinya akan susah keluarnya

    coba kita lihat apakah teknik seperti ini profitable atau enggak,
    kalo emang profitable dan rules rulesnya kita sudah tau secara baik dan mantab, nantinya kita bisa tuh req di sini,
    pasti banyak coder yang akan minat untuk mengkoding EA yang di request ....



    Quote Originally Posted by reinji     
    wah klo masalah EA, gak tau ane gan, dan lebih bagus lagi anda bikin aja thread baru, jangan nimbrung di sini, takutnya klo halaman berikutnya klan posting anda percuma, ke tutup yang postingan terbaru terus kan?
    wah bener juga sih, lebih baik kita buka thread baru lagi, dari pada nih thread malah enggak nyambung dengan page awalnya, kan nggak oke tuh hehehehe

  10. #18
    Newbie
    ----
     
    saykin is an unknown quantity at this point saykin's Avatar
    Join Date
    May 2014
    Location
    solo-madiun/caruban
    Posts
    29
    Accumulated bonus
    2 USD (What is this?)
    Thanks
    31
    Thanked 3 Times in 1 Post
    ada yang udah jadi gan??? sori g terlalu paham koding... ni ane coba err terus.
    harus masukin parameter ya???

    cari temen sebanyak-banyaknya
    profit akan mengikuti
    (silaturahim menambah reZZeki)
    FC ZigZag bagi ReZZeki (1324124)
    WA 0857 8499 6513
    Satriakinayung (YM)

  11. #19
    Forum Veteran
    ----
     
    reinji has a spectacular aura about reinji has a spectacular aura about reinji has a spectacular aura about reinji's Avatar
    Join Date
    Aug 2010
    Posts
    5,583
    Accumulated bonus
    1395 USD (What is this?)
    Thanks
    78
    Thanked 255 Times in 216 Posts
    Black Frame Talent: Kontes Demotivator pada Forum MT5.com
    Quote Originally Posted by caid17     
    hmm ane coba di demo bisa kok gan...
    Spoiler Spoiler:

    coba deh tak uploatin yang punya ane...
    Attachment 28152
    Attachment 28153
    mohon bantuan donk, sekarang ini kok gak bisa dipakai lagi ya, selalu muncul eror, karena saya tidak bisa coding jadi gak mudeng, mohon bantuan yang bisa perbaiki, thanks

  12. <a href="https://indo.mt5.com/">Forex Portal MT5</a>
  13. #20
    Orang Lama
    Mengintai
     
    inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk's Avatar
    Join Date
    Apr 2017
    Location
    Indonesia
    Posts
    1,098
    Accumulated bonus
    1551 USD (What is this?)
    Thanks
    1,132
    Thanked 1,518 Times in 595 Posts
    punya ane cuma satu script gan, tinggal pilih aja


    contoh entry: 1, yg pakai pip, 2 yg pakai harga
    Spoiler Spoiler:

    ini yg pakai pip


    ini yg pakai harga



    inputan
    Spoiler Spoiler:




    catatan lain
    Spoiler Spoiler:


    Code:
    //+------------------------------------------------------------------+
    //|                                           INDO_PENDING_ORDER.mq4 |
    //|                                                            inLuk |
    //|            https://www.mql5.com/en/users/indral8/seller#products |
    //+------------------------------------------------------------------+
    #property copyright "inLuk"
    #property link      "https://www.mql5.com/en/users/indral8/seller#products"
    #property version   "1.00"
    #property strict
    #property show_inputs
    //+------------------------------------------------------------------+
    input double _DIST_PRICE=30;//JARAK PIP DARI HARGA, KOSONGKAN JIKA MAU PAKAI PRICE
    input double _SL=30;//SL
    input double _TP=30;//TP
    input int _MAGIC=999;//MAGIC NUMBER
    input ENUM_ORDER_TYPE _ORDER=OP_BUYLIMIT;//PILIH ORDER
    input double _LOT=0.01;//LOT SIZE
    //+------------------------------------------------------------------+
    //| Script program start function                                    |
    //+------------------------------------------------------------------+
    void OnStart()
      {
    //set variable
       bool send;
       double TP,SL,Harga;
    //kalkulasi digit
       checkDigit(Symbol());
    //pakai distance (pip)
       if(StringFind(string(_DIST_PRICE),".",0)==-1)
         {
          if(_ORDER==OP_BUYLIMIT)
            {
             Harga=NormalizeDouble(Bid-_DIST_PRICE*_PT,_D);
             SL=(_SL>0)?NormalizeDouble(Harga-_SL*_PT,_D):0;
             TP=(_TP>0)?NormalizeDouble(Harga+_TP*_PT,_D):0;
             send=OrderSend(Symbol(),_ORDER,_LOT,Harga,0,SL,TP,"OP_BUYLIMIT",_MAGIC,0,clrBlue);
             if(!send) Print(GetLastError());
            }
          if(_ORDER==OP_SELLSTOP)
            {
             Harga=NormalizeDouble(Bid-_DIST_PRICE*_PT,_D);
             SL=(_SL>0)?NormalizeDouble(Harga+_SL*_PT,_D):0;
             TP=(_TP>0)?NormalizeDouble(Harga-_TP*_PT,_D):0;
             send=OrderSend(Symbol(),_ORDER,_LOT,Harga,0,SL,TP,"OP_SELLSTOP",_MAGIC,0,clrRed);
             if(!send) Print(GetLastError());
            }
          if(_ORDER==OP_BUYSTOP)
            {
             Harga=NormalizeDouble(Bid+_DIST_PRICE*_PT,_D);
             SL=(_SL>0)?NormalizeDouble(Harga-_SL*_PT,_D):0;
             TP=(_TP>0)?NormalizeDouble(Harga+_TP*_PT,_D):0;
             send=OrderSend(Symbol(),_ORDER,_LOT,Harga,0,SL,TP,"OP_BUYSTOP",_MAGIC,0,clrBlue);
             if(!send) Print(GetLastError());
            }
          if(_ORDER==OP_SELLLIMIT)
            {
             Harga=NormalizeDouble(Bid+_DIST_PRICE*_PT,_D);
             SL=(_SL>0)?NormalizeDouble(Harga+_SL*_PT,_D):0;
             TP=(_TP>0)?NormalizeDouble(Harga-_TP*_PT,_D):0;
             send=OrderSend(Symbol(),_ORDER,_LOT,Harga,0,SL,TP,"OP_SELLLIMIT",_MAGIC,0,clrBlue);
             if(!send) Print(GetLastError());
            }
         }
    //---
       else
         {
          Harga=NormalizeDouble(_DIST_PRICE,_D);
          SL=(_SL>0)?NormalizeDouble(Harga+_SL*_PT,_D):0;
          TP=(_TP>0)?NormalizeDouble(Harga-_TP*_PT,_D):0;
          send=OrderSend(Symbol(),_ORDER,_LOT,Harga,0,SL,TP,string(_ORDER),_MAGIC,0,clrLime);
          if(!send) Print(GetLastError());
         }
      }
    //+------------------------------------------------------------------+
    int _D,_DIG;
    double _PT;
    //+------------------------------------------------------------------+
    void checkDigit(string sym)
      {
       _D=int(MarketInfo(sym,MODE_DIGITS));
       if(_D==2) { _DIG=10; }//xauusd
       if(_D==3) { _DIG=100; }
       if(_D==4) { _DIG=1000; }
       if(_D==5) { _DIG=10000; }
       _PT=MarketInfo(sym,MODE_POINT);
       if(_D==3 || _D==5) { _PT=10*MarketInfo(sym,MODE_POINT); }
      }
    //+------------------------------------------------------------------+
    jangan lupa thanks nya

  14. The Following 2 Users Say Thank You to inLuk For This Useful Post:

    dlajuardi (11-28-2017), reinji (08-02-2017)

Page 2 of 3
FirstFirst 1 2 3 LastLast

Posting Permissions

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