fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How can look back?

    Questions & Answers
    2
    2
    588
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      forexbob last edited by

      If I needed to look back and determine if say the last highest high formed before or after the last lowest low in x period, how would one code it?

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        So you have to determine the lowest low and then figure out where it is the previous and next low around it? I think we are going too deep here, an EA can check some basic things and do some basic calculations, but for special calculations they created indicators. So I can suggest to find some indicator.
        By the way some people are working with ZigZag (I don't know why, I don't like it) and I added some calculations to get it's Xth top/low. Find it in the list of built in indicators. It is a custom indicator, but it comes with MT so it's almost built in 🙂

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        E
        B
        D
        G
        D
        D
        T
        E

        13
        Online

        146.8k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors