Работа завершена
Техническое задание
I need a script, that can generate a grid of buy/sell orders.
Input should be:
- Work for all currency pairs
- Type of order (Buy/Sell Limit, Buy/Sell Stop)
- Number of orders to be placed
- Lot size
- Starting price
- Difference between each order in pips
- Difference to take profit
- Difference to stop loss
Example 1 with EURUSD:
I want to place 5 buy limit orders, each with a lot size of 0.01 with a difference of 1 pip, a starting price of 1.0009, difference to take profit 100 pips, difference to stop loss 100 pips
Outcome 1:
The programm generates the following orders.
Order 1, Buy Limit, 0.01 Lot, @1.0009, TP: 1.0109, SL: 0.9909
Order 2, Buy Limit, 0.01 Lot, @1.0008, TP: 1.0108, SL: 0.9908
Order 3, Buy Limit, 0.01 Lot, @1.0007, TP: 1.0107, SL: 0.9907
Order 4, Buy Limit, 0.01 Lot, @1.0006, TP: 1.0106, SL: 0.9906
Order 1, Buy Limit, 0.01 Lot, @1.0005, TP: 1.0105, SL: 0.9905
Example 2 with EURUSD:
I want to place 5 sell stop orders, each with a lot size of 0.01 with a difference of 1 pip, a starting price of 1.00090, difference to take profit 100 pips, difference to stop loss 100 pips
Outcome 1:
The programm generates the following orders.
Order 1, Sell Stop, 0.01 Lot, @1.0009, TP: 0.9909, SL: 1.0109
Order 2, Sell Stop, 0.01 Lot, @1.0010, TP: 0.9910, SL: 1.0110
Order 3, Sell Stop, 0.01 Lot, @1.0011, TP: 0.9911, SL: 1.0111
Order 4, Sell Stop, 0.01 Lot, @1.0012, TP: 0.9912, SL: 1.0112
Order 5, Sell Stop, 0.01 Lot, @1.0013, TP: 0.9913, SL: 1.0113