fxDreema

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

    condition fot trades (one per bar)

    Questions & Answers
    2
    4
    185
    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.
    • O
      oskars last edited by

      Hi
      Is it possible to create condition where ea dont allow open new trade, when on the same candle few minutes ago was closed trade.
      I mean, if on candle ID 1 was closed trade and after that is signal for open new trade on the same candle ID 1, ea doesnt allow open this trade and will wait for new oppourtinity in next candles

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

        once per bar will only allow something to happen once in a candle

        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
        • O
          oskars last edited by

          i know but how to check that for example, on candle ID 1, trade was closed and i dont open any new trade on this candle

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

            I see, when a trade closes set a double variable to 0 on the on trade tab (trade closed - modify variable), on the on tick tab once per minute add 1 to this variable every minute and check in a condition above buy/sell, if the variable number is > your minimum amount, on mt4 (maybe mt5) variable > time frame is the minutes per candle, otherwise use the number that is relevant to you

            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
            • 1 / 1
            • First post
              Last post

            Online Users

            B
            T
            S
            O
            K

            24
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors