Şartname

EA CORRELATION

The EA works with correlation in two assets A and B, for example, EURUSD/GBPUSD, now I need to modify the parameters based on the Spearman formula as an indicator.

PARAMETERS:
ProfitTarget = 10.00;// (Change to including cents)
DistPips = 10 // The distance in pips between aks of A and aks of B (EURUSD-GBPUSD)
Spearman = r>0.8 // Can be modified depending on the trader.
N = 10 // the number of bars that will generate the indicator, that is, for the spearman formula.

PROHIBITED:
If currency A above currency B || DistPips > 10 || Spearman > 0.8, then:
Sell A and buy B – exit ProfitTarget or when DistPips =5.

If currency B above currency A || DistPips > 10 || Spearman > 0.8, then:
Sell B and buy A – exit ProfitTarget or when DistPips =5.



SPEARMAN'S FORMULA:
It follows that in the formula:
Xi = ASK value of asset A, in our EURUSD example;
Yi = ASK Value of Asset B, in our GBPUSD example;
N = period, that is, the number of CANDLES to compare, for example last 10 bars.

Therefore, the indicator will show a number less than 1 that will indicate whether the correlation is strong or weak between the two chosen currencies.

Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(11)
Projeler
17
59%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
2
12%
Serbest
2
Geliştirici 2
Derecelendirme
(298)
Projeler
477
40%
Arabuluculuk
105
40% / 24%
Süresi dolmuş
81
17%
Yüklendi
Yayınlandı: 2 kod
Benzer siparişler
I'd like to know if anyone knows how to create such an indicator for a future project. I need help creating my own indicator, but I don't know how it works behind the scenes, how the calculations are done, so I'm looking for someone to help me
Robo de Hedge 30+ USD
Ola boa noite, tudo bem? Gostaria de um robo que fizesse hedge automaticamente quando rebaixamento atingir 10%.por exemplo. Supondo que eu entre em com 1 lote (conta cent), ele entraria com 0.50, contrário ao atingir 10% e ao atingir 20% de rebaixamento ele abre mais 0.50. e so fechará quando a operação voltar. Repare que o objetivo, não é fazer lucro, com estes hedges, mas sim, proteger a conta. Então ele fecha

Proje bilgisi

Bütçe
30+ USD