fxDreema

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

    EA如何实现判断最近的已持有订单盈利某个值时,才允许新的开仓交易

    Questions & Answers
    2
    4
    144
    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.
    • D
      dankanfengyun001 last edited by

      比如,当我的EA的指标满足开仓条件时,以黄金为例,账户已经持有一个或多个买入多单的订单,我希望EA每次开仓前,能够判断已有的订单中的最后一个的持有订单的盈利是否大于6美元,如果是,则开仓买入下一笔多单,如果不是,则EA不执行买入多单,不知道怎么实现这个判断条件

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

        Get the last trade value in something like bucket of trades, then check this value before adding a new one.

        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! 😊

        D 1 Reply Last reply Reply Quote 0
        • D
          dankanfengyun001 @jstap last edited by

          @jstap 谢谢解答,应该是我初学者的原因,我还是没能解决这个问题

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

            Set up a project trying to do this, if not working add a shared link and say what you are trying to do.

            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

            M
            K
            F
            Z
            S
            C

            13
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors