fxDreema

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

    EA to close half trades when crossing Buffer point, while putting trail loss on other half.

    Questions & Answers
    2
    3
    685
    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.
    • L
      Laneciar last edited by Laneciar

      I basically want me EA to close hall my trades when it crosses a buffer but keep the other half to ride while having a stop loss, I cant seem to figure it out and the things I have tried it refused to close any trades, should I be in the "On Tick" chart or "On Trade" chart as well? Also admin if you see this the EA is called Trend Reader V.02. It seems that as of right now it just creates 30-40 trades even though my conditions for the close trade is not the same as the buy condition(I made Sure to check FxDreema's Post About It).

      1 Reply Last reply Reply Quote 0
      • L
        Laneciar last edited by

        @fxDreema Any help would be great, still havent been able to efficiently do this, i have tried the for loops and also if trade block, for some reason it opens a massive amount of trades when it either buys or sells?

        C 1 Reply Last reply Reply Quote 0
        • C
          CPxiom @Laneciar last edited by

          @laneciar Here some screen shots with possible ways to go about it... I haven't tried, depends on your indicator, and where you want to TP. Configure specifically. Anyone with other suggestions, or if I am wrong about these, please correct and give your perspective. Thanks.

          First example is with two sets of buy sell, where one is with Trailing stop loss, the other with TP at price level from indicator buffer. Different Groups!!!
          In the picture is SL at price level, with TP at 100% from SL , meaning same distance on profit from open price as the SL. This could be 200% etc.
          But you could do SL at some pips, and TP at some level, based on indicator.
          0_1556022910012_Screen Shot 2019-04-23 at 15.29.42.png

          Second example is for loop with condition on indicator or how you want it. But in this case, I guess you will have to have more than 0.01 lot size, as 0.01 is minimum at most brokers, and currencies. It depends, I guess.
          0_1556023271323_Screen Shot 2019-04-23 at 15.29.55.png

          Third Example is with on trade event, not on tick.. and with Groups!!! also.
          0_1556023481861_Screen Shot 2019-04-23 at 15.30.39.png

          Hope this helps, and if there are other suggestions please help, this is good to know for everybody. Thanks.

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

          Online Users

          E
          E
          O
          O
          D
          F
          K
          C
          E
          M

          22
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors