fxDreema

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

    Multiple partial closes

    Questions & Answers
    2
    3
    1123
    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.
    • M
      Mycle89 last edited by

      Hello,

      sorry for opening the partial close topic for the 1000th time, but I didn't find anything describing my exact problem on this forum.
      This is my project: https://fxdreema.com/shared/ZXvRuKAvd

      As you can see, I created 2 loops for partial closes - 1 for when the trade is 10 pips in profit and 1 for 5 pips in loss. The problem is that the loop for the loss situation also has an effect on the profit situation, so the trade closes partially when 5 pips in profit. But I want the EA to only close partially when 10 pips in profit and 5 pips in loss.
      Using the block 'pips away from stop-loss' instead of 'pips away from open price' seems not to work.

      Thank you for any advice!

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        when you give this in block for lossable trade: pips away from open-price (Trading model instead of Double-sided, because double sided is absolute value)? and than in input parameters change value partial_stop_pips to negative, like partial_stop_pips=-5

        0_1482334145433_upload-8f34646b-0aed-4a7b-a74f-c08451bd76c7

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • M
          Mycle89 last edited by

          That's it, thank you very much! Didn't know negative numbers are allowed. Cool...

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

          Online Users

          F
          R
          S
          D
          V
          O

          15
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors