fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Breeeeen
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 2
    • Topics 9
    • Posts 24
    • Best 2
    • Controversial 0
    • Groups 0

    Topics created by Breeeeen

    • B

      No Position Nearby filter
      Questions & Answers • • Breeeeen

      4
      0
      Votes
      4
      Posts
      153
      Views

      jstap

      This will probably do it, under the condition is where you would do something like place a trade.
      https://fxdreema.com/shared/gsxiiKgZc

    • B

      How to set conditions on closing trades
      Questions & Answers • • Breeeeen

      5
      0
      Votes
      5
      Posts
      864
      Views

      B

      @l-andorrĂ  no that money doesn't need to be customizable, just as long as profits is greater or equal to losses, whatever their values.
      I tried a loop condition, what changes would you make to this example? https://fxdreema.com/shared/XVQAQMwSb (this is in MT5)

    • B

      OrderCheck() failed: Unsupported filling mode (10030) [possibly solved?]
      Bug Reports • • Breeeeen

      3
      0
      Votes
      3
      Posts
      1128
      Views

      B

      I want to say yes to both, but it's "magically" come alright since posting this (was not working for two days prior). Thanks admins I guess!

    • B

      Check for duplicate magic numbers
      Questions & Answers • • Breeeeen

      3
      0
      Votes
      3
      Posts
      440
      Views

      B

      Hi again @jstap đŸ™‚
      I suspect that may cause issues if there are existing trades and the EA is being re-initialized or was removed and subsequently re-added.

      After doing quite a bit of reading and thinking, I managed to implement something half-acceptable: I added a terminal variable (which changes based on group ID) and a condition to check the terminal variable.
      The condition runs first, and if there is an existing terminal variable with the same value, an alert pops up (although nothing stops the EA from continuing to run). Not the most refined but it works I guess. Main trouble I find now is that terminal variable doesn't update when I change the settings on the EA. In fact, nothing on the "On Init" tab runs after changing a parameter, which was counter to my understanding of what "on init" would represent.

      I'll leave this topic open in case someone has a more refined solution than what I have.
      Cheers.

    • B

      How to keep profitable trades separate from other trades? [solved]
      Questions & Answers • • Breeeeen

      6
      0
      Votes
      6
      Posts
      735
      Views

      B

      Managed to figure it out, and in case anyone in the future reads this thread and is stuck at the same place as me, here's what I had to do to loop through all the groups to keep separate trades:

      Create a variable (we'll call this variable "Group ID") and use it whenever creating a new buy/sell trade or order. All order-opening related blocks need this Group ID variable. When the conditions for your EA have been met to open a new set of trades, increment this Group ID variable and open the new group with the new Group ID. Create a second variable (we'll call this "ID checker" variable). The purpose of this variable is to mimic the Group ID variable without interfering or changing the Group ID. To loop through the various groups you have, use an appropriate block (I used the "For each position") with the group mode set to "All (automated and manually opened)" and connect it to a "Modify variable" block. In the modify variable block, modify the ID checker variable with the group in the loop. Connect blocks with actions you wish the EA to perform (trailing stop loss in my case).
      Picture below depicts points 3, 4 and 5.

      Thanks @jstap for the discussion, talking to someone about this really helps.

      0_1648518486642_3c679108-8c04-4c18-a2d9-56d739170bf2-image.png

    • B

      Margin Level (in %) return infinite is bugged
      Bug Reports • • Breeeeen

      5
      0
      Votes
      5
      Posts
      592
      Views

      R

      I am not an administrator, I was asking you because if you look at the fact that there are no open operations there is no Margin and when there are open operations there is margin, just that.

    • B

      "No positions nearby" block calculating 5x bigger pip size [solved]
      Bug Reports • • Breeeeen

      6
      0
      Votes
      6
      Posts
      759
      Views

      A

      @breeeeen You're welcome! Don't mention it!

    • B

      Enabling more system blocks
      Questions & Answers • • Breeeeen

      4
      0
      Votes
      4
      Posts
      496
      Views

      l'andorrĂ 

      @breeeeen No problem. You're welcome. đŸ˜‰

    • 1 / 1