fxDreema

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

    Following the trend - IF statement folk

    Questions & Answers
    2
    2
    145
    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.
    • pauley1
      pauley1 last edited by

      Hi Everyone

      I'm trying to write a simple trend following EA which will either buy or sell EURUSD depending on what the current trend is on the D1 chart. The first condition to find the trend is to ask if the 10MA is above the 50MA, if so it triggers a buy signal and if visa versa a sell. It would then check some more buy or sell conditions before placing an order. I just can't seem to work out how to make the first conditon work! Any help would be much appricated, or if you could point me in the direction of a working example or previous thread about this I would be very grateful.

      Many Thanks

      Pauley

      1 Reply Last reply Reply Quote 0
      • B
        boardr8901 last edited by

        https://fxdreema.com/shared/LsqC2QSFc

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

        Online Users

        E
        H
        E
        J
        S
        W

        15
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors