1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Tutorial Candle in Code

Discussion in 'Belajar MQL dari Nol' started by r2tan, 20 Dec 2015.

  1. r2tan

    r2tan Member Credit Hunter

    Equity
    Credit
    Ref Point
    As Header of Thread lets us learn how to describe Candle on MQ4 code..
    For the First code for identified Engulfing Pattern :
    Close[2]>Open[2] && Close[1]<Open[1]&&Close[1]<Open[2] Was Describe as Engulfing Pattern ussualy we found on reversal from bullish to bearish and for confirm lets current price (Bid) lower than Low[1]

    So same condition for Opposite direction with opposite sign

    Screenshot_2015-12-20-12-05-04.jpg
     
  2. r2tan

    r2tan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Screenshot_2015-12-20-12-32-47.jpg For Harami Pattern we must see 3 candles as group, 1 candle bullish, 2nd candle bearish 3rd candle bearish with length more than 2nd candle in code :
    Close[3]>Open[3]&&Close[2]<Open[2]&&Close[1]<Open[1]&&(Open[1]-Close[1]>Open[2]-Close[2]) and more valid with Length of 2nd candle was 50% (min) than candle 3st (add &&(Open[2]-Close[2]>(Open[3]-Close[3])/2) , ussualy found at reversal from bullish to bearish so same condition for opposite direction with opposite sign
     
  3. r2tan

    r2tan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Screenshot_2015-12-20-22-10-47.jpg For Pin Bar Pattern we must see 3 candles as group, 1 candle bullish (left ear), 2nd candle bearish(centre nose) 3rd candle bearish(right ear) in code :
    Close[3]>Open[3]&&Close[2]<Open[2]&&Close[1]<Open[1]&&Close[1]<Open[3]&&(High[2]-Open[2])>(Open[2]-Low[2])*2 , ussualy found at reversal from bullish to bearish so same condition for opposite direction with opposite sign
     
    Last edited: 20 Dec 2015
  4. KOSERA

    KOSERA New Member

    Equity
    Credit
    Ref Point
    Lanjut master... ikut nyimak
     
  5. ferykun

    ferykun Member

    Equity
    Credit
    Ref Point
  6. gopeng

    gopeng Member Credit Hunter

    Equity
    Credit
    Ref Point
  7. novan999

    novan999 New Member

    Equity
    Credit
    Ref Point

Share This Page