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 3 of 45
FirstFirst 1 2 3 4 5 13 ... LastLast
Results 21 to 30 of 442

Thread: Simple Script for Instant Trading

  1. #21
    Poster Lama
    Pemarah
     
    metatraders will become famous soon enough metatraders will become famous soon enough metatraders's Avatar
    Join Date
    Nov 2010
    Posts
    3,091
    Accumulated bonus
    636 USD (What is this?)
    Thanks
    202
    Thanked 115 Times in 103 Posts
    Quote Originally Posted by alventa     
    Okay, sip...
    Sebelum menginjak ke script berikutnya, seperti Instant Sell, berikut cara memasukkan ke chart :
    1. Bukalah program meta editor, bisa dari Metatrader dengan Icon Ketupat ada tanda Seru "!" di tengahnya.
    2. Kemudian klik File --> New --> Script --> Isilah nama Name, Author, Link (semau agan-agan) --> Finish
    3. Muncul halaman script, kemudian hapus semua isi di dalamnya, Copy Paste Code Instant Buy di atas ke Halaman Script, kemudian save.
    4. Klik "COMPILE" untuk convert ke ke .ex4, kemudian simpan file ex4 di dalam (atau bisa juga di copy paste):
    (letak program meta trader agan misal di drive C/D/E) ..../metatrader/experts/scripts ---- pastikan file ex4 telah masuk di situ ok.
    5. Kemudian bukalah Terminal Trading agan, lihat di Navigasi --> script --> muncul Instant Buy
    6. Aktifkan EA nya yaitu buka = Menu TOOLS --> Option --> Expert Advisors --> cek/centang Enable Expert Advisors + cek "Berikan hak trading otomatis" (manual konfirmasi tidak usah dicentang, karena biar cepat). Klik OK. Kemudian akan muncul tanda EA akan PLAY. (gambar kepala topi).
    7. Untuk mengeksekusi Instant BUY, bisa dilakukan dengan :
    a. Double klik mouse
    b. Klik kanan, pilihan paling atas, eksekusi ke chart
    c. Klik kanan, Set Hot Key, muncul option, Tambahkan key CTRL dan huruf B misalkan (B=buy) biar mudah diingat. Ok.
    Nah ini nanti untuk mengeksekusi Script dengan menekan Tombol CTRL + B dari keyboard.

    Silahkan di coba dulu di DEMO ACCOUNT agar diketahui hasilnya. Ini dulu, silahkan dicoba.



    Okay, untuk script di atas volumenya 0.01, Slippage 2 pips, SL TP = 0
    Kalau misalkan mau di set SL 25 TP 50 tinggal ubah di bagian SL dan TP berikut :
    Spoiler Spoiler:
    Code:
    //+------------------------------------------------------------------+
    //|                                                  Instant Buy.mq4 |
    //|                      Untuk kita semua yang ingin simple saja   . |
    //|                           http://sumberdolaronline.blogspot.com/ |
    //+------------------------------------------------------------------+
    #property copyright "Ryo321"
    #property link      "http://sumberdolaronline.blogspot.com/"
    
    #include <stdlib.mqh>
    #include <WinUser32.mqh>
    //+------------------------------------------------------------------+
    //| script "transaksi untuk semua pairs"                                   |
    //+------------------------------------------------------------------+
    int start()
      {
    //----
       int ticket=OrderSend(Symbol(),OP_BUY,0.01,Ask,2,Bid-25*Point,Ask+50*Point,"Price Action #",321,0,CLR_NONE);
       if(ticket<1)
         {
          int error=GetLastError();
          Print("Error = ",ErrorDescription(error));
          return;
         }
    //----
       OrderPrint();
       return(0);
      }
    //+------------------------------------------------------------------+

    Kalau volume pengen dinaikkan ke 1 lot tinggal ganti yang 0.01 diganti 1.00 dst. Demikian juga Slippage angka 2 tinggal ganti 5 dst. Begitu gan, next Script...
    yang ane kasi warna mewrah itu maksusdnya apa ya?

  2. lamborghini
  3. #22
    Newbie
    ----
     
    andriebb is on a distinguished road andriebb's Avatar
    Join Date
    Dec 2010
    Location
    sungailiat
    Posts
    34
    Accumulated bonus
    6 USD (What is this?)
    Thanks
    3
    Thanked 1 Time in 1 Post
    maksudnya untuk eksekusi buy secara instan apaan om ya ?? maaf masih newbie

  4. #23
    Newbie
    ----
     
    andriebb is on a distinguished road andriebb's Avatar
    Join Date
    Dec 2010
    Location
    sungailiat
    Posts
    34
    Accumulated bonus
    6 USD (What is this?)
    Thanks
    3
    Thanked 1 Time in 1 Post
    waduh koks sepi bener ni trit... padahal ane mau tanya

  5. #24
    Guru Honorer dari MT5
    Panas
     
    alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa's Avatar
    Join Date
    Aug 2010
    Location
    http://www.instaforex.com/
    Posts
    22,066
    Accumulated bonus
    5345 USD (What is this?)
    Saya bertemu tamu
    3 (detail lebih lanjut)
    Thanks
    6,647
    Thanked 7,065 Times in 3,808 Posts
    Black Frame Talent: Kontes Demotivator pada Forum MT5.com
    Quote Originally Posted by metatraders     
    yang ane kasi warna mewrah itu maksusdnya apa ya?
    Maksudnya begini gan, Ask = Buy di Ask Price, 2 = slippage / deviasi dari harga running, 321 = angka unik versi saya hehehe, 0 = date expiration. Untuk mengetahui keterangan dari instruksi tersebut bisa masuk ke meta editor, letakkan kursor di kode Symbol kemudian tekan Shift+Ctrl+Space nanti muncul keterangannya.

    @andriebb : Maksudnya adalah buy di market, yah kayak makanan instant itu lah, sama seperti kalau kita menekan order baru / new order, kemudian kita buy / sell begitu.

  6. #25
    Guru Honorer dari MT5
    Panas
     
    alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa's Avatar
    Join Date
    Aug 2010
    Location
    http://www.instaforex.com/
    Posts
    22,066
    Accumulated bonus
    5345 USD (What is this?)
    Saya bertemu tamu
    3 (detail lebih lanjut)
    Thanks
    6,647
    Thanked 7,065 Times in 3,808 Posts
    Black Frame Talent: Kontes Demotivator pada Forum MT5.com
    Script selanjutnya = BUY STOP

    Fungsi : Untuk mengirim pending order Buy di atas harga yang sedang running dengan harapan harga akan terus naik.
    Space dari harga = 40 pips,Volume = 0.01, SL 0, TP 0.

    Spoiler Spoiler:
    Code:
    //+------------------------------------------------------------------+
    //|                                                     BUY STOP.mq4 |
    //|                                                           Ryo321 |
    //|                           http://sumberdolaronline.blogspot.com/ |
    //+------------------------------------------------------------------+
    #property copyright "Ryo321"
    #property link      "http://sumberdolaronline.blogspot.com/"
    
    //+------------------------------------------------------------------+
    //| script program start function                                    |
    //+------------------------------------------------------------------+
    int start()
      {
       int    ticket;
       double point;
    //----
       point=MarketInfo(Symbol(),MODE_POINT);
    //----
       while(true)
         {
          ticket=OrderSend(Symbol(),OP_BUYSTOP,0.01,Ask+40*point,2,0,0,"Enjoy Trading",321,0,Green);
          if(ticket<=0) Print("Error = ",GetLastError());
          else { Print("ticket = ",ticket); break; }
          //---- 10 seconds wait
          Sleep(10000);
         }
    //----
       return(0);
      }
    //+------------------------------------------------------------------+
    Next, bersambung...

  7. #26
    Penggemar
    ----
     
    roma is on a distinguished road roma's Avatar
    Join Date
    Oct 2010
    Posts
    253
    Accumulated bonus
    66 USD (What is this?)
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by alventa     
    Okay, sip...
    Sebelum menginjak ke script berikutnya, seperti Instant Sell, berikut cara memasukkan ke chart :
    1. Bukalah program meta editor, bisa dari Metatrader dengan Icon Ketupat ada tanda Seru "!" di tengahnya.
    2. Kemudian klik File --> New --> Script --> Isilah nama Name, Author, Link (semau agan-agan) --> Finish
    3. Muncul halaman script, kemudian hapus semua isi di dalamnya, Copy Paste Code Instant Buy di atas ke Halaman Script, kemudian save.
    4. Klik "COMPILE" untuk convert ke ke .ex4, kemudian simpan file ex4 di dalam (atau bisa juga di copy paste):
    (letak program meta trader agan misal di drive C/D/E) ..../metatrader/experts/scripts ---- pastikan file ex4 telah masuk di situ ok.
    5. Kemudian bukalah Terminal Trading agan, lihat di Navigasi --> script --> muncul Instant Buy
    6. Aktifkan EA nya yaitu buka = Menu TOOLS --> Option --> Expert Advisors --> cek/centang Enable Expert Advisors + cek "Berikan hak trading otomatis" (manual konfirmasi tidak usah dicentang, karena biar cepat). Klik OK. Kemudian akan muncul tanda EA akan PLAY. (gambar kepala topi).
    7. Untuk mengeksekusi Instant BUY, bisa dilakukan dengan :
    a. Double klik mouse
    b. Klik kanan, pilihan paling atas, eksekusi ke chart
    c. Klik kanan, Set Hot Key, muncul option, Tambahkan key CTRL dan huruf B misalkan (B=buy) biar mudah diingat. Ok.
    Nah ini nanti untuk mengeksekusi Script dengan menekan Tombol CTRL + B dari keyboard.

    Silahkan di coba dulu di DEMO ACCOUNT agar diketahui hasilnya. Ini dulu, silahkan dicoba.



    Okay, untuk script di atas volumenya 0.01, Slippage 2 pips, SL TP = 0
    Kalau misalkan mau di set SL 25 TP 50 tinggal ubah di bagian SL dan TP berikut :
    Spoiler Spoiler:
    Code:
    //+------------------------------------------------------------------+
    //|                                                  Instant Buy.mq4 |
    //|                      Untuk kita semua yang ingin simple saja   . |
    //|                           http://sumberdolaronline.blogspot.com/ |
    //+------------------------------------------------------------------+
    #property copyright "Ryo321"
    #property link      "http://sumberdolaronline.blogspot.com/"
    
    #include <stdlib.mqh>
    #include <WinUser32.mqh>
    //+------------------------------------------------------------------+
    //| script "transaksi untuk semua pairs"                                   |
    //+------------------------------------------------------------------+
    int start()
      {
    //----
       int ticket=OrderSend(Symbol(),OP_BUY,0.01,Ask,2,Bid-25*Point,Ask+50*Point,"Price Action #",321,0,CLR_NONE);
       if(ticket<1)
         {
          int error=GetLastError();
          Print("Error = ",ErrorDescription(error));
          return;
         }
    //----
       OrderPrint();
       return(0);
      }
    //+------------------------------------------------------------------+

    Kalau volume pengen dinaikkan ke 1 lot tinggal ganti yang 0.01 diganti 1.00 dst. Demikian juga Slippage angka 2 tinggal ganti 5 dst. Begitu gan, next Script...
    wah wah ini nih ilmu baru,numpang di sharing ilmu nya ya gan biar pinter kaya master yang lainnnya ya

    Quote Originally Posted by andriebb     
    waduh koks sepi bener ni trit... padahal ane mau tanya
    sepi, banyak ya masih posting ko gan, mungkin masternya belum turun gunung kali ya biar agan dapet wangsit tentang hal itu kali
    Last edited by Raising; 12-10-2010 at 11:06. Reason: BIASAKAN PAKE MULTIQUOTE..!!!

  8. #27
    Anggota
    ----
     
    nivonk is on a distinguished road nivonk's Avatar
    Join Date
    Oct 2010
    Posts
    146
    Accumulated bonus
    31 USD (What is this?)
    Thanks
    1
    Thanked 1 Time in 1 Post
    script buat instan delete pending order belum keluar gan?

  9. #28
    Harian
    ----
     
    bossee is on a distinguished road bossee's Avatar
    Join Date
    Nov 2010
    Posts
    83
    Accumulated bonus
    18 USD (What is this?)
    Thanks
    4
    Thanked 1 Time in 1 Post
    manstab pokoknya bro satu ini pembabarannya.

  10. #29
    Guru Honorer dari MT5
    Panas
     
    alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa has a reputation beyond repute alventa's Avatar
    Join Date
    Aug 2010
    Location
    http://www.instaforex.com/
    Posts
    22,066
    Accumulated bonus
    5345 USD (What is this?)
    Saya bertemu tamu
    3 (detail lebih lanjut)
    Thanks
    6,647
    Thanked 7,065 Times in 3,808 Posts
    Black Frame Talent: Kontes Demotivator pada Forum MT5.com
    Terima kasih agan-agan yang sudah mampir, semoga bermanfaat. Pembahasan sedikit demi sedikit biar bisa dipahami, disamping saya jarang online juga hehe..

    Script selanjutnya = SELL LIMIT
    Fungsi = Mengirim pending order Sell di atas harga running, dengan harapan harga akan turun lagi dan mendapatkan profit.
    Setting sederhana = Space dari harga running : 40 points, slippage = 2, tanpa SL dan TP, default volume = 0.01 LOT
    Spoiler Spoiler:
    Code:
    //+------------------------------------------------------------------+
    //|                                                    Sell Limit.mq4 |
    //|                                               Simple Script saja |
    //|                       http://www.sumberdolaronline.blogspot.com/ |
    //+------------------------------------------------------------------+
    #property copyright "enjoy trading"
    #property link      "http://www.sumberdolaronline.blogspot.com/"
    
    //+------------------------------------------------------------------+
    //| script "sell limit"                                               |
    //+------------------------------------------------------------------+
    int start()
      {
       int    ticket;
       double point;
    //----
       point=MarketInfo(Symbol(),MODE_POINT);
    //----
       while(true)
         {
          ticket=OrderSend(Symbol(),OP_SELLLIMIT,0.01,Bid+40*point,2,0,0,"Enjoy Trading",321,0,Green);
          if(ticket<=0) Print("Error = ",GetLastError());
          else { Print("ticket = ",ticket); break; }
          //---- 10 seconds wait
          Sleep(10000);
         }
    //----
       return(0);
      }
    //+------------------------------------------------------------------+

    Selamat Belajar, jika ada error, mari kita berdiskusi, di sini kita SAMA_SAMA belajar gan, saya juga masih newbie...hehe

    Next script.....

  11. <a href="https://indo.mt5.com/">Forex Portal MT5</a>
  12. #30
    Poster Honorer
    Mengintai
     
    cobaindech will become famous soon enough cobaindech's Avatar
    Join Date
    Nov 2010
    Location
    www.instaforex.com
    Posts
    1,977
    Accumulated bonus
    351 USD (What is this?)
    Thanks
    154
    Thanked 109 Times in 85 Posts
    Wah mantab nich threadnya...
    tempat belajar buat script...kebetulan gw kaga ngarti program...
    ikutan nyimak ya gan...biar kecipratan ilmunya...
    sukses buat tradingnya ya gan..
    M o n e y . I s . T i m e

  13. The Following User Says Thank You to cobaindech For This Useful Post:

    alventa (12-07-2010)

Page 3 of 45
FirstFirst 1 2 3 4 5 13 ... LastLast

Tags for this Thread

Posting Permissions

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