fxDreema

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

    how to do once per each cross?

    Questions & Answers
    3
    4
    99
    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.
    • B
      bacharchoura1 last edited by

      https://fxdreema.com/shared/6tnDxJk0c
      good day
      in this simple ea , it continue openin positions as long as their is a "cross" in the sellected time frame (Fast MA is higher or lower slow MA ).
      in realty , the MA indicator oscilates within the sellected time frame : what i want is to open one position only each time the cross happen , if in the sellected time frame the MA oscilates and make 100 crosses then their must be 100 positions exactly , not more nor less...
      how to do that pls ... tks

      in god we trust

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @bacharchoura1 last edited by

        @bacharchoura1 cross condition==>once per bar==>buy

        1 Reply Last reply Reply Quote 1
        • jstap
          jstap last edited by

          You need to add to the logic, set flags true/false as things happen, and check before/after this way you control what is classed as happened and can happen.

          Learn fxDreema Without the Wait!

          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

          Don’t miss out

          Click here➡️ https://mybook.to/fxDreema to get your copy today!

          Enjoy! 😊

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

            THANK YOU MR JESTAP FOR YOUR PROFFESSIONAL ANSWER..

            in god we trust

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

            Online Users

            J
            A
            Z
            T
            B
            A

            17
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors