fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Castlemaine
    3. Posts
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 35
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by Castlemaine

    • RE: Block execution order

      https://fxdreema.com/shared/uyL0HmRHc sorry for the late reply, thanks so much for your help!

      posted in Questions & Answers
      C
      Castlemaine
    • breakeven/ partial not working

      https://fxdreema.com/shared/wByADlUac

      Hi team,

      I want these trades to go BE at 1:1 RR and take 50% of the position off, but it's not working. I have no idea why, I'm sure i've done it correctly.

      Thanks so much for your help!

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Block execution order

      @sktsec thanks so much for the reply! I normalised the IDs but it's still happening
      90ecc206-1c64-4371-8d0e-32feabaf040c-image.png here is is closing the trades based on the variables

      9d6601d8-b65c-410a-8a48-a1166d118fbb-image.png and here is the next tick where it's now updated the variables

      posted in Questions & Answers
      C
      Castlemaine
    • Block execution order

      Hey guys. My EA is executing the red blocks before it's executing the blue blocks. That is to say it's closing trades based on variables before updating the variables, and then updating the variables a tick later. Any suggestions?

      3bb589af-2540-4558-b6fe-6263aaaff2d3-image.png

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Any reason why this is closing sells?

      I got it working based off of @roar 's project so thanks guys! it was a problem with caclulating the max open sells because when i did it with a fixed value it worked fine
      image.png
      Any way to get the final trade to close a partial to keep the math more precise as a bonus? thanks guys!

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Any reason why this is closing sells?

      original thread where ROAR posted: https://fxdreema.com/forum/topic/7555/request-suggestion-for-close-partially-group-of-trades-block?_=1685989402676 I'm going to keep playing with it but any assistance is greatly appreciated as I'm still learning!

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Any reason why this is closing sells?

      I know @roar made something that does a similar thing here: https://fxdreema.com/shared/ZVBBYk4M
      but I can't seem to get it to work. I have these variables if that helps:
      image.png

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Any reason why this is closing sells?

      @l-andorrĂ  Thanks, I tried it with a regular close block and still no luck, it just crashes the EA in the tester as it's stuck in an infinite loop.
      78b2a6d0-6245-48f9-8089-453429d75232-image.png

      To be honest I already have data the variables I need: When I have a X amount of loss in BUY trades and Y amount of profit hedged in SELL trades, I want to close all SELL trades, and close the equivellant amount of profit (loss) in BUY trades

      EG:

      Buys: -$200
      Sells: +$150

      Close all SELLS and equivelant value of BUYS

      Result:
      Buys: -$50
      Sells: $0

      This keeps the on-balance profit/loss the same but frees up some margin.

      but I'm struggling to find a way to do this! If you can offer some ideas that would be amazing.

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Any reason why this is closing sells?

      Also @roar you are the loop master, maybe you can help me! I have the following variables:
      openSells: current open profit/loss on sell positions
      openBuys: current open profit/loss on sell positions
      MaxSells: Highest value of sell profits reached
      MaxBuys: Highest number of buy profits reached.

      I'm trying to get the EA to do the logic:

      If OpenBuys > (MaxBuys - MaxSells)
      Close all BUY trades, starting with the least profitable, until OpenBuys =< (MaxBuys - MaxSells)

      I managed to get similar logic working with a simple loop in another project (https://fxdreema.com/shared/a3cD1cAjb) but when I use it in my main project it either gets stuck in the loop OR just closes everything, buys and sells

      posted in Questions & Answers
      C
      Castlemaine
    • Any reason why this is closing sells?

      0fd0d292-8ae4-4e04-be8a-19ec794e4396-image.png

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Duplicating indicator windows

      any way to fix this?

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Duplicating indicator windows

      @sktsec thanks sir. I'm guessing there isn't anything I can do about it?

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Duplicating indicator windows

      image.png here is what i've inputted

      posted in Questions & Answers
      C
      Castlemaine
    • Duplicating indicator windows

      Hi friends, can someone please tell me what's wrong with my input variables that;s causing this? please see this tread that I posted in - it's an old thread so I don't think it will show which is why i've created this one. thanks so much!

      https://fxdreema.com/forum/topic/14029/duplicating-indicator-windows?_=1684870718255

      10a72c0c-fdb3-4395-873b-7cde48feeb82-image.png

      posted in Questions & Answers
      C
      Castlemaine
    • RE: Duplicating indicator windows

      @fxDreema BUMP: same thing is happening to me: what am i doing wrong here please? Thanks in advance!

      image.png

      image.png

      posted in Questions & Answers
      C
      Castlemaine
    • 1
    • 2
    • 2 / 2