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

Thread: [Ask] Cari High Low candle tertentu

  1. #1
    Orang Asing
    ----
     
    tomdachi is an unknown quantity at this point tomdachi's Avatar
    Join Date
    Dec 2014
    Posts
    14
    Accumulated bonus
    3 USD (What is this?)
    Thanks
    0
    Thanked 10 Times in 4 Posts

    [Ask] Cari High Low candle tertentu

    Salam para master coding,

    Saya ingin tanya coding mencari high low candle 5-7.

    Penjelasan:
    Timeframe H1, candle 1 open jam 5:00, candle 2 open jam 6:00, dst. Total ada 24 candle. Nah saya ingin mencari high-low antara candle 5 dan candle 7 (highest dan lowest price level antara candle tersebut).
    Saya sudah utak atik menggunakan iHigh tapi tidak bisa, mohon pencerahannya.

  2. The Following 4 Users Say Thank You to tomdachi For This Useful Post:

    armi951 (04-18-2019), raden123 (01-14-2018)

  3. <a href="https://www.mt5.com/id/">Forex Portal MT5</a>
  4. #2
    Orang Asing
    ----
     
    tomdachi is an unknown quantity at this point tomdachi's Avatar
    Join Date
    Dec 2014
    Posts
    14
    Accumulated bonus
    3 USD (What is this?)
    Thanks
    0
    Thanked 10 Times in 4 Posts
    Pagi,

    Mohon pencerahannya.

  5. The Following 2 Users Say Thank You to tomdachi For This Useful Post:


  6. #3
    Poster Setia
    Tiba-tiba
     
    Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi has a reputation beyond repute Anti Gengsi's Avatar
    Join Date
    Dec 2016
    Location
    Ganti Gas LPG
    Posts
    2,668
    Accumulated bonus
    1852 USD (What is this?)
    Saya bertemu tamu
    1 (detail lebih lanjut)
    Thanks
    1,601
    Thanked 6,670 Times in 2,646 Posts
    Quote Originally Posted by tomdachi View Post
    Salam para master coding,

    Saya ingin tanya coding mencari high low candle 5-7.

    Penjelasan:
    Timeframe H1, candle 1 open jam 5:00, candle 2 open jam 6:00, dst. Total ada 24 candle. Nah saya ingin mencari high-low antara candle 5 dan candle 7 (highest dan lowest price level antara candle tersebut).
    Saya sudah utak atik menggunakan iHigh tapi tidak bisa, mohon pencerahannya.
    Om coba tanya master coder disini banyak dan canggih2.
    Klo saya kurang ngerti mungkin itu kan bar hitung aja dari berapa bar semua dari yang rendah dan tinggi. Terus di gabung >=5 dan 7 <=tadi di jadiin satu nama.
    Coba aja om tanya bahasa filternya sama master2 di sini canggih2

  7. #4
    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
    1545 USD (What is this?)
    Thanks
    1,132
    Thanked 1,516 Times in 594 Posts
    Quote Originally Posted by tomdachi View Post
    Salam para master coding,

    Saya ingin tanya coding mencari high low candle 5-7.

    Penjelasan:
    Timeframe H1, candle 1 open jam 5:00, candle 2 open jam 6:00, dst. Total ada 24 candle. Nah saya ingin mencari high-low antara candle 5 dan candle 7 (highest dan lowest price level antara candle tersebut).
    Saya sudah utak atik menggunakan iHigh tapi tidak bisa, mohon pencerahannya.
    ini lumayan susah susah gampang gan, tapi saya coba bantu jelaskan

    pertama kita tentukan start time dari area yg akan di ambil HH LL Nya
    dalam contoh ini saya akan ambil candle di jam 1:00 dan mengambil 5 candle ke depan nya
    Code:
    datetime _startTime=StringToTime(TimeToStr(Time[0],TIME_DATE)+"01:00");
    kemudian pin/kunci posisi awal candle nya
    Code:
    int pin=iBarShift(NULL,0,_startTime,True);
    lalu ambil deh data highest nya
    Code:
    double  UPPER=NormalizeDouble(High[iHighest(NULL,0,MODE_HIGH,5,pin)],_Digits);
    double  LOWER=NormalizeDouble(Low[iLowest(NULL,0,MODE_LOW,5,pin)],_Digits);
    untuk yg lebih presisi nanti saya jabarkan lebih lanjut,

  8. The Following 3 Users Say Thank You to inLuk For This Useful Post:

    ahmadkh01r1 (01-14-2018), Anti Gengsi (07-06-2017), armi951 (04-18-2019)

  9. #5
    Orang Asing
    ----
     
    tomdachi is an unknown quantity at this point tomdachi's Avatar
    Join Date
    Dec 2014
    Posts
    14
    Accumulated bonus
    3 USD (What is this?)
    Thanks
    0
    Thanked 10 Times in 4 Posts
    Quote Originally Posted by inLuk View Post
    ini lumayan susah susah gampang gan, tapi saya coba bantu jelaskan

    pertama kita tentukan start time dari area yg akan di ambil HH LL Nya
    dalam contoh ini saya akan ambil candle di jam 1:00 dan mengambil 5 candle ke depan nya
    Code:
    datetime _startTime=StringToTime(TimeToStr(Time[0],TIME_DATE)+"01:00");
    kemudian pin/kunci posisi awal candle nya
    Code:
    int pin=iBarShift(NULL,0,_startTime,True);
    lalu ambil deh data highest nya
    Code:
    double  UPPER=NormalizeDouble(High[iHighest(NULL,0,MODE_HIGH,5,pin)],_Digits);
    double  LOWER=NormalizeDouble(Low[iLowest(NULL,0,MODE_LOW,5,pin)],_Digits);
    untuk yg lebih presisi nanti saya jabarkan lebih lanjut,
    Wow simple ya, logikanya uda dapet. Ane coba dulu ya master.

  10. #6
    Orang Asing
    ----
     
    hishammaznan is an unknown quantity at this point hishammaznan's Avatar
    Join Date
    Apr 2017
    Posts
    2
    Accumulated bonus
    0 USD (What is this?)
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sekiranya nak tulis program mql4 tentukan high dan low price candle jam 8 pagi macam mana ya

  11. The Following 2 Users Say Thank You to hishammaznan For This Useful Post:

    Unregistered (2)

  12. #7
    Forum Resident
    ----
     
    gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa has a reputation beyond repute gr_mangaloksa's Avatar
    Join Date
    Oct 2015
    Posts
    5,628
    Accumulated bonus
    2119 USD (What is this?)
    Saya bertemu tamu
    3 (detail lebih lanjut)
    Thanks
    3,223
    Thanked 4,642 Times in 1,897 Posts
    Quote Originally Posted by hishammaznan View Post
    Sekiranya nak tulis program mql4 tentukan high dan low price candle jam 8 pagi macam mana ya
    di atas sepertinya sudah ada contoh nya mas, tinggal masukin saja

    di bawah ini contohnya memakai jam server, bukan jam lokal. Tinggal convert saja jam 8 pagi itu kira-kira jam berapa waktu server.


    Code:
    
    datetime _startTime=StringToTime(TimeToStr(Time[i],TIME_DATE)+" "+"04:00");
    
    if(Time[i]==_startTime)
    {
            
             ExtMapBuffer1[i] = High[i];
             ExtMapBuffer2[i] = Low[i];
    }
    kalau di bikin indi kira-kira seperti ini contohnya

    Spoiler Spoiler:


    ket : berlaku hanya di timeframe H1

  13. The Following 3 Users Say Thank You to gr_mangaloksa For This Useful Post:

    mustamintewa (10-07-2018), Unregistered (2)

  14. #8
    Anggota
    ----
     
    ugino will become famous soon enough ugino's Avatar
    Join Date
    Sep 2018
    Posts
    113
    Accumulated bonus
    22 USD (What is this?)
    Thanks
    15
    Thanked 94 Times in 59 Posts
    Quote Originally Posted by tomdachi View Post
    Salam para master coding,

    Saya ingin tanya coding mencari high low candle 5-7.

    Penjelasan:
    Timeframe H1, candle 1 open jam 5:00, candle 2 open jam 6:00, dst. Total ada 24 candle. Nah saya ingin mencari high-low antara candle 5 dan candle 7 (highest dan lowest price level antara candle tersebut).
    Saya sudah utak atik menggunakan iHigh tapi tidak bisa, mohon pencerahannya.
    Masukan dari saya , Ini mau ditempel dimana? Maksud saya di TF brapa?
    Kalau disembarang TF , ya rada bingung juga ya? Tapi sederhana nya di Looping saja
    Begini2 saya prnah belajar bahasa C, walaupun terjun ke grab

  15. #9
    Orang Lama
    Semilir
     
    amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo's Avatar
    Join Date
    Sep 2010
    Location
    Sekitaran Bumi
    Posts
    1,030
    Accumulated bonus
    135 USD (What is this?)
    Thanks
    96
    Thanked 579 Times in 302 Posts
    Quote Originally Posted by ugino View Post
    Masukan dari saya , Ini mau ditempel dimana? Maksud saya di TF brapa?
    Kalau disembarang TF , ya rada bingung juga ya? Tapi sederhana nya di Looping saja
    Begini2 saya prnah belajar bahasa C, walaupun terjun ke grab
    sudah jelas H1 bos.
    bingung knp. kan sudah disebutin 5-7 candle sbelumnya.
    apanya yg di looping. coba sebutin gmn selain yg ditulis di atas
    Yahuuu

  16. #10
    Anggota
    ----
     
    ugino will become famous soon enough ugino's Avatar
    Join Date
    Sep 2018
    Posts
    113
    Accumulated bonus
    22 USD (What is this?)
    Thanks
    15
    Thanked 94 Times in 59 Posts
    Quote Originally Posted by tomdachi View Post
    Salam para master coding,

    Saya ingin tanya coding mencari high low candle 5-7.

    Penjelasan:
    Timeframe H1, candle 1 open jam 5:00, candle 2 open jam 6:00, dst. Total ada 24 candle. Nah saya ingin mencari high-low antara candle 5 dan candle 7 (highest dan lowest price level antara candle tersebut).
    Saya sudah utak atik menggunakan iHigh tapi tidak bisa, mohon pencerahannya.
    Kita anggap candle ke 5 dlm per hari . itu = jam 5 (misal)
    Lalu saya coba utk code sbg Indikator
    Code:
    int start()  {
       int    counted_bars=IndicatorCounted();
       int limit, i, Ke;
       double HrgHigh,HrgLow;
       limit=(Bars-counted_bars)-1;
       for (i=limit; i>=0;i--){ 
          Ke=TimeHour(Time[i]);
          if(Ke==5) {
             HrgHigh=0;HrgLow=10000;
          }
          if((Ke>=5)&&(Ke<=7)){
             if (High[i]>HrgHigh) HrgHigh=High[i];
             if (Low[i]<HrgLow) HrgLow=Low[i];
          }
          PBuffer[i]=HrgHigh;
       }
       return(0);
    }

Posting Permissions

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