Tarea técnica

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.

Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(11)
Proyectos
17
59%
Arbitraje
2
0% / 100%
Caducado
2
12%
Libre
2
Desarrollador 2
Evaluación
(251)
Proyectos
402
38%
Arbitraje
82
41% / 20%
Caducado
70
17%
Trabaja
Solicitudes similares
1. Objetivo da Estratégia Maximizar os lucros com operações de curto prazo. Aproveitar cada sinal de entrada afim de rentabilizar o maximo possivel, sem deixar passar nenhuma oportunidade que o mercado me der. 2. Mercado e Instrumentos Forex (GBP/JPY) 3. Time Frame Gráficos de 5 minutos 4. Indicadores e Padrões EMA 7 (Media Exponencial de 7); EMA 20 (Media Exponencial de 20); VWAP Diária (Preço Médio Ponderado po
Robo193 50 - 100 USD
quero um robo com maior Actividade que dispare compra ou vendas com a melhor estratégia que vc me entregar com cruzamento de2 medias de 9 período espondecial e que quando de cruzamento cruzado usando mequi di entre comprado ou vendido

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD