Help me, compensation
-
hello everyone, can anyone help me? I can't implement this idea in any way: I have a sell and a sell limit, when the sell limit is activated and its profit is double compared to the loss of the sell, I want it to close half a position and put a stop at zero. please, i'm going crazy. A thousand thanks
-
Can you please share the link to your project?
-
-
AREA 3 WORKS WHILE AREA 2 I CAN'T DESIGN IT
-
good morning, please can someone help me? I can't program area 2 of my project. Thank you so much
-
what doesn't work?
-
hello Ambrogio, in the area 2 project, it works like this: when the profit is equal to the loss, close everything. I'm interested when the profit is double the loss you partially close the order in profit at 50% and close the losing order. I can't design it. can you help me?
-
you can separate the trades by group number (eg:. buy= group1 , buy pending order =group2), then for each trade calculate profit/loss, put some condition blocks to compare them
-
Can you give me an example because I'm practical. Thank you
-
I tried in many ways but without solving anything that's why I ask for help from you experts. Thank you
-
Ambrogio is right. You need to create two separate groups (1 for the open sell and 2 for the pending sell) and then manage them separately. You can find info on groups here:
https://fxdreema.com/documentation/builder/groups-and-magic-numbers
-
ok, once i manage them separately which block do i use to compare profit double loss close part?
-
@luca-9 this way you get the profit separately for each group. The custom code is for take absolute value

-
After that condition Profit2 > Profit1 adjust field *2 close trades
-
hi Ambrose, it doesn't work. ea does not activate
-
what's the problem?
-
AFTER THE PROGRAMMING YOU INDICATED, I ACTIVATE THE EA BUT IT DOESN'T WORK. IT WILL NOT START.
-
-
I USE GOOGLE TRANSLATE, I'M ITALIAN
-
devi creare le due variabili Profit1 e Profit2 nella lista delle variabili