EASY SCRIPT JOB

MQL4 Скрипты

Работа завершена

Время выполнения 3 дня

Техническое задание

Hi,

for my statistical arbitrage trading i need a script that does the following:

- opens 2 positions simultaneously on two selected pairs (i must be able to input 2 currency pairs, lot size for each, buy or sell order for each)
- closes both position when the sum of their profit is higher than a given value.


I need this script for pair trading (statistical arbitrage). It should be a script, not an EA. Basically when i spot an opportunity, i should be able to double click the script, select two symbols, the lot size and type of order (buy and/or sell), and click ok.
This should open simultaneously two order on two different symbols. The orders should be marked, maybe with a magic number, so that when the sum of their profits (usually one position will be gaining and the other losing) exceeds a given threesold (in currency units), the script automatically closes both positions.
The script should be made so that i can use it several times on different symbols combinations, and each time a given pair of orders returns profits, it automatically closes the orders.

A practical example:

- looking at the correlation between EURUSD and USDCHF (almost perfectly inversely correlated), i see that the difference between the symbols (spread of symbols) is unusually high;
- i open the script, select the two currencies, 0.1 lot size for example, and the type of order (sell EURUSD; sell USDCHF), the profit level at which the orders should be closed, and send the two orders;
- at this point, two positions should be open: 0.1 sell EURUSD and 0.1 sell USDCHF;
- looking at another correlation, i spot an opportunity between EURJPY and NZDJPY;
- again i open the script, select the two currencies, 1.5 lot size, the type of order (sell EURJPY and buy NZDJPY), and the profit level at which the orders should be closed;
- at this point, four orders should be open: 0.1 sell EURUSD and 0.1 sell USDCHF, and 1.5 sell EURJPY and 1.5 buy NZDJPY;
- the script should continuosly monitor the profit and losses of the two pairs of orders;
- once the sum of the EURUSD and USDCHF profits exceeds the given profit level, the two should be closed;
- once the sum of the EURUSD and USDCHF profits exceeds the given profit level, the two should be closed;


Today i open manually two orders when i spot an opportunity. I then look at the sum of their money value, and when the sum of the two positions turns positive by a given amount (when correlation returns to normal), i close both orders.

By having a script, i would be able not only to automize the order sending procedure, but most importantly i wouldn't need to continuosly look at the results and wait until the sum of two positions turns positive.
Moreover, when working with several currency pair at the same time, it is sometimes difficult to continuosly look at the monetary value of the sum of two open positions.

I hope this explains what i need. Please don't hesitate to contact me for any clarification.

Kind regards,
Sandro

Откликнулись

1
Разработчик 1
Оценка
(461)
Проекты
902
77%
Арбитраж
25
16% / 68%
Просрочено
100
11%
Свободен
2
Разработчик 2
Оценка
(71)
Проекты
254
53%
Арбитраж
16
50% / 38%
Просрочено
83
33%
Свободен
3
Разработчик 3
Оценка
(182)
Проекты
342
42%
Арбитраж
118
12% / 73%
Просрочено
104
30%
Свободен
4
Разработчик 4
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
1
100%
Свободен
5
Разработчик 5
Оценка
(26)
Проекты
45
29%
Арбитраж
2
0% / 50%
Просрочено
21
47%
Свободен
6
Разработчик 6
Оценка
(44)
Проекты
128
66%
Арбитраж
10
20% / 60%
Просрочено
35
27%
Свободен
7
Разработчик 7
Оценка
(82)
Проекты
150
29%
Арбитраж
9
44% / 11%
Просрочено
46
31%
Свободен
8
Разработчик 8
Оценка
(31)
Проекты
41
66%
Арбитраж
1
100% / 0%
Просрочено
11
27%
Свободен
Похожие заказы
I am looking for a skilled Thinkorswim script developer for a one-time project. Your task will be to combine 8 distinct Thinkorswim studies (I will provide the code for each) into one Lower Study. The final script should display histogram rows for the individual studies with a bubble color scheme of bright green, dark green, gray, dark red, and bright red
I need some who can develop my strategy and hand me over the source code... I will give you the specific area in the market i want to mark out and then set pending orders to execute once price move into the zone
C onversion from Ninjatrader to Tradingview. This includes thorough testing and debugging to guarantee that the script functions as intended on Tradingview...If you are in for this job kindly bid
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale
there I hope you're doing well I want to convert the tradingview indicator to make an indicator for mt5. And in that, I want to make an automatic robot on the base of the indicator. I have the pine script of that indicator
Looking for someone who is able to code MQL for MT5 manager plug-in? Please contact me for more info. it is mainly on when to trigger a stop out of the account
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so

Информация о проекте

Бюджет
50 - 110 USD
Исполнителю
45 - 99 USD
Сроки выполнения
от 1 до 5 дн.