https://fxdreema.com/shared/uyL0HmRHc sorry for the late reply, thanks so much for your help!
Posts made by Castlemaine
-
RE: Block execution orderposted in Questions & Answers
-
breakeven/ partial not workingposted in Questions & Answers
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!
-
RE: Block execution orderposted in Questions & Answers
@sktsec thanks so much for the reply! I normalised the IDs but it's still happening
here is is closing the trades based on the variables
and here is the next tick where it's now updated the variables -
Block execution orderposted in Questions & Answers
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?

-
RE: Any reason why this is closing sells?posted in Questions & Answers
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

Any way to get the final trade to close a partial to keep the math more precise as a bonus? thanks guys! -
RE: Any reason why this is closing sells?posted in Questions & Answers
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!
-
RE: Any reason why this is closing sells?posted in Questions & Answers
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:

-
RE: Any reason why this is closing sells?posted in Questions & Answers
@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.

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: +$150Close all SELLS and equivelant value of BUYS
Result:
Buys: -$50
Sells: $0This 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.
-
RE: Any reason why this is closing sells?posted in Questions & Answers
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
-
RE: Duplicating indicator windowsposted in Questions & Answers
@sktsec thanks sir. I'm guessing there isn't anything I can do about it?
-
Duplicating indicator windowsposted in Questions & Answers
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

-
RE: Duplicating indicator windowsposted in Questions & Answers
@fxDreema BUMP: same thing is happening to me: what am i doing wrong here please? Thanks in advance!



here is what i've inputted