Job finished
Specification
In Italiano :
1) ogni ora l'EA apre contemporaneamente una posizione long e una short, se non ci sono posizioni aperte, in base ai lotti di partenza sempre da me impostabili
2) ad una determinata distanza in pip da me impostabile la posizione in vincita apre una nuova posizione sempre con i lotti di partenza, mentre quella in perdita apre una posizione con i lotti di partenza moltiplicati per un fattore da me impostabile (martingala)
3) la chiusura la decide la posizione inizialmente in perdita che chiuderà tutte le posizioni al momento in cui sarà in vincita.
4) non ci sono TP, SL, TS.
5) debbo poter impostare: lotti di partenza, moltiplicatore, distanza in pip.
riepilogando ad esempio alle 9.00 l'EA apre le due posizioni long e short, il prezzo sale, alla distanza di 100 pip l'EA apre una posizione long con i lotti di partenza (sta vincendo) e una posizione short in base al moltiplicatore (sta perdendo), ora è la posizione short a comandare e chiuderà tutte le posizioni , long e short quando il prezzo rintracciando farà si che sarà in vincita. deve essere in vincita la sola posizione che usa la martingala e non la somma di tutte.
spero di essere stato chiaro.
Now in my bad english (sorry!!!)
Three input parameters : Starting lots, lots multiplier, pip distance
1) every hour, if there aren't positions opened, the EA opens at the same time a long and a short position according to the starting lots.
2) when the price reaches the pip distance, the EA opens two new positions (the one who's winning according to the starting lots, the one who's losing according to the lots multiplier (martingale)
3) until the price reaches the pip distance nothing happen
4) the position that is using the martingale lead and defines the closing
5) when the position that use the martingale is winning close all the positions long and short
6) no SL, TP and TS
For Example: Starting lots = 0.10, lots multiplier = 1.4, pip distanzce = 100 pips
at 9.00 o'clock, there aren't position opened and so the EA opens the two position long and short both with 0.10 lots. The price moves up. after 100 pips
the EA open a new position long with 0.10 pips and a new position short with 0.14 pips (starting lots x lots multiplier) and so on every 100 pips. the short position leads and when it is winning (the price go down for a while) every position is closed (short and long).
Important is that everithing is closed when the sum of the position that is unsing the martingale is positive and not all positions.
thanks to everyone who will answer.
Egon.