fxDreema

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

    Modify first order Stop Loss to second order Target Profit

    Questions & Answers
    2
    2
    825
    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.
    • S
      sijinkwi last edited by

      Hi all, how to move SL of first order to TP of second order, so if second order TP reached first order will be closed at the same time. I don't want to use "close all opened order" because both order won't close at the same time. Ex: if my first order is Buy at open price 100.00 and my second order is Sell Pending Order at open price 99.50 with TP 99.00. SL of first order will be moved to 98.98 (I asume spread between bid and ask is 2 pips) when second order opened so when price hit 98.98 both order will closed at the same time. Of course this calculation will be made by EA, we just need to put our TP for second order. Thanks

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

        This may give you some idea: http://fxdreema.com/shared/mvDMmzTK
        When a new sell trade is opened (detected with block 3), we load every buy trade (well, it is only one, with block 7) and modify it's SL with the TP attribute of the trade that caused the "on Trade" event.

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

        Online Users

        T
        M
        E
        M
        A
        S
        H
        Q
        P
        H
        K

        20
        Online

        146.8k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors