fxDreema

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

    How do I keep this condition in a variable?

    Questions & Answers
    2
    3
    780
    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
      luisjunior1224 last edited by

      I want to create an EA that has many conditions, but doing it without variables is giving me a lot of problems in order in logic.

      How can I do to save the cross of a 5 x ema> ema 21 (it is an example) save a variable with that cross and only if I pass that cross (but still remains) I mean that the ema 5 is still above the 21, then move on to the next condition and thus not create conflicts in the code that all conditions pass in the candle ID 0 or ID 1.

      The point is that there are conduits that must pass after other conditions and not in the same candle

      Luis Martinez

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

        @MIRO1360

        Luis Martinez

        1 Reply Last reply Reply Quote 0
        • M
          miro1360 last edited by

          the inspiration which recently celebrated its third birthday 😄
          https://fxdreema.com/forum/topic/4222/example-price-pullback-ea

          Between trading and gambling is a very small gap, be careful.

          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

          27
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors