fxDreema

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

    Candle pullback to MA after MA cross

    Questions & Answers
    2
    3
    871
    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.
    • K
      Kailash12 last edited by

      Hello everyone,

      I am seeking some guidance to create an EA based on the EMA15 and EMA50 crossing.
      After the EMA15 crosses above the EMA50, I would like the EA to execute a buy order based on the first candle closing within 'x' amount of pips relative to the EMA15.
      Likewise, when the EMA15 crosses below the EMA50, I would like the EA to execute a sell order based on the first candle closing with 'x' amount of pips relative to the EMA15.

      Please see below a screenshot for an illustration as well as the project that I have built but not completely functional.

      https://www.tradingview.com/x/1bcuYFuI/

      https://fxdreema.com/shared/U0Psiiwpd

      Thank you in advance.

      1 Reply Last reply Reply Quote 0
      • T
        TraderEA6 last edited by

        if you just want to limit the number of pips to prevent the price being too far away from the MA, just use distance. See my example. It is the price not further away from the MA not more than 50 pips

        0_1592834243120_Screenshot 2020-06-22 at 21.56.51.png

        1 Reply Last reply Reply Quote 0
        • K
          Kailash12 last edited by Kailash12

          Hey @TraderEA6 thank you very much for your help. Going to give this a try.

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

          Online Users

          A
          G
          Q
          C
          T
          S
          A
          M
          R
          G
          G
          Y

          23
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors