Indicators: iSpread is a spread indicator for pair trading

 

iSpread is a spread indicator for pair trading:

Creates a synthetic from two selected pairs.

Using this indicator you can create your synthetic symbol based on two selected pairs.

The indicator algorithm is the following:

Selecting initial data

  1. Start date - select the start day to build a synthetic symbol. Required to avoid using unnecessary old history data.
  2. Symbol 1/2 - select two initial pairs.

Author: Alexey Oreshkin

 

Алексей! это чудесно. есть ли возможность реализовать этот индикатор на 5-6 инструментов,  а не только 2. как я понял здесь можно изменять массовую долю инструмента в расчете? 

 
imtochukwu:

Алексей! это чудесно. есть ли возможность реализовать этот индикатор на 5-6 инструментов,  а не только 2. как я понял здесь можно изменять массовую долю инструмента в расчете? 

И да и нет. Я в своём роботе использую эту идею реализованную в мультивалютном режиме, но в эксперте не нужно использовать рисование. Посчитал - и сделал выводы, или работать дальше или искать следующий спред. Как такой алгоритм реализовать визуально пока не понимаю. По идее должны быть какие либо критерии лучшего и уже это лучшее показывать, но эти критерии у каждого свои. Я потому индикатор и выложил в свободный доступ чтобы далее каждый сам под себя строил то что нужно и добавлял необходимые возможности.
 
Alexey Oreshkin:
И да и нет. Я в своём роботе использую эту идею реализованную в мультивалютном режиме, но в эксперте не нужно использовать рисование. Посчитал - и сделал выводы, или работать дальше или искать следующий спред. Как такой алгоритм реализовать визуально пока не понимаю. По идее должны быть какие либо критерии лучшего и уже это лучшее показывать, но эти критерии у каждого свои. Я потому индикатор и выложил в свободный доступ чтобы далее каждый сам под себя строил то что нужно и добавлял необходимые возможности.

Алексей, есть готовый код для для расчета торгуемых пар и создания синтетических инструментов, причем с расчетом как я понял доли эмитентов. Помогите разобраться в нем. Есть ли возможность изменить на 6-7 инструментов? https://sites.google.com/site/marketformula/mt4-indicators/pairs-trading-mt4-indicator 

ссылка на описание индикатора 

Pairs Trading MT4 Indicator - Market Formula = Forex Trader + Metatrader
Pairs Trading MT4 Indicator - Market Formula = Forex Trader + Metatrader
  • sites.google.com
If you've ever wondered about pairs trading or statistical arbitrage, the Pairs with Beta MT4 indicator will help identify opportunities in the forex market. Pairs trading is a form of statistical arbitrage where profit is made in the currency market from taking a market neutral position and capturing the spread between two or more currency...
 
а что там разбираться? индикатор пустой. в нём ничего нет.
 
do you know where to get this tool for MT4 ?
 
Juriy Iziymov:
Do you know where to get this tool for MT4?
Try ChartBuilder. Most likely its capabilities will be enough.
 
Do you know where to get the same indicator for MT5, but so that synthetic can be built on several instruments, not only on two?
[Deleted]  
Alexey Oreshkin:
Try ChartBuilder. Most likely its capabilities will suffice.
  • a couple of comments ...
  • no time synchronisation
  • instead of writing a bicycle for smoothing by MA or zeroing, like CLEAR, you could use standard plug-in functions, like EMA, in the MovingAverages file and ZeroMemory for zeroing structures and arrays of any complexity and nesting.
  • the difference of pairs is used only if they have the same denominator, for example, USD, then at least it is clear that you are subtracting values in dollars, otherwise you will get subtraction of squirrels from buns.
  • when dividing pairs, for example, EURUSD / GBPUSD, you will get an approximate synthetic EURGBP, the difference of which some have already tried to trade, but agreed that now it is so small that the spread does not pay off
  • the rest of the operations are probably useless.
  • judging by the fact that you have drawn levels, you want to trade inside the channel, but this is not the best because it is against the trend ... look at EURUSD for the last 3 months and imagine you went in to buy 3 months ago, hoping the price will bounce back and go up ...
  • the first difference is the difference of 2 standing bars, if you take the ratio, you have to logarithm the result, otherwise you will get an incomprehensible ratio of squirrels to gophers again http://www.webmath.ru/poleznoe/formules_3_4.php.
 
Andy:
  • a couple of comments or so ...
  • no time synchronisation
  • instead of writing a bicycle for smoothing by MA or zeroing, like CLEAR, you could use standard plug-in functions like EMA in the MovingAverages file and ZeroMemory for zeroing structures and arrays of any complexity and nesting.
  • the difference of pairs is used only if they have the same denominator, for example, USD, then at least it is clear that you are subtracting values in dollars, otherwise you will get subtraction of squirrels from buns.
  • when dividing pairs, for example, EURUSD / GBPUSD, you will get an approximate synthetic EURGBP, the difference of which some have already tried to trade, but agreed that now it is so small that the spread does not pay off
  • the rest of the operations are probably useless.
  • judging by the fact that you have drawn levels, you want to trade inside the channel, but this is not the best, because against the trend ... look at EURUSD for the last 3 months and imagine you went in to buy 3 months ago, hoping the price will bounce back and go up ...
  • the first difference is the difference of 2 standing bars, if you take the ratio, you have to logarithm the result, otherwise you will get an incomprehensible ratio of squirrels to gophers again http://www.webmath.ru/poleznoe/formules_3_4.php.
I agree with almost everything. So much time has passed since then that many things have become clearer. That was the beginning.
I don't remember about synchronisation, but 99.9% that it is there.
 
AlexanderG:
And do you know where to get the same indicator for MT5, but so that synthetic can be built on several instruments, not only on two?

https://www.mql5.com/en/market/product/14383#

this one builds on several instruments. but the possibilities are less.

Технический индикатор Synthetic
Технический индикатор Synthetic
  • 2016.03.10
  • viktor lubimov
  • www.mql5.com
Индикатор для арбитража. Отображает график суммы или разности произвольного количества любых символов. Выражение вводится в параметрах в виде строки формата: "MIX-3.16 - RTS-3.16 - SI-3.16". Названия символов должны в точности совпадать с...