"For each Trade" infinite loop
-
Create "for each Trade" with the number of repeat cycles 1 and filter only Buy (Sell - in another block). Further, the indentation from the open price by X pips and open opposite orders (two blocks - 1 to flip Sell orders, the second - Buy).
Instead of one repeat, there is an infinite repeat.
It seems to me that incorrect execution occurs when adding an order type (Buy/Sell) filter).
mt4 build 1090, win 8.1 x64.


-
When the price is X pips away from the open-price, this is the fact and it doesn't change until the price turns back
Try with "once per trade/order" after the pips away block. -
UPD: I created a new subject with this question
https://fxdreema.com/forum/topic/5732/system-with-reversals-of-direction-of-trade
Thanks for your help.
Please help to make an algorithm: if the price moved away from the opening price (loss) on X pips-open the opposite order with martingale:
- open the No. 1 sell 0.01
- when the loss X pips open No. 2 buy size No. 1 sell * ratio
- if it is unprofitable, the number 3 sell with lot size # 2 buy * coefficient is opened when X (or Y) is indented.
That is trying to do when you care less coups.
This will be checked: if there are sell orders (buy) with a loss of X-then with a total profit of more than Y, all orders will be closed.
-
Hello, have you done it? it also opens multiple operations for me. Thank you
-
Can yoy please share your project to see the problem?