Spécifications
Caro desenvolvedor, eu estou elaborando um gerenciamento de risco e estou travado em alguns pontos nesse gerenciamento, gostaria de um suporte de um colega programador para me ajudar a desenvolver com a formula que gostaria a logica é a seguinte double MM_Size() // martingale / anti-martingale
{
double SL;
// Assumindo que a lógica para determinar StopSell e StopBuy já foi definida em algum lugar
if (ORDER_TYPE_BUY) {
SL = ATR2[Shiftatrbuystop] * StopBuy; // Stop Loss = Average True Range * fixed value
} else {
SL = ATR4[ShfitStopatrSell] * StopSell; // Stop Loss = Average True Range * fixed value
}
double tickvalue = SymbolInfoDouble(Symbol(), SYMBOL_TRADE_TICK_VALUE);
double ticksize = SymbolInfoDouble(Symbol(), SYMBOL_TRADE_TICK_SIZE);
double lots = MM_Percent * 1.0 / 100 * AccountInfoDouble(ACCOUNT_BALANCE) / (SL / ticksize * tickvalue);
double MaxLot = SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MAX);
double MinLot = SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MIN);
ulong ticket = 0;
if ( ORDER_TYPE_BUY) {
ticket = LastBuyOrderTicket();
} else {
ticket = LastSellOrderTicket();
}
if (ticket > 0) {
double lastDealVolume = HistoryDealGetDouble(ticket, DEAL_VOLUME);
double lastDealProfit = HistoryDealGetDouble(ticket, DEAL_PROFIT);
if (lastDealProfit > 0 && !MM_Martingale_RestartProfit) {
lots = lastDealVolume * MM_Martingale_ProfitFactor;
} else if (lastDealProfit < 0 && !MM_Martingale_RestartLoss) {
lots = lastDealVolume * MM_Martingale_LossFactor;
} else if (lastDealProfit == 0) {
lots = lastDealVolume;
}
} else
if(ConsecutivePL(false, MM_Martingale_RestartLosses))
lots = MM_Percent * 1.0 / 100 * AccountInfoDouble(ACCOUNT_BALANCE) / (SL / ticksize * tickvalue);
if(ConsecutivePL(true, MM_Martingale_RestartProfits))
lots = MM_Percent * 1.0 / 100 * AccountInfoDouble(ACCOUNT_BALANCE) / (SL / ticksize * tickvalue);
if(lots > MaxLot) lots = MaxLot;
if(lots < MinLot) lots = MinLot;
return(lots);
} //Quero que ela aplique os stops de maneira correta pois me parece que nao esta sendo calculado corretamente por ter 2 tipos de stops, quero que o martingale seja aplicado somente no tipo de ordem ou seja Buy aplica martingale somente Buy, Sell somente Sell... Reiniciar o loop somente se o profit Atual bateu todas as sequencias de loss de determinado Tipo de ordem
Répondu
1
Évaluation
Projets
0
0%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
2
Évaluation
Projets
51
8%
Arbitrage
0
En retard
0
Gratuit
3
Évaluation
Projets
17
59%
Arbitrage
2
0%
/
100%
En retard
2
12%
Gratuit
4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
(Please read carefully to fully understand the job) I am looking for a developer who has real knowledge in HFT strategies and the ability to create an EA that can run on a real account and be profitable. I already have an EA that performs well on a demo account, but not on a real account. This EA can be used as an example to build a new strategy. I repeat: it should only be used as a reference, not to modify or
Robot Martingale
30+ USD
PROGRAMADORES SIMPLIFICO MEU PEDIDO ANTERIOR : ATENDE PARA O QUE PRECISO , UMA '' I A '' BASICO . ONDE OPERE COM PRA EM UM PONTO DEFINIDO , E VENDA EM OUTRO TAMBEM PRE-DEFINIDO. DOBRANDO DE VALORES SUCESSIVAMENTE ( COMO SURGERE O MARTINGALE ) APENAS QUANDO O PRECO PASSAR NESSES DOIS PONTOS FINAL DE '' GAP'' PORTANTO
Fibonacci
30 USD
Expert Advisor para MetaTrader 5 que identifique movimentos explosivos do preço, trace Fibonacci automaticamente e execute entradas no pullback de 50%, seguindo tendência e regras de risco. veja aqui na imagem : https://prnt.sc/RbvYjhftVh0R comprar nos 50% , stop se o candle fechar abaixo do 0% , só se fechar se tocar e voltar não faz nada .. TP: configuração manual para 1 , 2 ou 3 para 1.. Colocar o 0x0 caso eu
Robô campeão
30+ USD
Martin Gale . janela objetivando : valor de entrada e consequentemente variação de valores sempre dobrando '' variável de '' GAP '' . Janela para replica de ordens iguais a ordem de valores anteriores , ou seja: uma ordem de micro lote em tantas quantas forem necessárias operacionalmente. saída pre determinada . OBS caso seja relevante: PLATAFORMA TRADINGVIEW
Preciso de um Expert Advisor profissional para MetaTrader 5 (MT5) no XAUUSD. Nome do projeto: XAU GOLD IA PRO Características: operação 100% automática timeframe M5 confirmação M15 + H1 início automático às 19:30 (horário Brasil) meta diária de 2% stop diário de 5% lote inicial 0.01 RR 3:1 estratégia com regiões de preço + Fibonacci + Smart Money Concepts (SMC) add position leve (sem martingale agressivo) trailing
Project Description: I am looking for a Senior MQL5 Developer to build a high-precision Expert Advisor (EA) for the US30 (Dow Jones) index, based on Smart Money Concepts (SMC) and ICT methodologies. The EA must handle multi-timeframe analysis and execute trades with mechanical precision. 1. Multi-Timeframe Analysis & Structural Logic • D1 (Confluence): Automatic plotting of Daily Fair Value Gaps (FVG) and Order
Informations sur le projet
Budget
33+ USD