fxDreema

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

    Simple cross below is not working

    Questions & Answers
    2
    2
    293
    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
      mctrade last edited by

      Hi,

      I want to create a simple EA where the EMA100 is divided by the EMA200. When the resulting value crosses below a certain value, the EA should by at next bar open and exit the trade after 360 minutes.

      I created the following code but it somehow doesn't generate a trade when I put it to "x<" in the condition but only when it is put to "<".

      I don't understand this. Can anyone help please?

      https://fxdreema.com/shared/k0DtTCPTc

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

        Here is more about this crossover - https://fxdreema.com/demo/mt4-crossover-indicators
        But you have two values and they don't have previous state

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

        Online Users

        V

        13
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors