Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Input:
Size of buy position= (A).
Size of sell position= (B).
Amount of pip to open positions = (Z).
Multiplication factor to determine the size position = (S).
Step 1:
EA open 2 positions (buy “A” and sell “B”).
Use (Buy position “A”) price to start work with next step (open new positions because there is “spread”).
Step 2:
There are 2 ways:
A/ price goes to (+Z), open (A*S=A1,B1) even EA open before that (A2,B*S=B2).
B/ price goes to (-Z) level, open (A2,B*S=B2) even EA open before that (A1,B1 ).
Step 3-1:
There are 2 ways with (A1,B1):
A/ price goes to (+Z), open (A*S=A3,B3) even EA open before that (A4,B*S=B4).
B/ price goes to (-Z) level, open (A4,B*S=B4) even EA open before that (A3,B3).
Step 3-2:
There are 2 ways with (A2,B2):
A/ price goes to (+Z), open ((A*S)A5,B5) even EA open before that (A6,(B*S)B6).
B/ price goes to (-Z) level, open (A6,(B*S)B6) even EA open before that (A5,B5).
Step 4:
Did with (A3,B3),(A4,B4),(A5,B5),(A6,B6) as what EA did in step 3 (1-2).
Then
Then
Then
Then
Then