指定
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.
反馈
1
等级
项目
17
59%
仲裁
2
0%
/
100%
逾期
2
12%
空闲
2
等级
项目
475
40%
仲裁
105
40%
/
24%
逾期
80
17%
繁忙
发布者: 2 代码
相似订单
Preciso de um Expert Advisor para o MetaTrader 5 que opere a abertura do mercado na B3. Monitorização: O robô deve ler o preço teórico do leilão do contrato Cheio e do Mini simultaneamente. Cálculo de Spread: Deve calcular a distorção (ex: WDO vs DOL). Execução: Se a distorção for > X pontos, deve enviar ordem a mercado no ativo defasado exatamente no milissegundo da abertura. Volume Dinâmico: Escalabilidade de lotes
We are looking for a highly qualified, skilled, and experienced MT5 developer (ideally with experience in the financial sector and financial markets) who is capable of creating and implementing a custom-built, professional integration and analysis framework. This framework should include order flow alerts, broker anomalies (including hunting indicators, etc.), the integration of external signals, an audio alert
项目信息
预算
30+ USD