take profit para zerar tds ordem do grid e ordens aberta somente comtra e nao favor
-
Good afternoon my friends, I'm trying to have a problem with an rbo I created, it uses a grid. The first problem I'm having is that I wanted it to be possible, regardless of how many grid orders are open, to reset them all when reaching the takeprofit of the first order. Another issue is that I want him to only open orders on the grid in the opposite direction of the first order for example in a purchase he should only open orders when the request comes against the first order and not in favor and he is opening in favor too how can I solve this can you help me please?
-
Can you please share the link to your project?
-
HERE IT IS PLEASE HELP ME:
https://fxdreema.com/shared/R9wPWZrsd -
@lucas-farias-de-almeida Here you have some things to change:
-
Both 'No position' blocks are searcginh for buys and sells, when only buys should be searched for on the left and sells in the right.
-
Both 'check trades counts' blocks are executed before your launchers. You need to renumber those blocks so that they are executed after the launchers. Additionally, every new tick new trades will be open so you need something to stop that to happen.
-
You need a pink 'For each trade' block below both buy/sell now' blocks in order to stor the correct value of lot size on those 'Modify variables' blocks.
-
-
@l-andorrà Can you help me by giving me some examples can you just change this in the link for me please can you give me an example of what you said
-
Can you give me an example using the blocks I sent you please, if you can I would greatly appreciate it
-
@lucas-farias-de-almeida The first 2 options are very easy to do.
If you do them, I willl help you with the third one. -
@l-andorrà I definitely don't know how to do this so I'm asking for your help if you can help me I would appreciate it please go to the link and add the necessary changes so I can have some understanding about this the problem I don't know what it is I don't know how to solve it I don't know where the error is Can you add the blocks for me in the right place by entering the link please if you can I would appreciate it
-
@lucas-farias-de-almeida This is the first step tp do. Change these blocks (including its numbers) as per this example here:

-
@l-andorrà I understand that, but I think it's wrong because if I leave it like that it will open sell orders if I had open buy orders and open buy orders with open sell orders
-
@l-andorrà So far I know what it's about, I just don't understand the question about the pink blocks, that's what I want you to explain to me, but I've seen that it's difficult here, it takes one to two days before answering a question like that is very difficult.
-
@lucas-farias-de-almeida I'm here helping people for free, man! I'm not paid a cent for this and I have a life to live too. I can't be here all the time.

This is what you need to do to store the correct lot size value (for buys only):

You'll have to create another variable for sells.