Trabajo finalizado
Tarea técnica
I want to input manually the price,direction, stop loss and take profit level for the first order. And the lot size stop loss and take profit level for the rest of the orders( At least 20 )
After the first order is filled, I need the EA to automatically :
1- Open a pending order in the opposite direction of first order, at the price of stop loss level of the first order, with a stop loss, take profit level(In pips) and Lot size that I have to preset in the EA.
2- After the pending order is filled, the EA need to open a new pending order in the opposite direction at the price of the stop loss level of the previous order, with the preset lot size, stop loss and take profit level. Creating a sequence of trades that will lead to a take profit level.
3- The EA needs to adjust the stop loss level of each order, and the entry price of the pending order in increments of a predefined amount of pips. Lets use a 100 pips.
Example: EUR/USD I Buy at 1.22000, my Stop loss is 300 pips at 1.21700 and my take profit 300 pips at 1.22300, the EA have a pending order in the opposite direction at 1.21700 with a preset stop loss and take profit. After a while...
The price of EUR/USD reach 1.22100, so the EA moved the stop loss level at 1.21800, the pending order is moved as well at 1.21800. After that, EUR/USD reach 1.22200, and another adjustment is made by the EA.
It change the stop loss level again and now it is at 1.21900 and the pending order is at 1.21900 as well. It will be like a zig zag, buy, sell, buy, sell...
When an order hits the take profit level, the sequence is done, and I want to set the new first order with the same parameters previously used.
Basically I need a pending orders EA, with a more controllable trailing stop that adjust not only the stop loss at certain level, but the next pending order entry price.
I would like to test this EA to see the results if possible, but if not, I know what can happen and the weak points of a EA like this as well ( spread increments for example, etc)
That is my order.
Thank you!