fxDreema

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

    is it possible to create an ea that executes when two MAs cross, but at the opening of a new candle? i tried the once per bar, but i am not winning.

    Questions & Answers
    2
    5
    1013
    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.
    • M
      martin 5 last edited by

      is it possible to create an ea that executes when two MAs cross, but at the opening of a new candle? i tried the once per bar, but i am not winning.

      1 Reply Last reply Reply Quote 0
      • S
        SirBoyce last edited by

        Yeah, if in the condition you set MA(fast) x> or x< MA(slow) and on Candle ID 1 close. That will execute a trade on the open of the very next candle

        M 1 Reply Last reply Reply Quote 0
        • M
          martin 5 @SirBoyce last edited by

          @sirboyce how do you make all that in one condition?

          1 Reply Last reply Reply Quote 0
          • S
            SirBoyce last edited by

            Example:

            0_1570657766734_91e66f69-ae04-4574-8341-714f37f869cf-image.png

            S 1 Reply Last reply Reply Quote 0
            • S
              SirBoyce @SirBoyce last edited by

              @sirboyce The above is leading into a sell now execution. You would, for example, make the same condition but with an X> parameter to lead into a buy now command...depending on what your strategy is of course

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

              Online Users

              J
              B
              M
              B
              T

              20
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors