fxDreema

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

    Simple Crossover Detection Not Working

    Questions & Answers
    2
    3
    985
    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.
    • L
      leecourt last edited by

      Hi,

      I have a simple EA that should draw a line when the candle crosses a moving average indicator. It is in the same format to that shown in the Help examples but it doesn't work. (Image below). I can get it to work if I am detecting if the candle opens and closes below the indicator (and vice versa) but not crossing over the indicator. I have also tried the "crosses above/below" operand but that doesn't work either.

      Any help much appreciated!

      0_1524008265802_e1ea5ed2-f175-4974-9a58-d595070db0e0-image.png

      Cheers.

      Lee.

      1 Reply Last reply Reply Quote 0
      • L
        leecourt last edited by

        OK so I can get an output when I compare the previous candle to the current moving average indicator value but that is no good to me. Anyway below is the adjustment I made for clarity.

        0_1524012967065_6c781a6c-2d05-4ae9-99c8-4811f6c43433-image.png

        Cheers,
        Lee.

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

          I tried the first example I have many vertical lines.
          This is what I tried: https://fxdreema.com/shared/c2HtaLwyb
          And this is my result:
          0_1524255299411_a1d02459-ebb0-4cbc-bf1f-fcf1982d7403-image.png
          The same thing, but with another object:
          0_1524255326840_77a93204-b206-4df9-8025-1097d61cf1ee-image.png

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

          Online Users

          F
          W
          C

          6
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors