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. #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.

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


  5. #3
    Poster Lama
    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,904
    Accumulated bonus
    2007 USD (What is this?)
    Saya bertemu tamu
    1 (detail lebih lanjut)
    Thanks
    1,768
    Thanked 7,015 Times in 2,826 Posts
    Quote Originally Posted by tomdachi     
    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
    Klick ==>>>

  6. #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
    1551 USD (What is this?)
    Thanks
    1,132
    Thanked 1,523 Times in 596 Posts
    Quote Originally Posted by tomdachi     
    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,

  7. 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)

  8. #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     
    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.

  9. #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

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

    Unregistered (2)

  11. #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,964
    Accumulated bonus
    2134 USD (What is this?)
    Saya bertemu tamu
    3 (detail lebih lanjut)
    Thanks
    3,327
    Thanked 4,748 Times in 1,974 Posts
    Quote Originally Posted by hishammaznan     
    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

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

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

  13. #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     
    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

  14. #9
    Orang Lama
    Semilir
     
    amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo is a name known to all amtwoxtwo's Avatar
    Join Date
    Sep 2010
    Location
    Sekitaran Bumi
    Posts
    1,049
    Accumulated bonus
    139 USD (What is this?)
    Thanks
    96
    Thanked 606 Times in 309 Posts
    Quote Originally Posted by ugino     
    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

  15. <a href="">Forex Portal MT5</a>
  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     
    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