There is no way to close out the positions of buying and selling that total zero ؟
-
In this project, I try to close equal profits and losses from buying and selling without affecting the account balance.
Example: buy profit equals = -50
sell profit equals = 20
total = -30
here i want close 20 from buy & same time close -20 from sell
Only losing long positions remain
There is no way to close out the positions of buying and selling that total zero
https://fxdreema.com/shared/pNSNfYk4b -
@khalids222 Certainly a complex thing to implement. What are the grey 'custom code' blocks doing exactly?
-
@l-andorrà Working to determine the value of tick & calculations
-
@khalids222 But why do you need the value of tick in this case?
-
@l-andorrà I am trying to get lot value by tick, so I benefited from some experiences roar .
Is there a way that I can define the exact lot to be closed? This is very important to me -
@khalids222 Honestly I do not understand the logic behind the double loop structure. It is obvious that this is a roar's suggestion!
Maybe he will be able to offer you some hints. I'm afraid this is too much for me, sorry. -
@l-andorrà said in There is no way to close out the positions of buying and selling that total zero ؟:
Honestly I do not understand the logic behind the double loop structure. It is obvious that this is a roar's suggestion!
Maybe he will be able to offer you some hints. I'm afraid this is too much for me, sorry.THANK YOU