Is there a way to end the EA and start again ?
-
I am having trouble on the second cycle of the EA. The first cycle works fine and after the coditions are met all the orders are closed. But when the EA try to open the orders again and start reading all the conditions again it doesnt follow the rules because it reads the results of the fisrt cyles too.
So I want to end the EA after all the ordes are closed and strat again right after as if I reattach the EA.
Or tell me how can I erase the history order before strating the second cycle without using in loop controls.
I am using Check last winner type, but it checks also the winners from the first cycle. -
Basically what I need is:
- open a buy and a sell with same size lot and TP (no SL)
- the first one that hits the target opens a Grid with negative grid size. (supose the sell hits the TP it opens a grid buying as the market goes down those buying are triggered increasing the size lot and the TP)
- open the same order of the first hit again (continue to open sell orders with same lot size and TP)
- When the first buy order (the last opened) hit the TP the EA close all orders and delete all pending.
- Start from number 1 again
So the EA keep opening orders with the trend with same TP and size lot
And opens opposite orders increasing the size lot and the TP (reversal grid)