Basket trading, pair trading. - page 8

 
pronych:

Absence of bars is not a problem. If there is no bar, take the value of the previous one. Many non forex instruments (sessions) close and open at different times.

If you are interested in pair trading, pay attention to oil, different grades. I don't know if there are brokers that support futures on MT5, but it is possible to organise it on MT4.

I don't know if there are any brokers that support futures on MT5, but it may be possible to do it on МТ5. The Composter wrote an indicator on MT4, but I haven't seen it on MT5. http://articles.mql4.com/ru/130
Графики без "дыр" - Статьи по MQL4
  • www.mql5.com
Графики без "дыр" - Статьи по MQL4: примеры использования экспертов, тестирования и оптимизации
 

Oh, I struggled a lot with the damn synchronisation, but the result is achieved:


I'll put the synchronisation indicator in the codebase.

 
07041982:

Oh, I struggled a lot with the damn synchronisation, but the result is achieved:


I'll put the synchronisation indicator in the codebase.

There goes the magic with half an hour delay).
 
sumkin75:
So much for disappearing magic half an hour late).
And I was about to get a taste of the Grail...and...the scalding sun of the Maldives :-)))
 

Statistically profitable lag is unlikely to be there. However, the slippage/shift does occur. Here is an example for gold/silver:


This occurs most often on strong news, I think it is clear why. In the example, we sell gold at 16:30 and buy silver, and close at 20:45 of the next day.

The figures on the charts are the change in price in absolute dollar terms. You can see that to balance such a basket of two instruments the XAU/XAG volume ratio should be about 1/20.

And this ratio should not be calculated by the average volatility of the instruments, but by the average volatility of such spreads/shifts. This will give more or less confidence that we won't suffer a fatal loss if the spread doesn't converge. Non convergence of spreads is the main danger in this kind of trading. All other things are less significant.

Also, I would like to point out that it is not equivalent to cross trading since the volumes are different. In fact, it is a triangular stat-arbitrage XAU-XAG-USD.

All IMHO.

 
Dima_S:

Statistically profitable lag is unlikely to be there. However, the slippage/slippage does occur. Here is an example for gold/silver:


This occurs most often on strong news, I think it's clear why. In the example - we sell gold at 16:30 and buy silver, we close at 20:45 of the next day.

The figures on the charts are the change in price in absolute dollar terms. You can see that to balance such a basket of two instruments, the XAU/XAG volume ratio should be about 1/20.

Moreover, this ratio should not be counted by the average volatility of the instruments, but by the average volatility of such spreads/shifts. This will give more or less certainty that if the spread does not converge we will not get a fatal loss.

Also, I would like to point out that this is not equivalent to cross trading as the volumes are different. In fact, it is a triangular stat-arbitrage XAU-XAG-USD.

All IMHO.




On strong news such slippage is possible because of spread spread slippage. IMHO.
 
Dima_S:

Statistically profitable lag is unlikely to be there. However, the slippage/shift does occur. Here is an example for gold/silver:


This occurs most often on strong news, I think it is clear why. In the example - we sell gold at 16:30 and buy silver, we close at 20:45 of the next day.

The figures on the charts are the change in price in absolute dollar terms. You can see that to balance such a basket of two instruments the XAU/XAG volume ratio should be about 1/20.

And this ratio should not be calculated by the average volatility of the instruments, but by the average volatility of such spreads/shifts. This will give more or less confidence that we won't suffer a fatal loss if the spread doesn't converge. Non convergence of spreads is the main danger in this kind of trading. All other things are less significant.

Also, I would like to point out that it is not equivalent to cross trading since the volumes are different. In fact, it is a triangular stat-arbitrage XAU-XAG-USD.

All IMHO.




Would you mind sharing the indicator.
 
ivandurak:
The indicator will not share.
Ivanushko - there (on 4ka) can not answer :-) in the sauna - but the next step will be - to make a histogram (curve) - the difference between the first and second curve - then its "smoothed" by 5%-10% filter in relation to the previous value - well, and the colour areas paint - with a change of colour You enter and exit the deal - first, without the MM - just constant lots - then the results and you can mm whichever screw.... but 2 pairs is not enough, make 4 at a time (in one window) more "stationary" the final curve will come out....
 
ivandurak:
Do not share the indicator.

You could try this indicator.

Here is an example for gold and silver.

inter

On the upper chart is a sherds indicator on the lower chart by HLP.

It's more interesting on slices (yellow lines marking) than on HLP (red marking). We should try it.

Indicator colours gold and silver are gold and silver respectively.

All data are synchronised.

 
Aleksander:
Ivanushko - there (on the 4) can not answer :-) in the sauna - but the next step is to make a histogram (curve) - the difference between the first and second curve - then its "smooth" 5%-10% filter in relation to the previous value - well, and the colour areas - with a change of colour You enter and exit the transaction - first, without the MM - just constant lots - then the results and you can add some mm which screw.... but 2 pairs is not enough, 4 at a time (in one window) for "stationary" the final curve will come out....
not the difference, but the private