fxDreema

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

    Trend following EA, manually trigger BUY to set 50 pips TP & SL, when hit TP open new Buy Entry with TP (50 pips) and SL (50 pips). To continue this loop, when price hit SL to automatically Open SELL 50 pips TP & SL?

    Questions & Answers
    2
    2
    1274
    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.
    • A
      Alimmin last edited by Alimmin

      I am new here, how do I make an EA after I manually trigger BUY Market Order to set TP (50 pips) and SL (50 pips), when hit TP open new Buy Entry with TP (50 pips) and SL (50 pips). When price hit SL to Open SELL Market Order with TP (50 pips) and SL (50 pips). Thank you for your kindness.

      My First attempt:-link text
      ![alt text](0_1550563752850_builder.jpg image url)

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

        Under "on Trade" better don't put that Buy block above the event-filter purple blocks. Like that you would see a new trade every time some trade event happens...even the creation of the buy trade itself... the chance is that you now have endless loop of buying trades.

        First of all, for the EA to work with manually created trades, do this:
        0_1550688730449_1e224310-9791-47be-ac14-8c76a3a9a9a2-image.png

        To set SL/TP on a newly created trade, you can use the "on Trade" event, but with something like Trade created -> Modify stops

        It's similat to detect when TP or SL is hit - with those "Trade closed" blocks. Open their parameters and you will see options. You can detect the type (buy or sell) also in "Trade closed". "For each Closed Trade" are not needed.

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

        Online Users

        M
        C
        M
        G
        S
        E
        T
        I
        P
        M
        H

        21
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors