Pips distance to open new buy
-
I want each new purchase transaction for my (hedge) to open only if the current price is 200 pips below the opening price of the previous order.
How can I make this rule?
Is it right like I did below?
-
@fabiobioware It depends on how many open trades are allowed on the 'check trades count' block. I guess you may have more than one open at the same time. If so the problem is that you specify that only 1 is to be considered by the 'For each trade' block.
-
@l-andorrà 15 negociations.
-
@fabiobioware Then you are limiting the loop to the most recent open trade only. Aren't the other 14 supposed to be checked?
-
I placed a constant to limit the opening to a maximum of 15 trades.
-
@l-andorrà said in Pips distance to open new buy:
Then you are limiting the loop to the most recent open trade only. Aren't the other 14 supposed to be checked?
Do you mean that as it is, he is giving orders for the next negotiations to open at a distance of -200 pips away from the first order only?
What I want is that each new trade is always opened at least -200 pips apart from each other. -
@l-andorrà

I realized that I placed the order to be opened only if it is at a distance of -200 pips, but it seems to me that the EA is not respecting this condition, as you can see in the image it opens the trade at -160 pips away not respecting the limit of at least -200 pips away. -
@fabiobioware Are you sure the pips size rules and spread are correct?
