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

Thread: Mohon Bantuan 2 Baris Kode Untuk Belajar EA

  1. #1
    Anggota
    ----
     
    pemulafx is on a distinguished road pemulafx's Avatar
    Join Date
    Jan 2011
    Posts
    116
    Accumulated bonus
    23 USD (What is this?)
    Thanks
    12
    Thanked 31 Times in 15 Posts

    Mohon Bantuan 2 Baris Kode Untuk Belajar EA

    Halo,

    Newbie mohon bantuan gimana ya caranya untuk "mendeskripsikan" bull dan bear candle dalam bahasa pemrograman?

    Contoh:

    BullCandle = Harga Open > close Previous candle;
    BearCandle = Harga open < close previous candle;

    Mohon bantuannya ya...

    Trims

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

    betafx (09-07-2016), hasyim20 (08-30-2016)

  3. <a href="">Forex Portal MT5</a>
  4. #2
    Orang Asing
    ----
     
    EagleEyes0618 is an unknown quantity at this point EagleEyes0618's Avatar
    Join Date
    Jan 2016
    Posts
    5
    Accumulated bonus
    3 USD (What is this?)
    Thanks
    1
    Thanked 4 Times in 1 Post
    Quote Originally Posted by pemulafx     
    Halo,

    Newbie mohon bantuan gimana ya caranya untuk "mendeskripsikan" bull dan bear candle dalam bahasa pemrograman?

    Contoh:

    BullCandle = Harga Open > close Previous candle;
    BearCandle = Harga open < close previous candle;

    Mohon bantuannya ya...

    Trims
    if(Open[0] > Close[1]){// <----- Harga Open > close Previous candle
    // BullCandle
    }
    else if(Open[0] < Close[1]){//<---- Harga open < close previous candle
    // BearCandle
    }

  5. The Following 4 Users Say Thank You to EagleEyes0618 For This Useful Post:

    betafx (09-07-2016), hasyim20 (08-30-2016), lucky7tea (05-11-2016)

  6. #3
    Knuckle Gesit
    ----
     
    GreenHexane is a name known to all GreenHexane is a name known to all GreenHexane is a name known to all GreenHexane is a name known to all GreenHexane is a name known to all GreenHexane is a name known to all GreenHexane's Avatar
    Join Date
    Mar 2013
    Posts
    1,351
    Accumulated bonus
    320 USD (What is this?)
    Thanks
    480
    Thanked 654 Times in 318 Posts
    lebih tepatnya menurut ane gini :

    BullCandle = Harga Close > Harga Open --> codingnya if ( Close[0] > Open[0] )
    BearCandle = Harga Close < Harga Open --> codingnya if ( Close[0] < Open[0] )

  7. The Following 2 Users Say Thank You to GreenHexane For This Useful Post:

    betafx (09-07-2016), hasyim20 (08-30-2016)

  8. #4
    Orang Lama
    ----
     
    syahrul479 has a spectacular aura about syahrul479 has a spectacular aura about syahrul479's Avatar
    Join Date
    Sep 2012
    Posts
    1,087
    Accumulated bonus
    302 USD (What is this?)
    Saya bertemu tamu
    1 (detail lebih lanjut)
    Thanks
    45
    Thanked 163 Times in 120 Posts
    bagi ane bila melihat candel sebelumnya : Close[1]>Open[1] >>>> Bullcandel dan Close[1]<Open[1] >>>> Bearcandel,
    tapi bila candel saat ini sedang BULLIS maka : Ask>Open[0]+5*Point; -->>> artinya harga bergerak naik 5 point dari OPen saat ini,
    dan bila turun saat ini BEARISH maka: Bid <Open[0]-5*Point; --->>>>..............................trun 5 point dari Open saat ini, 5 aalah contoh saja gan terserah, dihilangkan juga tidak apa,

  9. The Following User Says Thank You to syahrul479 For This Useful Post:

    betafx (09-07-2016)

  10. #5
    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
    jika
    BullCandle = Harga Close > Harga Open --> codingnya if ( Close[0] > Open[0] )
    BearCandle = Harga Close < Harga Open --> codingnya if ( Close[0] < Open[0] )

    ini untuk current candle


    karena prev candle

    BullCandle = Harga Close > Harga Open --> codingnya if ( Close[1] > Open[1] )
    BearCandle = Harga Close < Harga Open --> codingnya if ( Close[1] < Open[1] )

    mohon koreksi jika salah
    101177ui@gmail.com skype ismail.1177
    jasa bikin EA dan Indi

  11. The Following User Says Thank You to umar1177 For This Useful Post:

    betafx (09-07-2016)

  12. lamborghini
  13. #6
    Orang Asing
    ----
     
    Erd is an unknown quantity at this point Erd's Avatar
    Join Date
    Feb 2015
    Posts
    18
    Accumulated bonus
    5 USD (What is this?)
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by pemulafx     
    Halo,

    Newbie mohon bantuan gimana ya caranya untuk "mendeskripsikan" bull dan bear candle dalam bahasa pemrograman?

    Contoh:

    BullCandle = Harga Open > close Previous candle;
    BearCandle = Harga open < close previous candle;

    Mohon bantuannya ya...

    Trims
    di declare dulu gan biar enak manggilnya...
    double O = Open[0], H = High[0], L = Low[0], C = Close[0]; //ini untuk candle current ,yg close terakhir
    double O1 = Open[1], H1 = High[1], L 1= Low[1], C 1= Close[1]; //ini untuk previous candle,candle close sebelumnya

    BullCandle = if (C>O) //Candle current yg terakhir Close
    BearCandle = if (O>C) //Candle current yg terakhir Close

    BullCandle = if (C1>O1) //Candle sebelumnya/previous candle
    BearCandle = if (O1>C1) //Candle sebelumnya/previous candle


Posting Permissions

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