Trabajo finalizado
Tarea técnica
Required user input:
1) CRITERIA X: Can select Percentage move (for example 1%), PIPS, or value;
2) Orders: can be entered as 2,3, 4, 5 or multiple of orders for example 2. User must be able to select option;
3) EA must make profit on at least one trade before closing off if Buy and sell are equal.
The EA
4) User opens buy and/or sell orders.
5) Once entered and price moves based on criteria X in opposite direction (loss position) the EA enters automatically enters an order based on price less criteria X. For example If buy order entered at 10,000 and criteria is 1% and ORDER is 2,3,4 the EA automatically enters sell 2 orders at 9900 (10,000 – 1%of 10,000).
6) If it goes down to 9801 (9900 – (9900*1%)) open new sell orders of 3 and close the 2 * sell order above (in step 4) at profit. The original position is kept open thus positions are:
Long 1 position
Sell order 3;
7) If it goes down to 9801 (9900 – (9900*1%)) open new sell orders of 3 and close the 4 * sell order above (in step 4) at profit. The original position is kept open thus positions are:
Long 1 position
Sell order 3;
8) If price moves in other direction a new buy order * 1 is entered when the loss from buy order is less than sell order:
@ approx. 9855
Buy order loss = (9855-10000)*1= (145)
Sell order loss = (9801-9855)*3 = (162)
9) If it goes up to past 9855 plus criteria X then buy order is closed at profit and new buy order of *2 is entered.
10) This keeps occurring until the losses from buy and sell orders are matched and therefore cleared.