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

(ASK) Cara merubah chart generator agar tidak mulai dari awal

Discussion in 'Belajar MQL dari Nol' started by lumanauw, 15 Oct 2020.

  1. lumanauw

    lumanauw New Member

    Equity
    Credit
    Ref Point
    Ini ada chart generator, untuk membuat chart offline. Kesulitannya, setiap dipasang, dia selalu membuat chart baru (seluruhnya) yang agak berbeda dari hasil kalau EA ini dijalankan online selama bbrp hari.
    Bagaimana cara merubah MQ4 codenya, agar bila dipasang, dia meneruskan history yang sudah ada, tidak membuat chart baru?

    Terima kasih
     

    Attached Files:

  2. 9nix6

    9nix6 New Member

    Equity
    Credit
    Ref Point
    Hi, You would need to store the information on the last completed bar plus the last processed M1 bar. Once you have this information, you can resume creating the range bars at the point where you left off. However, this is still not the ideal solution since MT4 does not store tick data. You will need to recreate the missing range bars from M1 history which will still not be that accurate but should suffice for reasonable range bar sizes. The smart choice is to move to MT5 where you have access to tick data history.
     

Share This Page