hello how can i limit or return my order?
-
i put custoum indicator and i put check trades count before buy now but it still not working any help plz with example to under stand thanks

-
If you can share your project or at least open the blocks and take a screenshot, it is better to try to help.
What is not working? EA does not open any trade (sell or buy)?
-
no it open (sell and buy) but when i want to limit my order in long and short term with( check trades count) check trades not working i want to limit my order . example : (3 trades in short) (3 trades in long ) this project open just 1 trade when the( arrow shows) i want to open 3 trade but not in the same time .1 when arrow shows . 2 when the first order make sl or tp .3 when the order number 2 make sl or tp . thank u for replay josecortesllobat
-
Then, if I do not understand it wrong, what you want is:
- Open a trade when the "Indicator appear" block is true (#1)
- When #1 is closed by SL or TP, open a new trade with the same direction (#2)
- When #2 is closed by SL or TP, open a new trade with the same direction (#3)

To reach the "Buy Now" block you require:
- No buy position exist (but if you opened a buy trade before, this block will never be true while that postion exists)
- Indicator appears
- Close any trade running
- Number of trades greater than 3
I would suggest you to start the project step by step.
Open (#1)

does it work as expected?
-
thank u very much for help yeh i want the example that u put it in the first (((((Open a trade when the "Indicator appear" block is true (#1)
When #1 is closed by SL or TP, open a new trade with the same direction (#2)
When #2 is closed by SL or TP, open a new trade with the same direction (#3)))))))) to repeat trades with number that i want in same direction when the trade close with sl or tp limit my order in the same direction ... and about open( #1) yes it work but if i dont put( close trades) it will make some problem in close trades bcz i dont love the (SL) i put (close trades) bcz i take 3 or 4 pips maximum that what i want but my problem in repeat trades in the same direction . if i put 3 trades repeat or 4 that will be good -
Then, if I am not wrong,
-
list item when the position (#1) exists and its profit is 3 or 4 pips, close (#1) and open a new trade (#2) with the same direction
-
list item when the position (#2) exists and its profit is 3 or 4 pips, close (#2) and open a new trade (#3) with the same direction
Right?
This could be an approach

The example above should work as
- No buy trade && indicator appears -> Open Buy
- If buy trade (false yellow output pass) && its unrealized profit is >= 3 pips -> Close Buys ->> Open Buy
If you want to limit the number of positions (#2, #3, ...) to open after the first one was opened, you will need to add anything (block, variable, etc.) that counts the number of times that the false yellow output of the "No postion" block passes.
-
-
thank uuuuuuu but the example that u make ........it dont close the trade when the errow shows that make the trade open to take tp :example if the EA open sell and we put the TP 3 pips if the tp dont close the trade it will stay open bcz the close trade dont work . the example that i put it in the first it work when the arrow change color it will close the trade . every thing ok to me just a number of trade it open 1 trade . we need to limit the trade . that is it . thank u very much mwahh