Lavoro terminato
Specifiche
Currency pair: gbp\usd
1. Enter 1 x long position at market, 0.10 size.
2. Take profit at +50, no stop loss
3. Create pending long order, 50 points behind 1 stentry level, 0.10 size, no stop loss
4. If first entry hits target, delete pending long order and re-enter market (step 1).
5. If 2 ndposition entered, create take profit order at +50.
6. Move take profit order on first entry from +50 to 0.
7. Create pending long order, 50 points behind 2nd entry level, 0.20 size, no stop loss
8. If take profit target met on 2 entries, delete pending long order and re-enter market (step 1).
9. If 3rd position entered, create take profit order at +50.
10. Move take profit order on first entry from 0 to -50.
11. Move take profit order on 2 ndentry from +50 to 0.
12. Create pending long order, 50 points behind 3rd entry level, 0.60 size, no stop loss
13. If take profit target met on 3 entries, delete pending long order and re-enter market (step 1).
Repeat this for 10 entries total. The sizing should go:
Entry | Size |
1 | 0.1 |
2 | 0.1 |
3 | 0.2 |
4 | 0.6 |
5 | 1.2 |
6 | 2.4 |
7 | 5 |
8 | 10 |
9 | 20 |
10 | 30 |
Each time a pending order is entered, all current entries need the take profit order amended by -50.
Here are 2 examples:
3 entries:
Entry | Size | TP |
1 | 0.1 | -50 |
2 | 0.1 | 0 |
3 | 0.2 | 50 |
6 entries:
Entry | Size | TP |
1 | 0.1 | -200 |
2 | 0.1 | -150 |
3 | 0.2 | -100 |
4 | 0.6 | -50 |
5 | 1.2 | 0 |
6 | 2.4 | 50 |
This also needs to be created for short position. – exactly the same rules
I want to be able to change the currency pair and sizing for testing