fxDreema

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

    buy to sell to buy to sell etc

    Questions & Answers
    2
    2
    339
    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.
    • P
      PipTheRipper last edited by

      Hi, i trying to make an EA that opens one position once loaded on the chart.

      For every closed trade it should check the type (buy/sell) of the last position.

      If last position was a buy - then open a sell
      If last position was a sell - then open a buy

      I have been trying so many different ways, but simply cant get it to work as intended. It should be simple, and it is driving me mad.. Any help will be appreciated.

      Here is the project:
      https://fxdreema.com/shared/jmL8913sb

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

        @piptheripper Put this on the on chart tab.

        0_1636386834954_9125ed14-9ab6-410b-96e8-49e2a54eb6e7-image.png

        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

        S
        E
        H
        E
        J
        S

        16
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors